{"$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":"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"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":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AgentView::draw (cyclomatic 511): AgentView::draw has cyclomatic complexity 511 (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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4c236790ef0d565155b1adb0662c2a6641e9f521a8297662ac68e3cc91d458"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::router::dispatch_inner (cyclomatic 458): xai_grok_pager::app::dispatch::router::dispatch_inner has cyclomatic complexity 458 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6642526deff2295b478abf2c94c6a8fd9145fe8b3fd1923bff3ed7aa3e81698f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::effects::execute (cyclomatic 342): xai_grok_pager::app::effects::execute has cyclomatic complexity 342 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f62495a4effd942f96d165b4cf46688290880eb009754b3ea5cf713b6b1b2cc"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::task_result::dispatch_task_result (cyclomatic 313): xai_grok_pager::app::dispatch::task_result::dispatch_task_result has cyclomatic complexity 313 (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/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c05e5f1b96ca8ac182d3ed83abc232e36a840f30ebff2cceda5e5a0ae31543"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::run (cyclomatic 264): xai_grok_pager::app::event_loop::run has cyclomatic complexity 264 (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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"18620e3d38e400827afd628b9c364149df5e9bfda434e44ce52d4dca4850565d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::run_loop::run_session (cyclomatic 250): xai_grok_shell::session::acp_session_impl::run_loop::run_session has cyclomatic complexity 250 (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/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac42004fef14863904896ec7a8d9024df7a04a094564d20b3d5b2c7368be71"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::app_view::handle_welcome_input (cyclomatic 242): xai_grok_pager::app::app_view::handle_welcome_input has cyclomatic complexity 242 (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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb71a3a79ae8201911f59d45d7f033a896e9298bcfd553e48e0cbe8d41f022"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_input_inner (cyclomatic 231): AgentView::handle_input_inner has cyclomatic complexity 231 (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/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d870652efdae1ee438191691c1811c9d0a0943f2ea9397f29758307287fa4bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_mouse (cyclomatic 224): AgentView::handle_mouse has cyclomatic complexity 224 (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/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe865e051e66d0f1a91c0f9a0c9b385b865bb86d0d6bd4d9e509977ad869efa2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::picker::handle_picker_input (cyclomatic 175): xai_grok_pager::views::picker::handle_picker_input has cyclomatic complexity 175 (threshold 15). Of this number, 166 points are the body\u0027s own statements and 9 belong to 4 function items inside it that branch. 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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2431ce43de824d0a93e14c9fd3d37f0e8db665570b788a7ede723418c6ba20f5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::render_extensions_modal (cyclomatic 172): xai_grok_pager::views::extensions_modal::render_extensions_modal has cyclomatic complexity 172 (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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9021cab9b249ae8daad7f5b4f86dfbaaa30ef15fcb106a973806e57fac63ff"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::handle_request::run_shell_child (cyclomatic 170): xai_grok_shell::agent::subagent::handle_request::run_shell_child has cyclomatic complexity 170 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e373daf28be7ab25a165df0279f012a939c517fe10348cc00a2f9727575b08"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::handle_session_notification_with_origin (cyclomatic 154): xai_grok_pager::app::acp_handler::session_notification::handle_session_notification_with_origin has cyclomatic complexity 154 (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/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a3348e65ca8258215e5fbf0173a1fc3188230ce9d4d801679ae0bef040c893"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::spawn::spawn_session_actor (cyclomatic 142): xai_grok_shell::session::acp_session_impl::spawn::spawn_session_actor has cyclomatic complexity 142 (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/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b553936d343a8bc4f452eb22ce208425c5d521c60a235f696595d7fe4cee8a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::manager::spawn_permission_manager_with_pin (cyclomatic 140): xai_grok_workspace::permission::manager::spawn_permission_manager_with_pin has cyclomatic complexity 140 (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/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d95d65daf44c267a26f3cbb931a85c5200c8b3639bb61423ca042604c82fce"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::server::run_leader_server (cyclomatic 128): xai_grok_shell::leader::server::run_leader_server has cyclomatic complexity 128 (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/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"432f2dd601243f47e9f342814488a241e901c3c43f95c459d8608487cf826bb0"}},{"ruleId":"D1","level":"warning","message":{"text":"AppView::handle_input_at_with_paste_provenance (cyclomatic 127): AppView::handle_input_at_with_paste_provenance has cyclomatic complexity 127 (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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"683237fac95ba731462204532c65509ecb989aac1429c0b564475143fdd4a92b"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_turn_input_inner (cyclomatic 124): SessionActor::handle_turn_input_inner has cyclomatic complexity 124 (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/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d24faa1133d0737651db91fe84ade137dc1db4b179592b40a09574859713ed"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_prompt_key (cyclomatic 120): AgentView::handle_prompt_key has cyclomatic complexity 120 (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/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7112d6456a66c46fc5087ea0778b13573d60b82359a4548e11a2be5aa0890901"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::execute_modal_button_action (cyclomatic 113): AgentView::execute_modal_button_action has cyclomatic complexity 113 (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/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8f845904ae0f175a405c465a388bb2ca203d8757727e9648f927be9e6fda9a"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::process_conversation_turn_inner (cyclomatic 111): SessionActor::process_conversation_turn_inner has cyclomatic complexity 111 (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/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0024c5ee1189cb3ab1fd6d1d3f269871a1def2597d2bae8ac1dad17ef0a519"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceRpcHandler::dispatch (cyclomatic 110): WorkspaceRpcHandler::dispatch has cyclomatic complexity 110 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"66abca0c0de6e1cdb0557dfb50cc4a46bea8c49cbcf3d73f90200cd6a61ec304"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::acp::tracker::tool_call_to_block (cyclomatic 108): xai_grok_pager::acp::tracker::tool_call_to_block has cyclomatic complexity 108 (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/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8378284edb98812353ebc77107416a302ac6c695247a35289d64bfe5cb6af29"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::execute_builtin_slash_command (cyclomatic 108): SessionActor::execute_builtin_slash_command has cyclomatic complexity 108 (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/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"92246ee8030f068f79440d12050d206e6d1feba5b4cfd69f5c4e097f2be9b18c"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::cancel_running_task (cyclomatic 101): SessionActor::cancel_running_task has cyclomatic complexity 101 (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/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca95a8f45e3cbdafd6cd9b01f05e021c6b73a18432319442a69d214658fc1213"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::effects::helpers::persist_setting (cyclomatic 99): xai_grok_pager::app::effects::helpers::persist_setting has cyclomatic complexity 99 (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/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"969a408dfba505e92f400a32454eea0bbdd0a0075205538fe3eae57cab6cb6dd"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionPersistence::run (cyclomatic 97): SessionPersistence::run has cyclomatic complexity 97 (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/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7d5ca196b23e159797443ceda92dcc976ef91dee0e7e0ff100f3272e23fc29"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsedMarkdown::render_ratatui (cyclomatic 94): ParsedMarkdown::render_ratatui has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"0981b47ae74d0f1569ca68449271dfd95808664a5abc1a7b9973c3191dd0eb36"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentBuilder::build (cyclomatic 93): AgentBuilder::build has cyclomatic complexity 93 (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/codegen/xai-grok-agent/src/builder.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad5ef42db6ee364d48321d41b54270bda7e60e73e7d66253dedf9239df7565d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::run_compact_inner (cyclomatic 93): SessionActor::run_compact_inner has cyclomatic complexity 93 (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/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f50ffc3c10143b8ed7c7790a1a300189b0d9d12c1e564a3017b77352ba71e6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::prompt::dispatch_send_prompt_submission (cyclomatic 92): xai_grok_pager::app::dispatch::prompt::dispatch_send_prompt_submission has cyclomatic complexity 92 (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/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"9435aca5ed5e173c6c24fcb20022f483f7afad3f4c839363caa8f56dac1a3c02"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_key (cyclomatic 91): DashboardState::handle_key has cyclomatic complexity 91 (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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e2eb46361089012ee282076bb60e1e9d05399160af7d8f1055bb3469b283e8"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptWidget::draw (cyclomatic 90): PromptWidget::draw has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e155a3085c811f3ab7475c675edf53c82683c0c91e8558c57dd7f040d0392d0"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_peek_key (cyclomatic 87): DashboardState::handle_peek_key has cyclomatic complexity 87 (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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2522}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d7e866261ac30e4e02efce9e9ac6a12696c18ce3c8eb378e9b02ad8abc993f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agent::build_hints (cyclomatic 87): xai_grok_pager::views::agent::build_hints has cyclomatic complexity 87 (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/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"707135b509c304472a69a7d972ffbea2a9d4e1f8a82952277d5a3101436ec2bc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_line_viewer_mouse (cyclomatic 84): AgentView::handle_line_viewer_mouse has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"48727e7835b2a2c6921575f87f16eedcc90169c48ba1bc7828872c0a4377372c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::latex::commands::render_command (cyclomatic 80): xai_grok_markdown::latex::commands::render_command has cyclomatic complexity 80 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/commands.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb47f91fb83e4e72be30e1407851fd67f32263df2e4534331738134723014a7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_palette_or_arg_input_with_registry (cyclomatic 80): AgentView::handle_palette_or_arg_input_with_registry has cyclomatic complexity 80 (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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1f883fad4915944efc26c3e15b484629867288bc495b80f087c6ebae42fe0d"}},{"ruleId":"D1","level":"warning","message":{"text":"AppView::draw_inner (cyclomatic 76): AppView::draw_inner has cyclomatic complexity 76 (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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":4230}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e5bb9847692efc47fe0bc61739eed913957f08088bc7c3b562a69e0a0e9d16"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::settings::ui::apply_setting_rollback (cyclomatic 76): xai_grok_pager::app::dispatch::settings::ui::apply_setting_rollback has cyclomatic complexity 76 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"395243b86ff245a63d0cde0399712fe02fa4d113e8ac42b0cb86bff579b79409"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStateActor::handle_command (cyclomatic 74): ChatStateActor::handle_command has cyclomatic complexity 74 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2433fd2fbf2def86d7ebfa1d8296984e2bc61652442f95fa9493583a4ac7d6df"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::handle_inner (cyclomatic 74): xai_grok_pager::app::acp_handler::handle_inner has cyclomatic complexity 74 (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/codegen/xai-grok-pager/src/app/acp_handler/mod.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"04da741ea6e98a36777f3fbd6fcd468b715e0b2a98f1dab740f5e55dbfe13ecd"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolOutput::to_prompt_format (cyclomatic 70): ToolOutput::to_prompt_format has cyclomatic complexity 70 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/output.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"317c874394ce1bae9106f0e8455d88fb13f465abc7523d82a1bf9c3420239f04"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSignalsActor::run (cyclomatic 69): SessionSignalsActor::run has cyclomatic complexity 69 (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/codegen/xai-grok-shell/src/session/signals.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"b388a56a2e478a7175ecf622be600b8cf992efd9b5067a71c91bda6081d9994d"}},{"ruleId":"D1","level":"warning","message":{"text":"EntryRenderer::render (cyclomatic 68): EntryRenderer::render has cyclomatic complexity 68 (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/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8ac3abcdbd43c8c09d2a06fe47d5c4c57abe02e453635ade30ec4a40d7484"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::headless::run_single_turn (cyclomatic 68): xai_grok_pager::headless::run_single_turn has cyclomatic complexity 68 (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/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e12cc291c54c90ad512fd152607b6e7c9bf33ec17c568a7e1a7c08371226990"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPaneState::handle_key_event (cyclomatic 67): ListPaneState::handle_key_event has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1f85eabfa47ab720c0eab113ae3eb547a86998d7148eead0c1a1c0b675052a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::render::render_scrolled_entries_with_selection_boundaries (cyclomatic 67): xai_grok_pager::scrollback::render::render_scrolled_entries_with_selection_boundaries has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f5906d7c8904df511298fa057c3c6a3ace9c0155aa7ba1aa51f346ea584637"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::execute_tool_calls_batch (cyclomatic 67): SessionActor::execute_tool_calls_batch has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a518e243f14cdc31788b6727f5c1bbf892707b336ed4a5b93e53a0a154ad81c9"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::send_tool_call_start (cyclomatic 67): SessionActor::send_tool_call_start has cyclomatic complexity 67 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd594617391a6f712f2220ea21738630a2c3235fdbbe9509a5c150c130e67a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_modal_key_with_registry (cyclomatic 64): AgentView::handle_modal_key_with_registry has cyclomatic complexity 64 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4cf79c790c88e42b478507ff6fc8f59a0cde88f6b9314290ca3c78528c1fb4"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownParser::on_start (cyclomatic 63): MarkdownParser::on_start has cyclomatic complexity 63 (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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee8cc3752faab6595393b9e60618dd5b670a763fe5a2da476b42e68ea1dbf55"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_permission_key (cyclomatic 63): AgentView::handle_permission_key has cyclomatic complexity 63 (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/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4e084e96e7b77b6477bc374f2a7eaa7887b299604cba527d969fb677204c7a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_question_key (cyclomatic 63): AgentView::handle_question_key has cyclomatic complexity 63 (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/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4292b457b079b4c20b62ba60b9bab6af7b3e61f961ef4de267b0e056bce6aa3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::goal_detail::render_goal_detail (cyclomatic 63): xai_grok_pager::views::goal_detail::render_goal_detail has cyclomatic complexity 63 (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/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad01e4fbadb50293be1d6463feebc2cd8cacb923d9f1654b03c82161887ba2b"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::prepare_tool_call (cyclomatic 63): SessionActor::prepare_tool_call has cyclomatic complexity 63 (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/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"030573c56360545a39a0cb593b26da73e64548707234f6d78e3b7b638ceeb758"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::layout_sequence (cyclomatic 62): xai_grok_markdown::mermaid::layout_sequence has cyclomatic complexity 62 (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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3e1361b7cfca86569957aa9ffad33223757dfcbfc35992e9044cd506d5648e"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_mouse (cyclomatic 62): DashboardState::handle_mouse has cyclomatic complexity 62 (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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2e8055edc1a92527ff220f9e3764ae1b3358626698c95e1f7d805cf8d4e58c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::app::run_leader (cyclomatic 62): xai_grok_shell::agent::app::run_leader has cyclomatic complexity 62 (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/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcd6c6d23b1083e231e45058e078ab29a4c15cad46dbd710c2502573ae11832"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::prompt::handle_prompt_response (cyclomatic 61): xai_grok_pager::app::dispatch::prompt::handle_prompt_response has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d6a81646493362f9d0b50ee5ff020a899836c9a7d0b6ceac9f9a2df6facc57"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_pty_harness::scripted::run_step (cyclomatic 61): xai_grok_pager_pty_harness::scripted::run_step has cyclomatic complexity 61 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9248516f2867662a6abdc01ae54131299e5c305efb84be0fd40a3f875f0748"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::stream::messages::stream_messages (cyclomatic 61): xai_grok_sampler::stream::messages::stream_messages has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/messages.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ff0ddfea1c3ab6d399e335179076fd15f6e64bb7acc3bee414243ddea0df9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_footer (cyclomatic 60): xai_grok_pager::views::dashboard::render::render_footer has cyclomatic complexity 60 (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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84cf52b7a321c2935fa243aa81b11f08ad4df5a9a1b21e88bc87f9e9b9a9d26"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownParser::on_event (cyclomatic 59): MarkdownParser::on_event has cyclomatic complexity 59 (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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b8e0517e0745c7dc6eef2d32be18484d078ec4a8d48ae2f2f45074a4ab57f9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::render_personas_tab (cyclomatic 58): xai_grok_pager::views::agents_modal::render_personas_tab has cyclomatic complexity 58 (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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d58e43974841e4f18284200a346899f018532e5fc0050863bc08e9803c8e2b2"}},{"ruleId":"D1","level":"warning","message":{"text":"TextArea::handle_mouse (cyclomatic 58): TextArea::handle_mouse has cyclomatic complexity 58 (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/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3f946820c9c7a14203e3b967538d7718cb2992a73b9ed999d1944d3bc99773"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexDelimiterNormalizer::process (cyclomatic 57): LatexDelimiterNormalizer::process has cyclomatic complexity 57 (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/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd4e46836888e9025d28b0eab8afd264ea5cb81d2c640e4e6963791852aeae6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::settings::registry::current_value_for (cyclomatic 57): xai_grok_pager::settings::registry::current_value_for has cyclomatic complexity 57 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/settings/registry.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"776a0d58f97dc22eee2f6a37da24acd1b5da9ee0f4d7cb9cc0ec790efc107d06"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::spawn_and_register_session (cyclomatic 57): MvpAgent::spawn_and_register_session has cyclomatic complexity 57 (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/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":4134}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f7bf2b846cf079b4eb2c6fe42c6814c1d5b9ba0cf341e1985f6e9db5cba827"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::folder_trust::collect_repo_config_kinds (cyclomatic 57): xai_grok_workspace::folder_trust::collect_repo_config_kinds has cyclomatic complexity 57 (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/codegen/xai-grok-workspace/src/folder_trust.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea684b03c202331939e9f1cc0f271d096a564cd9acddd5d77ad2e9940533ee37"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_line_viewer_key (cyclomatic 56): AgentView::handle_line_viewer_key has cyclomatic complexity 56 (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/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce30fc2f59c48b8c6fc659c2c454bff6a536cba4020b3d0f2bd159b857e79f02"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_writer (cyclomatic 56): xai_computer_hub_sdk::connection::run_writer has cyclomatic complexity 56 (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/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2e5280e5f093b1dc6249403f36003646b1dd59e6ac285cff70dd737778d244"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::turn_status::render_turn_status (cyclomatic 55): xai_grok_pager::views::turn_status::render_turn_status has cyclomatic complexity 55 (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/codegen/xai-grok-pager/src/views/turn_status.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"011a823becf3ca46f974697c52e9c1a9e7f9dc65d38ae64c4d5fbfae1673d620"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::stream::responses::stream_responses_tracked (cyclomatic 55): xai_grok_sampler::stream::responses::stream_responses_tracked has cyclomatic complexity 55 (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/codegen/xai-grok-sampler/src/stream/responses.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed85bb8b4119f4456714a14711b763ec032327ad984b818d12f0e3577b38e752"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_bin::run_agent_command (cyclomatic 54): xai_grok_pager_bin::run_agent_command has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"875afcf6472ce52430df6fce208703d882755c6428f99526610a0d24aca1d610"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_extensions_modal_key (cyclomatic 53): AgentView::handle_extensions_modal_key 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":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd2699e86c3985b2369debdae11ec294ac8065d03c98a011b01bb8dd06ebe37"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::run (cyclomatic 52): xai_grok_pager::app::run has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd0ec6cf9a2e14886019369073942cb510162d9d8138559cd689e1e030ae040"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_bin::async_main (cyclomatic 52): xai_grok_pager_bin::async_main has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d8777bfdb160dce5780a6eaa401d81774b03011c171d6b453d84560673f49e"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_sampling_failure (cyclomatic 52): SessionActor::handle_sampling_failure has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"025a6ebb07c722b4af9cd29e1f978135886c9e645c1f8b53e003f896e33ee23e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_conversion::acp_tool_update (cyclomatic 52): xai_grok_shell::session::acp_conversion::acp_tool_update has cyclomatic complexity 52 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaa0d4d4be1874beb805a2eb4a03dd0cfc700b2f5c109929a62fd2f2dc54a46"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::tools::notification_bridge::handle_notification (cyclomatic 52): xai_grok_shell::tools::notification_bridge::handle_notification has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce453664a62bc757c0a3369a8db962a2bed6c2636ca97050127f81edca1219c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::draw_active_modal (cyclomatic 50): AgentView::draw_active_modal has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be4199f7949b9dcea97101da081e980155a32601a5f81c814e5c0a3cc5d044e"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceHandle::session_bind_resolver (cyclomatic 50): WorkspaceHandle::session_bind_resolver has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3055d781cca0aac8a19e1789faf247ce170417d0e6f4ce95af194423348dd4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_scroll (cyclomatic 48): AgentView::handle_scroll has cyclomatic complexity 48 (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/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3ff761f15f61cb59189f51a127731fb96ae7c684bf786cdc9d8a6feab6cb4b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::file_search::line_viewer::render_line_viewer (cyclomatic 48): xai_grok_pager::views::file_search::line_viewer::render_line_viewer has cyclomatic complexity 48 (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/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"893b45d3d0cf1ce04b821c209a3404baddab2f89923101958d26b935496db2ba"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::handle_input (cyclomatic 48): xai_grok_pager::views::shortcuts_help::handle_input has cyclomatic complexity 48 (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/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ffa2aa26e6610127b392642d8332af2100ce1998af4d4292e5ad2ff38ae871"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::welcome::render_welcome_done (cyclomatic 48): xai_grok_pager::views::welcome::render_welcome_done has cyclomatic complexity 48 (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/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"87272514e66dfd9c347c014f89c2e8d151ac4953328f7a18f662c0a3da65e4d8"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::inspect::print_human (cyclomatic 48): xai_grok_shell::inspect::print_human has cyclomatic complexity 48 (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/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca5c0e144344804b79e1543774c851d8408c1e49a02ab7ef8286e5b4122ca3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_modal_mouse_with_registry (cyclomatic 47): AgentView::handle_modal_mouse_with_registry has cyclomatic complexity 47 (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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc90067e91d8b3402a9534b0d7382d3c248c8e8ce55af413de7ff63eb1169eb2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::persona_detail::render_persona_detail (cyclomatic 47): xai_grok_pager::views::persona_detail::render_persona_detail has cyclomatic complexity 47 (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/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06daedb2d5831cd4eadc5159a74fb0a1f63012917002a8e3963a1b3915cefbc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_elicitation_key (cyclomatic 46): AgentView::handle_elicitation_key has cyclomatic complexity 46 (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/codegen/xai-grok-pager/src/app/agent_view/elicitation.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"91038e5a3f4794bca162921ae442b9c0b69c10a4eb6f92df48ce70c2755434fb"}},{"ruleId":"D1","level":"warning","message":{"text":"AppView::tick (cyclomatic 46): AppView::tick has cyclomatic complexity 46 (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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5199}}}],"partialFingerprints":{"codehealthFindingId/v1":"82784d6b9141ee2945d4b4044e430f9567fab534656f15bcf30f95afdf5b5706"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker_row (cyclomatic 46): xai_grok_pager::views::picker::render_picker_row has cyclomatic complexity 46 (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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c540ffb80630061d98eba807774177c20eef5cf268bb77306a552a21f59e4a"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_sampling_event (cyclomatic 46): SessionActor::handle_sampling_event has cyclomatic complexity 46 (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/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1064f04ff36739aee52171c15a98bc4dc8e6d416fd8a7014aed9162f6eb8003"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::storage::search_content::collect_all_indexable_content_single_pass (cyclomatic 46): xai_grok_shell::session::storage::search_content::collect_all_indexable_content_single_pass has cyclomatic complexity 46 (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/codegen/xai-grok-shell/src/session/storage/search_content.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c8dffa33f53059c6cf3f11fcd75b8afc3eff6d5033d71f28e6cab7c5acc0e3"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsedMarkdown::render_ansi (cyclomatic 45): ParsedMarkdown::render_ansi has cyclomatic complexity 45 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"30258009c8d2ac4b07133e386d5b468762a53036719c80619b16386563d3a3c6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_question_mouse (cyclomatic 45): AgentView::handle_question_mouse has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96375d0cc6f7b7a176a626ca0c8047cf4c76639e5184341d22ccf71343433a7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_workflows_overlay_input (cyclomatic 45): AgentView::handle_workflows_overlay_input has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5269a7c78ff0006c1d1cf2d40ad5b28eaff19b9364ea4b2e1b4181b541654955"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::settings::handle_settings_update (cyclomatic 45): xai_grok_pager::app::acp_handler::settings::handle_settings_update has cyclomatic complexity 45 (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/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"928c5ec155f3ff6fc8a16716c2a2330bfe7093382548a029a107342ead9f9bdb"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigModelOverride::apply (cyclomatic 45): ConfigModelOverride::apply has cyclomatic complexity 45 (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/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"791c7e0c56b2becafe1ddb2ff28e9cbb885b0c1bf67bd8af88297dbb26ecc59a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::config::resolve_model_list (cyclomatic 44): xai_grok_shell::agent::config::resolve_model_list has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"82da2f5698d06021c4f77afd3af8f4f3588bee7663b2a52a12cf990dd130d061"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::helpers::session_compact::generate_session_compact (cyclomatic 44): xai_grok_shell::session::helpers::session_compact::generate_session_compact has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fddc268e951c97b53c51bf24be81b9be1c8aab6fb114cb94e80fb0ef31e0f38"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceHandle::connect_hub (cyclomatic 44): WorkspaceHandle::connect_hub has cyclomatic complexity 44 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3835}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab062de2f8e514ddc9fb49137f6be114c4b7048bf545d9422c6560828c1327b"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::handle_command (cyclomatic 44): HunkTrackerActor::handle_command has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mod.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"41494326aa78aae2250547c93eb45c63aa9d33b5218ee003d9870d454047e887"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportClaudeModalState::handle_key (cyclomatic 43): ImportClaudeModalState::handle_key has cyclomatic complexity 43 (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/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac355a7411a0879c621656c139d1e810a7894a109774b9da502c06e32bc43af"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::drain_and_process (cyclomatic 43): xai_grok_pager::app::event_loop::drain_and_process has cyclomatic complexity 43 (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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddc71e8689d2a47aa2a90538e355f61d985a656fae3b06f2c61d5041826df5f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker (cyclomatic 43): xai_grok_pager::views::picker::render_picker has cyclomatic complexity 43 (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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f520c2ac59669a672d92da527116ad851f4f4f455b821a62e34c63564248584"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::prompt (cyclomatic 43): MvpAgent::prompt has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MvpAgent::ext_method (cyclomatic 62) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"b507d09409a37c858571bb6272249fddcb5159cdccbf747b0af24e6e0442c444"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::config::apply_requirements_inner (cyclomatic 43): xai_grok_shell::config::apply_requirements_inner has cyclomatic complexity 43 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec7939883c1dcf84767875e8d51c8281e62c59848820aa3f4183c17214e23e7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_extensions_modal_mouse_with_copy (cyclomatic 42): AgentView::handle_extensions_modal_mouse_with_copy has cyclomatic complexity 42 (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/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfa98772e37d6ecafcc036147028b63cafcfa335bbf2bc423768f2934e1b0fe"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPaneState::prepare_layout (cyclomatic 42): ListPaneState::prepare_layout has cyclomatic complexity 42 (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/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"504c3edad7a082e8e5904373e44bc9bb60a54f7af595e2fc18aef0437d9c9075"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::workflows::render_detail (cyclomatic 42): xai_grok_pager::views::workflows::render_detail has cyclomatic complexity 42 (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/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"8245263854f118730631a1f1d0c3125d139d09d776f4694114f12b0896de8dc4"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolServer::run (cyclomatic 42): ToolServer::run has cyclomatic complexity 42 (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/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30357bd08e8f44e3078589a739c0ca9023df4edb6d00c3228228f79cb59cb86"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackState::prepare_layout (cyclomatic 41): ScrollbackState::prepare_layout has cyclomatic complexity 41 (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/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"496a70f6bb121541223b8e37c00f9ac55c767df4b46fe038474de63da22c2613"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::render_permission_view (cyclomatic 41): xai_grok_pager::views::permission_view::render_permission_view has cyclomatic complexity 41 (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/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"183be8bc542fd42e686ecf61173bcf5fce0e394e69b29882f9c09a96337dee1e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_picking_enum (cyclomatic 41): xai_grok_pager::views::settings_modal::render::render_picking_enum has cyclomatic complexity 41 (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/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"a833602adfdac3195fda8340d9058699c6aed3b3a2937da44f1e1385da389253"}},{"ruleId":"D1","level":"warning","message":{"text":"AcpUpdateTracker::handle_user_message (cyclomatic 40): AcpUpdateTracker::handle_user_message has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd0d1543c8e1eebdbafac68bfc41e5e6f657e3077c6cbb9cde1b92b2eaa9f13"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentViewLayout::compute (cyclomatic 40): AgentViewLayout::compute has cyclomatic complexity 40 (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/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b5d3e7d83751efda546eb910a738d0ee363bc39b35cfc82963b7f6e7bd5f1e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::queue::handle_queue_changed (cyclomatic 40): xai_grok_pager::app::acp_handler::queue::handle_queue_changed has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/queue.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9a266f1853864ed9951e9da91c53780bfb77e520e7661bf4c6bddaf5f1b46f"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::new_session_inner_impl (cyclomatic 40): MvpAgent::new_session_inner_impl has cyclomatic complexity 40 (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/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"632c337c64fb788e2b496ad25ce77e7700e1e4d85704254d859f0fc1d65c9e49"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::mcp_elicitation::validate::validate_field (cyclomatic 40): xai_grok_tools::mcp_elicitation::validate::validate_field has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67eabc2ea6a5fb2591286a6f98744fe91b8c6392bfaaaefe8e7fc8fec13572b"}},{"ruleId":"D1","level":"warning","message":{"text":"ptyctl::keys::parse_special (cyclomatic 39): ptyctl::keys::parse_special has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/keys.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfd1933f1a9ae98eb5772a10512ee69a589c380c66847df252eba1799e85e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::layout_canvas (cyclomatic 39): xai_grok_markdown::mermaid::layout_canvas has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de308a6a92cba08c96e4d8022ec784ce13a8a51e452db9506da166bea8aae5a"}},{"ruleId":"D1","level":"warning","message":{"text":"AcpUpdateTracker::handle_tool_call_update (cyclomatic 39): AcpUpdateTracker::handle_tool_call_update has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"443b9a49600c9d6c3f3741bb99fd441af757a67856645ec6bbbd348510b0a198"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch_slash (cyclomatic 39): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch_slash has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15c84ef6872e94e6a15cf7e169061fb16134a17cd72d5bf205669ef808be599"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::policy::shell_dash_c_script (cyclomatic 39): xai_grok_permission_rules::policy::shell_dash_c_script has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed40304d6113be8c0231c197e53cd41450bee94758dc496fee70f1acaca43b83"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_plugins_action (cyclomatic 39): SessionActor::handle_plugins_action has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fca4963491dd8d5f584be5eb02d440b2febf2286842e6c14ef627ad390fb75"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownParser::on_end (cyclomatic 38): MarkdownParser::on_end has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f7733e727ce0faa8e12f80ee85839aaf4c6a1a72f377bcb27cb83141a7393b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_bg_tasks_key (cyclomatic 38): AgentView::handle_bg_tasks_key has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a6af2bcf88721e43d8e273f2fbcf031025fb4c06ae6bf00097050c916dc921"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionEvent::message (cyclomatic 38): SessionEvent::message has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/session_event.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e82b3ff2af7ba0e2da400170102a766cc23fc660d4b7bf871b10bfdfea45703"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::read_file::run_read_file (cyclomatic 38): xai_grok_tools::implementations::grok_build::read_file::run_read_file has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f0a0969374616b83bc39d8686eb12f26a28e98ca809df2f560368ba97a26b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportClaudeModalState::handle_mouse (cyclomatic 37): ImportClaudeModalState::handle_mouse has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a50fb22f6cc805b61080f4198155914466ee2314c68f1d15c5e50ccb06e22d5"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::ext_notification (cyclomatic 37): MvpAgent::ext_notification has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MvpAgent::ext_method (cyclomatic 62) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f097c94e4db44eee42420e7299b6f5691af7c10732b0b1fe25b8236657e5a7be"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::relay::run_websocket_session_with_liveness (cyclomatic 37): xai_grok_shell::agent::relay::run_websocket_session_with_liveness has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dab7939ca4d20d81af1ee4faf806cc76a0890cbe9e30984fafa24e87503255"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::evaluate_bash (cyclomatic 37): xai_grok_workspace::permission::grants::evaluate_bash has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ad7b2482513e4d2eb21ac4588eaba0a6d52b17f090f84d99a87def2316c55"}},{"ruleId":"D1","level":"warning","message":{"text":"TextArea::input (cyclomatic 37): TextArea::input has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"d721984b379a00a7b3d9a1717881391b4912a6a3168c0b400873eb6e47907bae"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesReducer::reduce (cyclomatic 36): MessagesReducer::reduce has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d9dda6a5ac07d3a8218954b2d33b328f7a1a1340f05aa522240c2c6dc1a4ab"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::peek::extract_last_response_type (cyclomatic 36): xai_grok_pager::views::dashboard::peek::extract_last_response_type has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d075b6ffe678603c4b40117008a784b09b990dcc83b467eb131c97a1e833116"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::mcp::handle_list (cyclomatic 36): xai_grok_shell::extensions::mcp::handle_list has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"402c6139899d71a4e7b684a4b50f70e12c1258d85f01982d321dd3986b615454"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistryBuilder::finalize_with_trunc_config (cyclomatic 36): ToolRegistryBuilder::finalize_with_trunc_config has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7fe1425b53a78a362c4ec076cd9db49d0b14920ce7debb29714e1609d99102"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::diagnostics::fix::classify_tmux_assignment (cyclomatic 35): xai_grok_pager::diagnostics::fix::classify_tmux_assignment has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4570bc3fb7f16b10435f751fbaae156b4826a2173ba7ec3d602b9ca31ac3b4f6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::peek::render_peek_panel (cyclomatic 35): xai_grok_pager::views::dashboard::peek::render_peek_panel has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f1a4bbbb2963336fcaa54f59f3fd8e301a01e97adcc990295a5403efeb6dd7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::render::osc8::scan_logical_line (cyclomatic 35): xai_grok_pager_render::render::osc8::scan_logical_line has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/osc8.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bbbbc339433e33d876be0747c604248bdc047005bb8dd1b573b1a1fba6f8fa"}},{"ruleId":"D1","level":"warning","message":{"text":"CompiledPolicy::evaluate_shell_file_access_inner (cyclomatic 35): CompiledPolicy::evaluate_shell_file_access_inner has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/shell_access.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc9326830574e426d9fea007ad48ebe23f3f162efbf5ff6e85d471298e4af92"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptWidget::handle_key_inner (cyclomatic 34): PromptWidget::handle_key_inner has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"32681b195afc12a4d501e5b06c62d817e6c046c64248157b5d2fcdf64c67ad66"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::render_agents_tab (cyclomatic 34): xai_grok_pager::views::agents_modal::render_agents_tab has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2eccb99ec30a9ac2c4f8ef2e9551c5f230c9997fe4af5379bae26576c7eb75"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_rows (cyclomatic 34): xai_grok_pager::views::settings_modal::render::render_rows has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb8d13ff3d76f80cb440f50168dc214e32714e2726a45ffc1317120f890945d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::location_path::shorten_location_path (cyclomatic 34): xai_grok_pager_render::location_path::shorten_location_path has cyclomatic complexity 34 (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/codegen/xai-grok-pager-render/src/location_path.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a63f379656d8d9e6e37ea72587a475f011821338da29575cf06a00527fc9f09"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::messages::build_messages_request (cyclomatic 34): xai_grok_sampling_types::conversation::messages::build_messages_request has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation/messages.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6884136fdcc764568f8057f55c4dd0a6a6557d83f8ebb01edd5eaec94aafbd4"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::attach_session (cyclomatic 34): MvpAgent::attach_session has cyclomatic complexity 34 (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/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"20efd274c8d5b45a4e1fd3d50ef424d13b04c4c5b6d1d182363a1404802529c5"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::drain_goal_updates_with_extra (cyclomatic 34): SessionActor::drain_goal_updates_with_extra has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e0b64140d694aedf74b6dca81dd7809b7b51aa0781f716b320647535b82451"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::run_v2_capture_worker (cyclomatic 34): SessionActor::run_v2_capture_worker has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_capture.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a032f6547fd1a890eeb5f6ae7698fd0c384c7296f0967e16850f682eb65a349"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_rewind (cyclomatic 34): SessionActor::handle_rewind has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9512aeb5002754507924768c1872101d27ae1c60f7ae9948d50060d935d831df"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::prompter::map_selected_outcome (cyclomatic 34): xai_grok_workspace::permission::prompter::map_selected_outcome has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7a2c708be664820da5ad5a73133bc4a2432a9209d88567e91106049e19fb91"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_hooks::runner::command::find_local_shell_assignments (cyclomatic 33): xai_grok_hooks::runner::command::find_local_shell_assignments has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5d0395483ef92191bd4297d0769a7281ef02336514ad26e0ba9edb6723941a"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownParser::format_table (cyclomatic 33): MarkdownParser::format_table has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ce1d59bb55517b1f4fb43472a2fcb7b8e39b42c5dab96b5ef3d9fd4a7c2be6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::doctor_cmd::human::format (cyclomatic 33): xai_grok_pager::doctor_cmd::human::format has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"defb72e3de55296dd6d79dcc53d4829e359a06beee4600d17abc18b1809aa262"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_row (cyclomatic 33): xai_grok_pager::views::dashboard::render::render_row has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fe20dbb43bc5d58d012a42ac706f4c8a8c875abfe6faa6b3b91161156868c7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::handle_memory_mouse (cyclomatic 33): xai_grok_pager::views::memory_modal::handle_memory_mouse has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5e7887d923400390d1f47f378415040b1f3553c142fe08d5e60fec4dff8564"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_settings_mouse (cyclomatic 33): xai_grok_pager::views::settings_modal::input::handle_settings_mouse has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0023f95cab08be419eb13e92c22d63606fe09e63f582f8607891b4c081e1f21"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::usage_modal::handle_usage_modal_mouse (cyclomatic 33): xai_grok_pager::views::usage_modal::handle_usage_modal_mouse has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/usage_modal.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2880a5c45164e0f2a9f073ae626671a5685c8346c3548d684597d4be4a49cefb"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::worktree::handle (cyclomatic 33): xai_grok_shell::extensions::worktree::handle has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee53dcfcc44a5b944e30f38210acc232aa2e04684ddfa352c71e970e1b1e8a4"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalTerminalActor::poll_process (cyclomatic 33): LocalTerminalActor::poll_process has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"983aa9b75b2ebf02cc3ea96e4a36ffeb5756520bdaafb4ee1f29458039e374a4"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentCoordinator::resolve_agent_target (cyclomatic 33): SubagentCoordinator::resolve_agent_target has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/agent_targets.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"361118da15e7848086b03d85fd29e2b5f809c2fb062ac1e77bf66e72144203ce"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentCoordinator::handle_command (cyclomatic 33): SubagentCoordinator::handle_command has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"152dc32ef064fdb11aeda33aee016bd314c72a75fa71f4f2c99299b7f724bbf3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_plan_feedback_key (cyclomatic 32): AgentView::handle_plan_feedback_key has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fed414b2cac7cc2847bb68a65d657cc6886fc8a55e74c024004b620d2461f8b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_narrow_rows_with_grouping (cyclomatic 32): xai_grok_pager::views::dashboard::render::render_narrow_rows_with_grouping has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c1faa33fa1205c14c2b387c01960e6c848b1483396e47abc6c623c9b7abac5"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::new_from_toml_cfg (cyclomatic 32): Config::new_from_toml_cfg has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5f823a80e692557a46ada141e3a67d4582009c4da8d288cc57090ad2b66680"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::manage_workflow_run (cyclomatic 32): SessionActor::manage_workflow_run has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc1c384eb797478954fd87cee501c083e8515e897d2f16d2ff6f9c3d62fcdaf"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowManager::launch (cyclomatic 32): WorkflowManager::launch has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/manager.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"157eee45cb7b8885454195617bfc7dc604f0be44a40e2a4db177dfc8982e4e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalTerminalActor::handle_command (cyclomatic 32): LocalTerminalActor::handle_command has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5a6796b840d517d000dc089bbc2debd012bb8e4380c43f747390fb976aa703"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskTool::run (cyclomatic 32): TaskTool::run has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b07379b1f1421528f15a6102bde082b8874ca6f9179a42ac34f48e652a92e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_queue_key (cyclomatic 31): AgentView::handle_queue_key has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/queue.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf916e6d14f7fd8b25b4706356f01407e0b9648026eea03f22c44eb128675f"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedbackModalState::handle_drafts_key (cyclomatic 31): FeedbackModalState::handle_drafts_key has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/drafts.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2c9a21eb4fda1ffaeba03ab3366098dda05ec2da78004cd2944d5b2fa3375a"}},{"ruleId":"D1","level":"warning","message":{"text":"Osc52Filter::feed (cyclomatic 31): Osc52Filter::feed has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5ae33f11b47defa2e490ac0e2d22ee2bac258b94d99aeb9a67188a99edbea3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::elicitation_view::render::render_elicitation_view (cyclomatic 31): xai_grok_pager::views::elicitation_view::render::render_elicitation_view has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11b70b05d9d97018fcc88db4ce62347c7d4affa2371c1980c268daf69433da1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_browse (cyclomatic 31): xai_grok_pager::views::settings_modal::input::handle_browse has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bf428a2885b7a75e5492d5a3d0b2f2f209b22e963e70f8823d51feb36fd3b2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_hooks_action (cyclomatic 31): SessionActor::handle_hooks_action has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f914152adaba77edcfa4b7ea78ab29ed4da8ff1c689ee637f7b77abdf0f9bfab"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::bin::workspace_server::run (cyclomatic 31): xai_grok_workspace::bin::workspace_server::run has cyclomatic complexity 31 (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/codegen/xai-grok-workspace/src/bin/workspace_server.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5594f7ee2a552d8cf1d61e91ee5ab3cf21be918c00e5eb78124c054e3245e106"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::refresh_all_baselines_except (cyclomatic 31): HunkTrackerActor::refresh_all_baselines_except has cyclomatic complexity 31 (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/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0848c5d5e076b8a4f025d78edb527fd501d7da68e803d8c644b76e99981850"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::parse::cell_word_separator (cyclomatic 30): xai_grok_markdown::parse::cell_word_separator 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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf77578cae06be8155115495d4e38cbd92d2fdc29e8dd2df2618f4e49a7a069"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_scrollback_key (cyclomatic 30): AgentView::handle_scrollback_key has cyclomatic complexity 30 (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/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed34685a1ecebb47fe3b3fcd2aed6797c3fdf22eef100ec9ee7959195f2d317"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_scrollback_click (cyclomatic 30): AgentView::handle_scrollback_click 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/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed8a0a4d1b3a1bc63a9d434e87a713201a38bdc321f91c48da230d242aed353"}},{"ruleId":"D1","level":"warning","message":{"text":"UserPromptBlock::wrap_prompt_lines (cyclomatic 30): UserPromptBlock::wrap_prompt_lines 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/codegen/xai-grok-pager/src/scrollback/blocks/user.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9eef5c13f92958a8aba18edafc91b6549831d3366c259e02d3298cac266189"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPane::render_items (cyclomatic 30): ListPane::render_items 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/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc44b63db52849347934dd49a0a49603d641e9ee932a00437247c54ff823d89"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_diff::build_diff_hunks (cyclomatic 30): xai_grok_pager_diff::build_diff_hunks 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/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d493267923e685555f8db676d5947a22aa8087d1e1d133aef9d6fbe5eae20622"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::stream::chat_completions::stream_chat_completions (cyclomatic 30): xai_grok_sampler::stream::chat_completions::stream_chat_completions 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/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6d858af0cfc492ebc7bca5bc438ee424864bcc4f9517301c615b4384560cfd"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::authenticate (cyclomatic 30): MvpAgent::authenticate has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MvpAgent::ext_method (cyclomatic 62) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed57f134ad41a466f5ea1b9d49929d2db17c9f286aee4be2a6202b079f3733dc"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::maybe_start_running_task (cyclomatic 30): SessionActor::maybe_start_running_task has cyclomatic complexity 30 (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/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"625a592dd5cb22b40f3db127656af4931ff3187e26d810862eb5cdb9f91c25c3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::goal_classifier::evidence::walkdir_changes_blocking (cyclomatic 30): xai_grok_shell::session::goal_classifier::evidence::walkdir_changes_blocking 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/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfed7c393951e21fff6308b0dee18caebe07cd8e7ba9738312295b2dd01326b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadTool::run (cyclomatic 30): ReadTool::run has cyclomatic complexity 30 (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/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbcde85ed0ed9e52d7663b039b44abd3ed432e7121b1f0a6333a42db93e4ff9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::session::git::parse_porcelain_v2 (cyclomatic 30): xai_grok_workspace::session::git::parse_porcelain_v2 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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d83c9b83d63a329cf20595d4ba12325b1578ead242daf3009ff696109483e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_workflow::engine::register_host_fns (cyclomatic 30): xai_workflow::engine::register_host_fns 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/codegen/xai-workflow/src/engine.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a63d4441b7e5b1d883d7e744715b3bbbf7c916695f5d7420d843f8b30f72df2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_config::fs_atomic::resolve_destination (cyclomatic 29): xai_grok_config::fs_atomic::resolve_destination has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7c724b647130eb548b7bbd31a431227e1066e8386bf322aa200efbaa40f0aa"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_external_agent_migration::reporting::format_item_summary (cyclomatic 29): xai_grok_external_agent_migration::reporting::format_item_summary has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-external-agent-migration/src/reporting.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf70ab1116c0e23b30f190a3aa3fdcd4a09bfe629f1c6e4e0b14aa5799f66d5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_class (cyclomatic 29): xai_grok_markdown::mermaid::parse_class has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c6d40d78b644e8c98606eb3d6f1c4e119e947db05864177f47a363f88b66b4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::place_td (cyclomatic 29): xai_grok_markdown::mermaid::place_td has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d99eaadac88c6137a454bf091dddf194c3adc2f1bd8064dd3c5d9bd978fef3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::extensions_action_target (cyclomatic 29): AgentView::extensions_action_target has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"4564fc6a46f99b515887093e32ec8e72c83a93f1ae5b8ccd2f9196c990864eaf"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackPane::render_content (cyclomatic 29): ScrollbackPane::render_content has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e02af9f3d463cfe23cfecdad788c8ee94127e34b080afe8ac8027793b03f7"}},{"ruleId":"D1","level":"warning","message":{"text":"QueuePane::render (cyclomatic 29): QueuePane::render has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"715709ade35d1c207c519a2d0dc7ca274a473d167c74de0abd7a7d1fd27a56b1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::maybe_drain_queue (cyclomatic 29): xai_grok_pager::app::dispatch::queue::maybe_drain_queue has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0b81eeb095c1223fcba3a83091d7f7e642039a323c987ce695f7953835ed0b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::apply_turn_start_shim (cyclomatic 29): xai_grok_pager::app::dispatch::queue::apply_turn_start_shim has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1f82791f376f86eb7f5f6b7e323ef41a6afb8256534e87e21d525213aa8cf0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::diagnostics::fix::tmux_top_level_commands (cyclomatic 29): xai_grok_pager::diagnostics::fix::tmux_top_level_commands has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2256dd9d0326ae73c920555fbc3f63ba541a5d5c2a658b061f4db50acd784111"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::file_search::dropdown::render_fuzzy_item (cyclomatic 29): xai_grok_pager::views::file_search::dropdown::render_fuzzy_item has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbeed9b038bf8e1e75cc54200c8d612b28fde9502dc3c26de21c4e67f3612ca"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::build_entries (cyclomatic 29): xai_grok_pager::views::shortcuts_help::build_entries has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b611cf26738c8d7bd394a43cddb2c485b6991a0540527b8a75b403894f03ff"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::env_scan (cyclomatic 29): xai_grok_permission_rules::bash_command_splitting::env_scan has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b175eecf36c35491115e599e66b242ced5bebfb6388f5c3ea2dade4e2b86ea"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_session_search::bootstrap::reindex_all (cyclomatic 29): xai_grok_session_search::bootstrap::reindex_all has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/bootstrap.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd110a6c753bf3b2b1dc5906ac8900c4cc52b7c2072a5041fb892818a298993b"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::initialize (cyclomatic 29): MvpAgent::initialize has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: MvpAgent::ext_method (cyclomatic 62) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b933d961d1375bf8ee3fb65d54d27129f8606b9724d98078de6738152243f86e"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::queue_input (cyclomatic 29): SessionActor::queue_input has cyclomatic complexity 29 (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/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b012689b6d3f42e50a40e14bc99fd368f496cfb962e4762a78c37766be85def4"}},{"ruleId":"D1","level":"warning","message":{"text":"Summary::apply_patch (cyclomatic 29): Summary::apply_patch has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a4c65937396b85dc2145fa131fcfbb0938b0147fea91ae1a1de5e2a8d8bc17"}},{"ruleId":"D1","level":"warning","message":{"text":"GrepTool::run (cyclomatic 29): GrepTool::run has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8b60dffb4df2617930e25f378c5cd94b00ffe087b43d87d38bd4a8197d8bc0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::search_replace::handle_replacement (cyclomatic 29): xai_grok_tools::implementations::grok_build::search_replace::handle_replacement has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aab430b93680e53becd6220bd0eb7fa979bf48b2089cf0b63e270aa9f689663"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_update::auto_update::run_update (cyclomatic 29): xai_grok_update::auto_update::run_update has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd53d36ff9c9f18670ee2f62c5a02151c25a53b0dde2f9bb0586f4e9b6ab91d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_hooks::runner::command::run_command_hook (cyclomatic 28): xai_grok_hooks::runner::command::run_command_hook has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0657cb63c8ef9b85f722d61505c9ef3ed58e5b3eaf8109716bf1dc73671c3629"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_memory::v2::render_manifest_from_source (cyclomatic 28): xai_grok_memory::v2::render_manifest_from_source has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d825aec468f40ef2410482f02e81bd56f011b1319acf96976b33b707ec3c67d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::other::parse_ask_user_qa_pairs (cyclomatic 28): xai_grok_pager::scrollback::blocks::tool::other::parse_ask_user_qa_pairs has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e476fd8943a88b6e56594735b007afa24ad633174d3ef8f32c10954f07fc471"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_tab_key (cyclomatic 28): xai_grok_pager::views::agents_modal::handle_agents_tab_key has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee752d86bcb821db7e82e998797cfc67a7920ace7b98967aa0eee9e9e15c74cd"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::handle_browse (cyclomatic 28): xai_grok_pager::views::memory_modal::handle_browse has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9f22ccd0e005fdceafde244653e80cf07df6c24b05054a36df2b1dd5dac7dc"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker_content_inner (cyclomatic 28): xai_grok_pager::views::picker::render_picker_content_inner has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faf71f8bba0feaeed8ddac5ea2b12c022ea471e658f58aaf5c480c7a86f94f0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_settings_modal (cyclomatic 28): xai_grok_pager::views::settings_modal::render::render_settings_modal has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba0f2e77e2ee7ae963e60d1a16e06e6e29efbecd20f425bcb1bdb5599f41925"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::maybe_fire_laziness_check (cyclomatic 28): SessionActor::maybe_fire_laziness_check has cyclomatic complexity 28 (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/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef29f2001d228150715bc93dc24dd81e11380491f133c0b9a3ec57be27bd3ffb"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlStorageAdapter::copy_session_data_sync (cyclomatic 28): JsonlStorageAdapter::copy_session_data_sync has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"020b9f9ca11b66f53bc685b98a420a3f9e64c66a2c059982bfdb2499aaf15fe2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::two_pass::snap_split_idx_to_tool_boundaries (cyclomatic 28): xai_grok_shell::session::two_pass::snap_split_idx_to_tool_boundaries has cyclomatic complexity 28 (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/codegen/xai-grok-shell/src/session/two_pass.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5415726f2be66258978ae429cae5ec2ce02e13997ff39fb9a7c43f5d4e239328"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulerActor::fire_next_task (cyclomatic 28): SchedulerActor::fire_next_task has cyclomatic complexity 28 (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/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f8c46a2a046c8531394d3a7ebdea4244711773b8b1d0b53a31eca278efadf1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_update::auto_update::run_update_if_available (cyclomatic 28): xai_grok_update::auto_update::run_update_if_available has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"315e101b0934d2b01c2bc3162665751cbd6ae1c65e011bc05a4e3ba947f87076"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::process_file_change (cyclomatic 28): HunkTrackerActor::process_file_change has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbb0e268ecb74b60c36e3aa11db0264dc458f4930e9ba10ef232294a29009fe"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_config::managed_text::format::parse_block (cyclomatic 27): xai_grok_config::managed_text::format::parse_block has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_text/format.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92ed9f8913f5e4d8b3812c09b042bde58208e4d92de322c572dff5391d2128a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::latex::environments::env_rows_to_strings (cyclomatic 27): xai_grok_markdown::latex::environments::env_rows_to_strings has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"608b4f6a238459e73c174702803f1b258e32def3e3ec411855cebbabd9e56456"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown_core::analyze (cyclomatic 27): xai_grok_markdown_core::analyze has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown-core/src/lib.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"483d0d164471127c4a25326bf18c1d8d19b133d30c2db1325d50bea6533cdef9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::normal_pane_hints (cyclomatic 27): AgentView::normal_pane_hints 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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f59b9127bac1577b8ea4f96cefe3837b497510c09a960798d0284ac9a85320c"}},{"ruleId":"D1","level":"warning","message":{"text":"AppView::view_tick_demand (cyclomatic 27): AppView::view_tick_demand 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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"29859dfb89260adf461aff5f799267b2fac8d408566000ad40bd537f7cf83122"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::dispatch_submit_feedback_modal (cyclomatic 27): xai_grok_pager::app::dispatch::notes::dispatch_submit_feedback_modal 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/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b643d4c95db20f83e20eb07fe813c5151eacd7d799cb7c7e913b659df12c41d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::mcp_cmd::resolve_add (cyclomatic 27): xai_grok_pager::mcp_cmd::resolve_add has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d831fdb277dcce513888a04dbfb5ab86b8d5f4efbe6673dcba9baaa9d6a000"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::btw_overlay::render_btw_panel (cyclomatic 27): xai_grok_pager::views::btw_overlay::render_btw_panel has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/btw_overlay.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe24267714460db8b5ef37c38d2f2fdb596fdb873dfbe1d0fd9f9b11ee179b2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_dashboard (cyclomatic 27): xai_grok_pager::views::dashboard::render::render_dashboard 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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3731a73b44bf0e3d5d25f8aa7ff37868ec79eb45a995d26a8915f9564f34ac10"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::build_dashboard_lines (cyclomatic 27): xai_grok_pager::views::dashboard::render::build_dashboard_lines has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de15ddeecb88ca3f32a7904de5f8d831178dc13bf44d0cee8c7945f5e5c147d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::question_view::render_question_chrome (cyclomatic 27): xai_grok_pager::views::question_view::render_question_chrome has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e4c816a0bc23e3f15065c88cc50221220cfc26e291f8cf9e30e0dfca01e386"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::rewind::handle_rewind_key (cyclomatic 27): xai_grok_pager::views::rewind::handle_rewind_key has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/rewind.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e0f19eef406a79cdb9ba6cc511bee1c954a25f8ce8da1e868064d848330a08"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_setting_row (cyclomatic 27): xai_grok_pager::views::settings_modal::render::render_setting_row 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/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9fedc2a4762eae8c2fd4564f083188970bd1b79878cf1341d41feb57fce7f1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_minimal::live::draw_live (cyclomatic 27): xai_grok_pager_minimal::live::draw_live 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/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56fba6f295997a8b6992ea1fc8c9d152058b7dfc3ffdc838a61d8c062754a52"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::terminal::detect_terminal_brand_from_env (cyclomatic 27): xai_grok_pager_render::terminal::detect_terminal_brand_from_env 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/codegen/xai-grok-pager-render/src/terminal/mod.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"395bfb56c9c53053d53c579c4b2b2acf1e5526fb6c724bfffb5ea36e3fbdd48d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::hunk_tracker::handle (cyclomatic 27): xai_grok_shell::extensions::hunk_tracker::handle has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"501c43f38e7f4eea2c13419492573d8aaca9989256db911f803184b7fb809661"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::connect_or_spawn (cyclomatic 27): xai_grok_shell::leader::connect_or_spawn has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5151a6e0c14dd59a586a03ff98387c75da7edf59a95e912041e46763543ece75"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::memory::capture_transcript::condense_turn_transcript (cyclomatic 27): xai_grok_shell::session::memory::capture_transcript::condense_turn_transcript has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/memory/capture_transcript.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d050dda8e30d615496e7c14956cb473fd50f53154ce257cdd375440096dde08e"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulerActor::fire_as_loop_subagent (cyclomatic 27): SchedulerActor::fire_as_loop_subagent has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"98257b887c386fd27588f6475492826f2a95dbfddd68f95ae62eb95e95806d99"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentsMdTracker::check_path (cyclomatic 27): AgentsMdTracker::check_path has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2782ebd03845a5daddce7940f0149db1d46e1bd2fb9dae3eddbd21a5a0d78bfa"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCallBlock::start_timing (cyclomatic 26): ToolCallBlock::start_timing has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/mod.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eff5b7f663839edfd00e5ae0b3f4f97df32a812819e9ffded78b34fef61845e"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackPane::render_entry_with_ctx_static (cyclomatic 26): ScrollbackPane::render_entry_with_ctx_static has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7c75fe8d6e596975131d20e123d0254f1c68fa534e105ad6ca6aaad899b93a"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackState::finish_running_with_time (cyclomatic 26): ScrollbackState::finish_running_with_time has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f219f8de3fd9d3ed0756bf38012b82d852bf10728a0e8ac927f2428d1025d76"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::background::handle_task_completed (cyclomatic 26): xai_grok_pager::app::acp_handler::background::handle_task_completed has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e8da6a2961b932e2c5dd5213161a003a4bfc08834897862e5e55e7b5b78163"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_worktree_session (cyclomatic 26): xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_worktree_session has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf988c1082313505cc91ec3348669f3fe305b9e4eab7ad82988a0ac3381e0eff"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::dispatch_pick_session (cyclomatic 26): xai_grok_pager::app::dispatch::session::load::dispatch_pick_session has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9fa93732d95ec6a9d00013048952c463384d32493b43657e8b6e3c4107e7c7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::coalesce_live_keys (cyclomatic 26): xai_grok_pager::app::event_loop::coalesce_live_keys has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3610}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ef0cd58a2665c277531ecdd0627518e39b56cc7f891bffbab984a8191c1cde"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sandbox::command::violation::coarse::decode_coarse (cyclomatic 26): xai_grok_sandbox::command::violation::coarse::decode_coarse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/violation/coarse.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d82a3f16c0edfb18c8f69c92b84f23128bea2489586c5eb8fa7d58cf72bb56f"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::execute_v2_dream (cyclomatic 26): SessionActor::execute_v2_dream has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f36cceecd6c5cdb80a6989a782b8dd3db2948fe6a0792ecce100355b93f41c"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingLocalTerminalRunner::run_streaming_loop (cyclomatic 26): StreamingLocalTerminalRunner::run_streaming_loop has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85e5f2c5f6f35291efc75f66796c7e5596e90d71e442d920c68e346ef717348"}},{"ruleId":"D1","level":"warning","message":{"text":"BashTool::run (cyclomatic 26): BashTool::run has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"7561b762e8e55d9ff4c62f25fe46f2df27b85e37d7ca09ab2ccec02ca927157b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::apply_patch::seek_sequence::seek_sequence (cyclomatic 26): xai_grok_tools::implementations::codex::apply_patch::seek_sequence::seek_sequence has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"85587cdc4e51ee4cb9c1b257570380b232bf90367ce2e29047ab2d1688d047c4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::latex_delimiters::find_display_close (cyclomatic 25): xai_grok_markdown::latex_delimiters::find_display_close has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba9ae770961d2a070e29673d6ab767533488356d26e84c0014c3f1d645c1cce"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::relax_rank (cyclomatic 25): xai_grok_markdown::mermaid::relax_rank has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2870}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3db9564aa289ddcf5018b2c513b1eae04fc51dd501bafd260f320b75ce0d5f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_sequence (cyclomatic 25): xai_grok_markdown::mermaid::parse_sequence has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6e5158b229c0ff660a4149d1bff2091075f674b138ea5ac01a2c29e2e10924"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::draw_subagent_fullscreen (cyclomatic 25): AgentView::draw_subagent_fullscreen has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/subagent_takeover.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8c933b7e757359b334eb37d8d42209a45a369094037073f244a33065a63280"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackState::ensure_selected_visible (cyclomatic 25): ScrollbackState::ensure_selected_visible has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd86febb27615a7e32346602dfab4c5758bde7e54775a0547b25540dc19b9df"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedbackModalState::handle_key (cyclomatic 25): FeedbackModalState::handle_key has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"e423f31bf99b42c139b2117b4c0e0120b9cb25b2ca77ceb70c6c899d834ac77e"}},{"ruleId":"D1","level":"warning","message":{"text":"TasksPane::sync (cyclomatic 25): TasksPane::sync has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5baa67e49a975e406cc6565c43bf229a1576f694f97c48a259c53d7525e856a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::consent::handle_answer (cyclomatic 25): xai_grok_pager::app::consent::handle_answer has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ac57da9b85a2cbf8195337995e30301f29420b2cb9efd899f3b5128208bb41"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_minimal::panel::render_mcps (cyclomatic 25): xai_grok_pager_minimal::panel::render_mcps has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f672f1c28ce66b9429e79576724d896d4ee85b9b20a3c04715009d003dffe6"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyShortcut::display_pretty (cyclomatic 25): KeyShortcut::display_pretty has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/key.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f576faecda92b942b9b4ec6155018f2f32da92589064236e3efdfad09539212d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::bash_permission_script::readers_allow (cyclomatic 25): xai_grok_permission_rules::bash_permission_script::readers_allow has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_permission_script.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe33918f390cbe9823b73564410d02b590eaf758f3de10f18e62b435c82372b6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::retry::format_sampling_error (cyclomatic 25): xai_grok_sampler::retry::format_sampling_error has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/retry.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efff59ce5a3fb226339aed80a607b5a71ddf6df990f84b707710814ae7de6c8"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::flush_v2_capture (cyclomatic 25): SessionActor::flush_v2_capture has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_capture.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a5f4743540a20385bab07670ddacf9ef654f8a7e93db21973829b01d1db51a"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_xai_session_notification (cyclomatic 25): SessionActor::handle_xai_session_notification has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0359d01014a8e4a53ca4640e9f99fb3a216c73b499bddceb13a9085653ed8a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRebuildSpec::build_agent_inner (cyclomatic 25): AgentRebuildSpec::build_agent_inner has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/agent_rebuild.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba095524a3e262ab13788296b4da53ad61ec0123fd785a6c1db623be13a432b"}},{"ruleId":"D1","level":"warning","message":{"text":"HostService::spawn_agent (cyclomatic 25): HostService::spawn_agent has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b6b42e3b5b20af2a7eedd17ce825c936f3f28d78edc4d01255c8bf1cdbb758"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::server::handle_connection (cyclomatic 25): xai_grok_shell::agent::server::handle_connection has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98e48437e0aa82315317226a13f985164ad183469e5cad72f70b0f506bd79a4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::git::handle (cyclomatic 25): xai_grok_shell::extensions::git::handle has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/git.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9078d7ad586ff11466081757cbf510f7dd32d9165fe52151ca3b34ec298e9a70"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::skills::handle (cyclomatic 25): xai_grok_shell::extensions::skills::handle has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ca79d869874c2662a925d1af2ee64723c12e8f782b8c6231540de6c81cc555"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::api::gc::reclaim_expired_worktrees (cyclomatic 24): xai_fast_worktree::api::gc::reclaim_expired_worktrees has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api/gc.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8592293b1277e594a19732582b2e73809b155f22ee171338fc003ba24f7eca0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_link (cyclomatic 24): xai_grok_markdown::mermaid::parse_link has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2495352f592a30a3d0c2ff5efa895dff2c66f72dd04291335d320dd7821fbd6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::order_ranks (cyclomatic 24): xai_grok_markdown::mermaid::order_ranks has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2672}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c010daff777543017a30c5373b9c3b813d8b5c94bbf6c2d868fb211a29abe1c"}},{"ruleId":"D1","level":"warning","message":{"text":"AcpUpdateTracker::handle_update (cyclomatic 24): AcpUpdateTracker::handle_update has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5166024692e2abe6b2d8761ba90ce4972a0b8d56bf1f84c84e2e410d792b82"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_agent_action_with_registry (cyclomatic 24): AgentView::handle_agent_action_with_registry has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5c8242d173756bb3fc0913d4e3d6bc95b4174453f26501b40346a0bea0926b"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockViewerPane::handle_mouse (cyclomatic 24): BlockViewerPane::handle_mouse has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df9623f1a6d78a2fe97953c0d08ed0126bdab6993573374be0c3fd950327f41"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockViewerPane::render_text_drag_overlay (cyclomatic 24): BlockViewerPane::render_text_drag_overlay has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcc0dd0ceb12e052077dadf73c48d84f0a69a6766a8140773311aad36c3f598"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::modes::dispatch_cycle_mode_inner (cyclomatic 24): xai_grok_pager::app::dispatch::modes::dispatch_cycle_mode_inner has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"d877876163343488537c9bedcee90519687cf5cd48b731cfdac4ae6d19be8d28"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::slash::commands::workflow::parse_launch_flags (cyclomatic 24): xai_grok_pager::slash::commands::workflow::parse_launch_flags has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/workflow.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b9f35a061c825b942848764da73ac1e930ec728561da67b2c818adcacb22a0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::bash_quote_aware_wrap (cyclomatic 24): xai_grok_pager::views::permission_view::bash_quote_aware_wrap has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f11466dfae4d03e12a683436b4bec18a280c80688fc825d747cfb2713be1e54"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::welcome::workspace_mode::render_workspace_mode_picker (cyclomatic 24): xai_grok_pager::views::welcome::workspace_mode::render_workspace_mode_picker has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/workspace_mode.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ba689317f905c9598d7700d0bf7015619d1e7c8a3e88773a150c1e83e459c1"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlStorageAdapter::read_chat_history_sync_bounded (cyclomatic 24): JsonlStorageAdapter::read_chat_history_sync_bounded has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"174ce28751ad165e3d873004782b05f6e4487c31ba81f75f0b812696f5cf85ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalOtelConfig::resolve_with (cyclomatic 24): ExternalOtelConfig::resolve_with has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/config.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9585cbb75daf610f8bd823b2ea8c05c75107d7d55bc88baed2d28bf7594dffe"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::discovery::register_nfs_from_union (cyclomatic 23): xai_fast_worktree::discovery::register_nfs_from_union has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/discovery.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0afddf02b594189da1f98a787f2f2d49c5698a2b9c435045fb5f802fae469ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Game::step_imps (cyclomatic 23): Game::step_imps has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/game.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a056cfc76cc15c6a08db2d8a5ab04f52601bf37287103db17a4db68827df582c"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthManager::refresh_chain (cyclomatic 23): AuthManager::refresh_chain has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/refresh_chain.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c10ba0151b55b870599406664887bbe757d8a9975fa814de66fd20d5c25073"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::place_lr (cyclomatic 23): xai_grok_markdown::mermaid::place_lr has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d3f175036b69be1c7833ad7d1715f58f5b10fcc7be87b6f19b3f92f294dc38"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchDreamSession::resolve (cyclomatic 23): BatchDreamSession::resolve has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_plan.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d519efbc32b87228c817fd7f44984ef8c1c5e94be4c30fb6207c371173d723"}},{"ruleId":"D1","level":"warning","message":{"text":"V2CaptureStore::adopt_complete_orphans (cyclomatic 23): V2CaptureStore::adopt_complete_orphans has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"264623dbd2ca787d2e85715fdd349602946b3b754f4610a0d6baf40979e2651d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_dock_key (cyclomatic 23): AgentView::handle_dock_key has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d217a22c872500e52440fd225997e728b31e3701acf241a12ef4a61c931af91"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_arg_picker_input (cyclomatic 23): AgentView::handle_arg_picker_input has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b95358602173129808ee3ccf3a1ba5bb3e524f974bc26207b3043140390bbf2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::transcript::dispatch_open_block_viewer (cyclomatic 23): xai_grok_pager::app::dispatch::transcript::dispatch_open_block_viewer has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6917ea52c029734570796daf79ac9eb564835b84021d0bea60313402ee695d62"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::effects::session_list::parse_session_picker_entries_with (cyclomatic 23): xai_grok_pager::app::effects::session_list::parse_session_picker_entries_with has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/session_list.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d19649ff3c29a567d19afa05aba6f23bf7e00ca5b6ed9c52822e90424063716"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::diagnostics::doctor_format::format_doctor (cyclomatic 23): xai_grok_pager::diagnostics::doctor_format::format_doctor has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6be49e9554d7014776285fbac3ab29f039ef2c9a1501c2ce0eb3bd4efd7d786"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_rows_with_grouping (cyclomatic 23): xai_grok_pager::views::dashboard::render::render_rows_with_grouping has cyclomatic complexity 23 (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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"284284600588e7fa6d2b5158403d0824a612abf7951b0ba6f94961c071b14a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::render_file_list (cyclomatic 23): xai_grok_pager::views::memory_modal::render_file_list has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"4386f97f7fa3a8099f4aab1c95d848c0632459f9a739a26ef6ed1e31c39956b4"}},{"ruleId":"D1","level":"warning","message":{"text":"TermSink::apply_sgr (cyclomatic 23): TermSink::apply_sgr has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/terminal_output.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4d993e38b74ed8b0855df5d5f34d258d18ccc90b8889bc35e211b6610e785"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::actor::request_task::run_request_task (cyclomatic 23): xai_grok_sampler::actor::request_task::run_request_task has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad91862ed12391ebbc173c11eeadbf779b015a0f63817c6d112ab7d044ddd686"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::maybe_run_goal_planner (cyclomatic 23): SessionActor::maybe_run_goal_planner has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e241c3f6c6051e12e5f8c3cea80b5b143a2ad6aff0de979a7f4a526c516640b2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::run_memory_flush (cyclomatic 23): SessionActor::run_memory_flush has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37423011e9f4902b815d5169465451d2fe1c24938eaaa40c2dd6e6f2ad89cd7"}},{"ruleId":"D1","level":"warning","message":{"text":"HostService::dispatch (cyclomatic 23): HostService::dispatch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf625caf15c204898cf3ed14e9039dd5d1736dfea1bc37d25b94a6221688c21"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::mcp_argument_coercion::walk (cyclomatic 23): xai_grok_shell::session::acp_session_impl::mcp_argument_coercion::walk has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_argument_coercion.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf48c0153807a4e8e745c653020c1599d40c486ef2a75ae89ade16da7fbb31"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentCoordinator::handle_internal (cyclomatic 23): SubagentCoordinator::handle_internal has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d5c81c5c6ef504f5bfac6e337126ad24d6147e244abb38e0421052784da30c"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionRoutedToolHandler::handle_call (cyclomatic 23): SessionRoutedToolHandler::handle_call has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2f114e3880f418203f22651ed1bf777eef07c687e99f0e3effa5548bbd6bfd"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::file_system::git_status::git_status_impl (cyclomatic 23): xai_grok_workspace::file_system::git_status::git_status_impl has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/git_status.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3660f49493ff59657a55ab09402e70053ae49af9e832432dc5669f8ffcb3ed49"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::api::try_btrfs_remove_from_metadata_inner (cyclomatic 22): xai_fast_worktree::api::try_btrfs_remove_from_metadata_inner has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"250db02352c5f74f5cea19eef0b8753072b4de4e4beed909073a81d4ce135b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"Renderer::draw_walls (cyclomatic 22): Renderer::draw_walls 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/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09529b585dc97ab5a39c4be2c31e1bd48fb9e62a2f1d7bdf9a6b991f0e777db"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::turn_completion::finalize_child_view_turn (cyclomatic 22): xai_grok_pager::app::turn_completion::finalize_child_view_turn 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/codegen/xai-grok-pager/src/app/turn_completion.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"898b04412be3674961a9f48d50cb3d83ba7e21eee4da08fd01d4cf12d96c1632"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::notifications::title::write_item (cyclomatic 22): xai_grok_pager::notifications::title::write_item 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/codegen/xai-grok-pager/src/notifications/title.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b38c9e2a212ce6ec772a13a92b192989eb7b0e9fcc508d5d0e0feee4eb7bbf"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::render::map_hyperlinks_to_overlay (cyclomatic 22): xai_grok_pager::scrollback::render::map_hyperlinks_to_overlay 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/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2af6292942bb668e12859ce6c1dc68ec4db0bcc7f7ff07a5a0ce8cbd478abe"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_personas_tab_key (cyclomatic 22): xai_grok_pager::views::agents_modal::handle_personas_tab_key has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89a4635d4d3de7f53ee9ebcdbd2158710dbcbedadbd9e7d5bdf54a230dd4528"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_mouse (cyclomatic 22): xai_grok_pager::views::agents_modal::handle_agents_mouse 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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a5a10af2d4f9465c820b9924b31342cadb492d302c75a5a7a14701ad186ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::render_modal_shortcuts (cyclomatic 22): xai_grok_pager::views::modal_window::render_modal_shortcuts 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/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c400e45ca900b749b939f417ee81b70e9079bfe93045d3bb4f9fdd2f316737e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_picking_enum (cyclomatic 22): xai_grok_pager::views::settings_modal::input::handle_picking_enum 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/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef254ae82ade438af9a07f6780a8df8e2f1349a8961af90fb2f8e7855d491ec"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::render::highlight::paint_match_highlights (cyclomatic 22): xai_grok_pager_render::render::highlight::paint_match_highlights 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/codegen/xai-grok-pager-render/src/render/highlight.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc6a926d4cf48e5bf69424e43d07e6417679efb788bed60aea6acdde973f091"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_recap (cyclomatic 22): SessionActor::handle_recap 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/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d3a9413480fa6c880f9b39da54230f3b01a7ef412e3da23662cdfb928f1de2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_bridge_tool_success (cyclomatic 22): SessionActor::handle_bridge_tool_success 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/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabbd79b62be2c058aa5bce580bbee466b817429b144ad607baa1d66ea1b6e9f"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlStorageAdapter::load_workflow_runs_sync (cyclomatic 22): JsonlStorageAdapter::load_workflow_runs_sync has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a412fcb2999eecc7f6e08ecc67e88c8e9d22200acb5c7c175b5228e4043f9502"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::attempt_store::decoder::key_is_c (cyclomatic 22): xai_grok_shell::agent::subagent::attempt_store::decoder::key_is_c has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/decoder.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee03e0106e88ab0be0690108463a29a6c260580d944f1df37d758a929a0c5b8f"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceHandle::on_turn_boundary (cyclomatic 22): WorkspaceHandle::on_turn_boundary 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/codegen/xai-grok-workspace/src/session/checkpoint.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"febd18c09000db0ea8ff2fc3cad471766749169df8304d9094b86911d382eece"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::sandbox_gate::decide (cyclomatic 22): xai_grok_workspace::permission::sandbox_gate::decide 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/codegen/xai-grok-workspace/src/permission/sandbox_gate.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7c30e01144073cc3621d7f94c1acca4610f15579b46fd93cf6dfb6f3bcb0c3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_agent::prompt::agents_md::read_agents_config_with_roots (cyclomatic 21): xai_grok_agent::prompt::agents_md::read_agents_config_with_roots has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/agents_md.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7855cb10ad3c7fe8e18b242c5ba2e2a82017d7dfbf64c41ceab33fbf1af01d2f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_login::flow::run_auth_flow_steps (cyclomatic 21): xai_grok_login::flow::run_auth_flow_steps has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96f666daab4f0462ca6017f6583cba2fc92787ef660df262af93302e4f5580c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::try_handle_dropped_paths_paste (cyclomatic 21): AgentView::try_handle_dropped_paths_paste has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d15b652cefc3ce6ea82e6db444b8cf07020c813aa5f34e0201d9960df0670f4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_history_search_key (cyclomatic 21): AgentView::handle_history_search_key has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"286c941a06ada22012cf8277293e9fc946464ac574d7b7c7559be17b0f9b5c06"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::render_selection_buttons (cyclomatic 21): AgentView::render_selection_buttons 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/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83a7d6fb266983a0c34a5685373fb89fac4ef17dd89a8b72d44f3d0d99e5291"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionBox::render (cyclomatic 21): SelectionBox::render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/selection.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c0daac02ec938e70f13fb30803414bcb7f64157d0ab67a9776a508b3aa146"}},{"ruleId":"D1","level":"warning","message":{"text":"SlashController::command_suggestions (cyclomatic 21): SlashController::command_suggestions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"6645d8d72b5be55c0a8bbcf0f6aa6f706ab332245280a53a5e867d98d5c436c9"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::complete_clipboard_attachment_paste (cyclomatic 21): DashboardState::complete_clipboard_attachment_paste has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"741efddc6b2dd93f54d8021dd779e8de4284168c3b38ab04132149ac84349d97"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::apply_retry_state (cyclomatic 21): xai_grok_pager::app::acp_handler::session_notification::apply_retry_state has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd55fab79837bc14a917fa9c79ac5768408c3bc279bcfe745b16823ef8c8188"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::render_input_form (cyclomatic 21): xai_grok_pager::views::extensions_modal::render_input_form has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager::views::extensions_modal::resolve_key (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":4164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2a0b4e5ff363f14eacb72972a7ace41ae621e1582134f2f9bcd050bb0a2cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::new_worktree_dialog::render_new_worktree_dialog (cyclomatic 21): xai_grok_pager::views::new_worktree_dialog::render_new_worktree_dialog has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5a542dba4a24ec3ef78956e050ab226e47ab7f00af5023f3fb2437eb4b034f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_search_bar_with_label_viewport (cyclomatic 21): xai_grok_pager::views::picker::render_search_bar_with_label_viewport has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d846dfb5cd924809bef8d56a8d36cc1de786f5dd977e154a918ad37577a905f0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::question_view::build_freeform_line (cyclomatic 21): xai_grok_pager::views::question_view::build_freeform_line 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/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"22815bfddfaf1b604e10f4fea7048583be56d9531b8e4ba4c3747b39054778f1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_picking_group (cyclomatic 21): xai_grok_pager::views::settings_modal::render::render_picking_group has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d08b0df7c1670d9c37892611b6d819b33abae72ba8f977f9c8664170b5172"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollConfig::from_terminal_context (cyclomatic 21): ScrollConfig::from_terminal_context 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/codegen/xai-grok-pager-render/src/input/mouse.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8e167c202a89975e426fbd922e33625c41aeba639dcd7290b87926f090e76c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::strip_wrapper_command (cyclomatic 21): xai_grok_permission_rules::bash_command_splitting::strip_wrapper_command has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9eb46f762c0cbbba996d8c1bb560f4a5073fe4405e739df3623ebf9f34b337"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileName::capability_set_from_profile (cyclomatic 21): ProfileName::capability_set_from_profile has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/profiles.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a147321d2d955c3b4e3482c8db603147af1446ca8a3a4673583f32f1359bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileName::resolve (cyclomatic 21): ProfileName::resolve has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/profiles.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e76566b8f5a465a4d04cdee832d2904398e96e5d854b7ad033a9cd902834ad"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::resume_goal (cyclomatic 21): SessionActor::resume_goal has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"be00029d53cde8d69a94b9bde0dd3230e5682198c172ce312ea5bfd0c4e8ef9a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::inspect::list_config_sources (cyclomatic 21): xai_grok_shell::inspect::list_config_sources has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2472d87e165d784cc93335d4b12766672db0e2e3c319cf5fd24a9a39dd82116f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::sampling::error::map_sampling_err_to_acp (cyclomatic 21): xai_grok_shell::sampling::error::map_sampling_err_to_acp has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/sampling/error.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"40be05578225dd95d4321396a238e1582987751e33451dafa525c96be03e5031"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistryBuilder::validate_config (cyclomatic 21): ToolRegistryBuilder::validate_config has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"71679a2ceb3cf394f457c5bc0df5c88f0c83130172315549bb4f99218acd1b7e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::bash::contains_background_operator (cyclomatic 21): xai_grok_tools::implementations::grok_build::bash::contains_background_operator has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0c8a4edda939f00fb0344b4b89b869f6267538743a1e9f6d129f5687da29b6"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceHandle::resolve_path_within_root (cyclomatic 21): WorkspaceHandle::resolve_path_within_root has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c9cfaa1c0396fd28b431c3c8aac5df3a1f8caa02a117bc126f744c637ba20a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::file_system::content::content_search_streaming (cyclomatic 21): xai_grok_workspace::file_system::content::content_search_streaming has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/content.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b23bf8f4762b962d2fa33a961dbd805aecba7d854f6ab1182392c41b28bb2ec"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::api::cleanup_orphaned_btrfs_snapshots_inner (cyclomatic 20): xai_fast_worktree::api::cleanup_orphaned_btrfs_snapshots_inner has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"890badc648c536fcd7b36563bb7bb840421e52dfd8afb3b35a0a145e99dda51a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::bin::worktree_lifecycle_bench::runtime::run_contained_command_impl (cyclomatic 20): xai_fast_worktree::bin::worktree_lifecycle_bench::runtime::run_contained_command_impl has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fffff28cfcffefa756d5067526e851e64c009ce0992901d224a6f991cab72f4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::copy::engine::copy_parallel (cyclomatic 20): xai_fast_worktree::copy::engine::copy_parallel has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/engine.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"631c3eb4291c8f09efa8857b63f15040b2cdb021833cfa5995229a90289fdd34"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_file_utils::queue::upload_with_retries (cyclomatic 20): xai_file_utils::queue::upload_with_retries has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfd9b2e093602255d091d1a057ef76fa360fd3c48c2dcb46b746f6c61cec6d5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_agent::plugins::discovery::discover_plugins (cyclomatic 20): xai_grok_agent::plugins::discovery::discover_plugins has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/discovery.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e70aeadf8998e5aa45d2fd751de22e1e6e64d8909fd5c3880ebe034ed419dd"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryBackendImpl::search (cyclomatic 20): MemoryBackendImpl::search has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/backend.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc44dfc3d34164bedfc8844bca0f9570e9df94ed0730c6044659d2184c59970"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_memory::storage_v2::list_memory_files_with_caps (cyclomatic 20): xai_grok_memory::storage_v2::list_memory_files_with_caps has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d2dc892ea883432ba8d520306c5fe5514e2c2bcc3166c76e55049e15cce7bb"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::draw_plugin_cta (cyclomatic 20): AgentView::draw_plugin_cta has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/cta.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b590a67f8271f25b713f2cdb1bb62d9345b6cf0fbe0654ba7f4670ab778e36"}},{"ruleId":"D1","level":"warning","message":{"text":"TableGeometry::detect (cyclomatic 20): TableGeometry::detect has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/table_geometry.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58107f141e64b655cf1ed55a2acd4e0f2cd9c713eec37b59835d4550eb71d59"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::run_pending_suspends (cyclomatic 20): xai_grok_pager::app::event_loop::run_pending_suspends has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"150ed6936f69fed06d043d34c2b217c0657df7bb23a45c13bd1845823c7bc4a1"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::headless::handle_headless_acp_message (cyclomatic 20): xai_grok_pager::headless::handle_headless_acp_message has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"06573ed945b82f1477169ae107b4bb28f28978e98fdd4bf0e0f2df7392888d43"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::wrap_edit_header (cyclomatic 20): xai_grok_pager::scrollback::blocks::tool::edit::wrap_edit_header has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1fa739a81f9f061758d6cc7545b67c9826c6f0ff87d2794e84e1d0eee726ca"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::render_tab_bar (cyclomatic 20): xai_grok_pager::views::modal_window::render_tab_bar has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e708f3595f3a3bb9100097cbead277d1dfddf5e3277581b39eca3d9cf1864372"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::session_picker::build_entry_map (cyclomatic 20): xai_grok_pager::views::session_picker::build_entry_map has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/session_picker.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"4054b198404d9c555a50f6d41f443d2dff4e1006553f4fddde0197b0f863656b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_editing_value (cyclomatic 20): xai_grok_pager::views::settings_modal::render::render_editing_value has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70ea568091c84717e39a85abe1d340c48f4d192ff56af03ef7a7a0d4aa34229"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::render::bidi::logical_slice_for_visual_cols (cyclomatic 20): xai_grok_pager_render::render::bidi::logical_slice_for_visual_cols has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b20dad04156ce8540e01089820a4b64a4257ba0e9b5a0bf18f58eca16a3d572"}},{"ruleId":"D1","level":"warning","message":{"text":"PermissionScript::analyze (cyclomatic 20): PermissionScript::analyze has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_permission_script.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e9464317dfe7455eea33f6b2f68522045093f5ec25218e63917b8f988dbd3c"}},{"ruleId":"D1","level":"warning","message":{"text":"CompiledPolicy::evaluate_rules_with_base (cyclomatic 20): CompiledPolicy::evaluate_rules_with_base has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cb762474e26b22fb6ef1d502fe6a91e753aec63e1eaf50da43859e62a92798"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampler::actor::request_task::apply_retry_decision (cyclomatic 20): xai_grok_sampler::actor::request_task::apply_retry_decision has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ac880e23f7b79ce99d9e04d67750674df636e641c3993744fe23d6e930c12f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::transform_conversation_cwd (cyclomatic 20): xai_grok_sampling_types::conversation::transform_conversation_cwd has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"d245a95601240ed2e4215c3bbcd325101f980c91759f4d02796e8a405224c518"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::run_init_pass (cyclomatic 20): SessionActor::run_init_pass has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"017a17597c45a74962157847c2c44868c6abf9edff9682c7ab87d1b85d4fe5e9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::app::run_headless (cyclomatic 20): xai_grok_shell::agent::app::run_headless has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a2e28dfb5ad3357d67dcfb4b0ff679636700dbb9bfc24d84cdf28e6291476f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::bootstrap_initial_context (cyclomatic 20): xai_grok_shell::agent::subagent::bootstrap_initial_context has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c832fc56890af8aafb38132ee4801f5cd613071673de6c15ad1f6e76eb162ab"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::config::apply_sandbox (cyclomatic 20): xai_grok_shell::config::apply_sandbox has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e53c694d347629fdad284d5a78df8491955bed230d89019dbf00dea550c3cb5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::feedback::handle_feedback (cyclomatic 20): xai_grok_shell::extensions::feedback::handle_feedback has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/feedback.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ce6c2e638d7a2be52e284495330321a18571d1bab9542b3cb5159355fccf40"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::shell_token::parse_current_token (cyclomatic 20): xai_grok_shell::extensions::suggest::shell_token::parse_current_token has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/shell_token.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"846c9ed0680c20a1e780cc1c70a51692f39ca2cbfbb9e7ff3b621e68a5131428"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::storage::relocation::load_candidates (cyclomatic 20): xai_grok_shell::session::storage::relocation::load_candidates has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc5636c62238d06579cee19c3e50bd46a6888fbe782e5eddbc843ecbab57397"}},{"ruleId":"D1","level":"warning","message":{"text":"BashTool::execute (cyclomatic 20): BashTool::execute has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20ed813b3652a4eb641f8763a4f22265aaf10c1ee475006b75a2f5f1c8ab69c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::read_file::extract_file_content_lines (cyclomatic 20): xai_grok_tools::implementations::grok_build::read_file::extract_file_content_lines has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd640e039eb7abdf490d7d019ed702c0ead03f4a7cc4cd9683f5331d84222c0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::skill::resolve_skill_internal_links (cyclomatic 20): xai_grok_tools::implementations::skills::skill::resolve_skill_internal_links has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73b23abf9602d4c9297308b0bdbbcca8a4b795daf7f2914ffbae71902523a54"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::registry::types::explain_requirement_failure (cyclomatic 20): xai_grok_tools::registry::types::explain_requirement_failure has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d47736605f55d881e789495fd3e7aab18e1c6dd8058ff5b3a3fd56a084e54b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_voice::pipeline::start_capture_session (cyclomatic 20): xai_grok_voice::pipeline::start_capture_session has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/pipeline.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22fc9278ce881424615d8766c3b4cfedae81cee6f3164e4db958038139ae6bd"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::file_system::file_tree::list_contents (cyclomatic 20): xai_grok_workspace::file_system::file_tree::list_contents has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/file_tree.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"092d76bc7d795ef5990cf0cd155860c32ed7fdeb0f4763b51116b066d4eefeca"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::hub_permission::reply_to_outcome (cyclomatic 20): xai_grok_workspace::permission::hub_permission::reply_to_outcome has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/hub_permission.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a410b12f884c8a185b7422ea0a77ab0aff6933184be3604d5830d51004581e5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_ratatui_inline::segment::split_into_line_segments (cyclomatic 20): xai_ratatui_inline::segment::split_into_line_segments has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/segment.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3be0151fc35a8ad8c584e2a1bc8e88238412a3df8f8b436f0859b3d5d77c73e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_reader_actor (cyclomatic 20): xai_computer_hub_sdk::connection::run_reader_actor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebce7c38c63bbf247fb77581361e5096d933d88982884522ca014a480deadda6"}},{"ruleId":"D1","level":"warning","message":{"text":"ptyctl_cli::main (cyclomatic 19): ptyctl_cli::main has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl-cli/src/main.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f049609b8b31530f65640f06cbd47e82d307fed850a893d96c545516f8b05d"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexManager::process_command_coalesced (cyclomatic 19): IndexManager::process_command_coalesced has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"98edc2a98536fdf24ca1abca3601a527f9d8c3f71847a18e8ac3fd04c7992ec5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::git::safety::working_tree::find_working_tree_content (cyclomatic 19): xai_fast_worktree::git::safety::working_tree::find_working_tree_content has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/working_tree.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c6fba66f1b6b3e67daa167c39f95f6221c68f22c31d84b12c8d71ee1a28043"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginRegistry::from_discovered (cyclomatic 19): PluginRegistry::from_discovered has cyclomatic complexity 19 (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/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb18abce22dbe3ecd58692fcff3dcbf002c74508292af76f5afbc0b8d3655ec"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryConfig::resolve_settings (cyclomatic 19): MemoryConfig::resolve_settings has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config-types/src/memory.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e1b64ef56b008b53bda671acf70da12d6fb079cae86ab8b101f393de14879e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownParser::format_styled_content_lines (cyclomatic 19): MarkdownParser::format_styled_content_lines 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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"3973948fbb99e7bb2dbaacb3e54a90fd4519f4fcaeefc8c20add4a2eca4eddc1"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchDreamStore::persist_plan_as (cyclomatic 19): BatchDreamStore::persist_plan_as has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e2c2e21caae0fd23f43d7072083eb8a0e765777114d11871c9d6f033e4c22d"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchDreamStore::apply_planned (cyclomatic 19): BatchDreamStore::apply_planned 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/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9850c706c758b91fae003afbc9e0df132047146810b68c16f3efb409f6ef52d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::extensions_modal_set_collapsed (cyclomatic 19): AgentView::extensions_modal_set_collapsed 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/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e9b854ca2f071d2aba5860ebe8244d7b52785eb85ec859708a63a6370926fe"}},{"ruleId":"D1","level":"warning","message":{"text":"AppView::dispatch_scroll (cyclomatic 19): AppView::dispatch_scroll 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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f15df50268c06e800415ce5f6e4d59082dff9722443a36c956184cbfee6b0a7"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderBlock::accent_color (cyclomatic 19): RenderBlock::accent_color has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/block.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd4fc381b324f3a06ed51d889f4f76bb2259726c7dc79770fb5555ddba4410c"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackPane::render_with_sticky_headers (cyclomatic 19): ScrollbackPane::render_with_sticky_headers has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6108b8dfb9afc76438ca8e1b8333189dd7852eedd623bed13523d348de2ff3"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedbackModalState::render_drafts (cyclomatic 19): FeedbackModalState::render_drafts 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/codegen/xai-grok-pager/src/views/feedback_modal/render.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d74956950b4cc8bd9f0c690f7fb365bd1c422401c1407916ca7cfec92b15b6"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptWidget::handle_file_search_key (cyclomatic 19): PromptWidget::handle_file_search_key has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"9634982dd102c48a5aae86c3d355888e334aa45c69c88458efc07f830229c871"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptWidget::render_info_line (cyclomatic 19): PromptWidget::render_info_line has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":3521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8801dc5aacd8d87918ceda5e0bd773eae874eea6816ac1e011f269490811666a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::extract_session_context (cyclomatic 19): xai_grok_pager::app::dispatch::notes::extract_session_context 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/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"22039539d15c72317e90bb678dd306e94e35f05b79bbfd68debd1af6955bb01c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::turn::dispatch_cancel_turn (cyclomatic 19): xai_grok_pager::app::dispatch::turn::dispatch_cancel_turn 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/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e12f05ffd40e7e9ade149d4f5f3aca46c7507081c51ae9453fc3e98182df24"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::turn::reconcile_overdue_turn_ends (cyclomatic 19): xai_grok_pager::app::dispatch::turn::reconcile_overdue_turn_ends 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/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"e258f40937779d6da11987442a7b798fcbf721f9f33f1e1d072785e6a9702985"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::memory_search::parse_memory_results (cyclomatic 19): xai_grok_pager::scrollback::blocks::tool::memory_search::parse_memory_results 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a8f5c043e2f732dc1175f1ccf53bb010a8927d68a76084e26aa22ab73c0c76"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::semantic_selection_at (cyclomatic 19): xai_grok_pager::scrollback::text_selection::semantic_selection_at 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/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4a2b6e44be1c7bff15817678ce640930506745a79164a0acc146dbf18dbc08"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::completion_dropdown::render_dropdown (cyclomatic 19): xai_grok_pager::views::completion_dropdown::render_dropdown 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/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6785ee38877754a80e7cdb8206f1a9628a6c8da642e995a4b05908c49c49ed3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::chrome::render_header (cyclomatic 19): xai_grok_pager::views::dashboard::chrome::render_header has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/chrome.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f5aefe4e0272b0679f8c3b9e5bde01e2341ac60029c400064ff3b9580f6d48"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::status_line::sanitize::extract_osc8_links (cyclomatic 19): xai_grok_pager::views::status_line::sanitize::extract_osc8_links 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/codegen/xai-grok-pager/src/views/status_line/sanitize.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef310ecefb36cdf8ed8d0f50be102d967c253073e85a38e5fe98ef5fb9de1d3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::welcome::render_session_picker_body (cyclomatic 19): xai_grok_pager::views::welcome::render_session_picker_body has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95b2f30ebb07cc468e941be6e2cc5545d0f8c42d2cf7ded1d4440d84e9fcbc7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_diff::stitch_hunk_pair (cyclomatic 19): xai_grok_pager_diff::stitch_hunk_pair 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/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"faede96764126194627e731aa854173446ae60bf5620e2c3bff223837b4d07d4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::policy::pattern_matches (cyclomatic 19): xai_grok_permission_rules::policy::pattern_matches has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"893d5550585bdb0e1bad922016e56100b5448392c1336d913819378d8c4feb7d"}},{"ruleId":"D1","level":"warning","message":{"text":"MarketplaceRelativePath::parse (cyclomatic 19): MarketplaceRelativePath::parse has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/types.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"69deee99b4fbfee3808b8eee77a116b6302ac5c889ea6d9e8f779a01d73d65ad"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sandbox::deny::glob::validate_deny_glob (cyclomatic 19): xai_grok_sandbox::deny::glob::validate_deny_glob 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/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f456ef1cee5a1f6d6cb40967e492d9402a03c54f97c165f8c17f493366c44b1"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::forward_raw_replay_line (cyclomatic 19): MvpAgent::forward_raw_replay_line 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/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef1411217ed5bbed4d3d073c79b26902c0af6600d74c94b20de463a9c34f5c6"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::resolve_mcp_file (cyclomatic 19): SessionActor::resolve_mcp_file has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"00262b3bafa2416b4644ef4dad633cef3fe0bdf0475b5f04081a8d72760f3716"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::maybe_refresh_model_metadata_on_resume (cyclomatic 19): SessionActor::maybe_refresh_model_metadata_on_resume has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_setup.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b216025012ce14356b77ce848bbe5377284fee0b13eca7c145d7c6c8f32359"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::first_turn_memory_reminder (cyclomatic 19): SessionActor::first_turn_memory_reminder has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6bb016e6496e18f58e47f5abd08c1aca788935d2e1f1b909dd3daf1eb7b2df"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::client::register (cyclomatic 19): xai_grok_shell::leader::client::register has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/client.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73e02434109981793a414d51dcd84de8c975d3bfb14446b71488951c38a8174"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::run_loop::turn_texts_for_feedback (cyclomatic 19): xai_grok_shell::session::acp_session_impl::run_loop::turn_texts_for_feedback 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/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bbe6e76573150724ee35890221e884d45a6fd738443f2789cf003903c05f7b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::batch_dream::run_batch (cyclomatic 19): xai_grok_shell::session::batch_dream::run_batch 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/codegen/xai-grok-shell/src/session/batch_dream.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b2a6e1dcb3e7e432182e62dabab9c6d25aa8a43e02941879cc4e1bd497dd80"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::goal_classifier::run_verification_stage (cyclomatic 19): xai_grok_shell::session::goal_classifier::run_verification_stage has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2d468b0307a9b3133d062b03540f572a176e95e2d8bfb7fbf5688ab05aca24"}},{"ruleId":"D1","level":"warning","message":{"text":"HashlineEditTool::run (cyclomatic 19): HashlineEditTool::run has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c105f259fd1c550459dfa42cb602bb092bcb717c668b9cf4f93e75a59f239908"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskCompletionReminder::collect_reminders (cyclomatic 19): TaskCompletionReminder::collect_reminders 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/codegen/xai-grok-tools/src/reminders/task_completion.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bce13c2c2c79456e82473183d7cf6af65709826c079b03c7f434d4fb068a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::grep_progress_stream (cyclomatic 19): xai_grok_tools::implementations::grok_build::grep::grep_progress_stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9599a06731ac9315434b989c7318fbcda02a206fea0d432abd7b7563bcea0dc"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_update::cleanup_downloads::cleanup_old_downloads_with (cyclomatic 19): xai_grok_update::cleanup_downloads::cleanup_old_downloads_with 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/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c694cfc8054e4707c0a36950f3c05c53c792d09c4138b137d15bbe1489dd5bc3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::mcp::drive_server_starts (cyclomatic 19): xai_grok_workspace::mcp::drive_server_starts 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/codegen/xai-grok-workspace/src/mcp.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cedb8d838c82ed06b4f7fe0cdc69331cc4e2310a0497f124001819204599eac"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::session::git::status_ungated (cyclomatic 19): xai_grok_workspace::session::git::status_ungated 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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ecdcb57e6f9f180e17f444f85d3e9289259c6ce45724733593686c489ab38e"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::recompute_hunks (cyclomatic 19): HunkTrackerActor::recompute_hunks 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/codegen/xai-hunk-tracker/src/actor/hunks.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fc26eba60abfc76227e624aaa49f6c080e2a48561b468c46d57387c7a3d05a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_computer_hub_sdk::server::execute_call (cyclomatic 19): xai_computer_hub_sdk::server::execute_call has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"225158164ce67108af9ea1dcdecb3799be3f86e12440cfbb34809714d23366b9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_codebase_graph::index_manager::intern_symbols_directly (cyclomatic 18): xai_codebase_graph::index_manager::intern_symbols_directly 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/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"78490ce4ee6ecdc3d6951cd06cc548bb5c8ab29e7e02d86e63a63793f7453965"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::auto_gc::maybe_auto_gc (cyclomatic 18): xai_fast_worktree::auto_gc::maybe_auto_gc has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/auto_gc.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dea283be6b6b61a07acd4488e2b9de92a17008440c6e40c14fdec34223a2482"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_hooks::runner::http::is_blocked_ip (cyclomatic 18): xai_grok_hooks::runner::http::is_blocked_ip 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/codegen/xai-grok-hooks/src/runner/http.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8357604f642ec36f83398f564bf0290276e96395f8646bb4714d2ffeb91f329"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_image::jpeg_reaches_eoi (cyclomatic 18): xai_grok_image::jpeg_reaches_eoi has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-image/src/lib.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9134491b08cd2288c93d5fa7997354bb6b763eb1e43698d06c7dde3a8965b93"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::render_grouped (cyclomatic 18): xai_grok_markdown::mermaid::render_grouped has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_markdown::mermaid::flip_glyph_v (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"253f31d1c28544e2538495d25b29aef063d601dea7da07ad64b8099478bc308a"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackState::measure_window_exact (cyclomatic 18): ScrollbackState::measure_window_exact 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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb77776683186e30e3bfdd440517293528f5b6d3084ca2246ef43fb0d37b5cc"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_bracketed_paste (cyclomatic 18): DashboardState::handle_bracketed_paste 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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b8e6344e8c1b7f4055a7f72bff11c725ff2831ca9a730ee963a97e838a131f"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_shortcuts_modal_input (cyclomatic 18): DashboardState::handle_shortcuts_modal_input has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3933}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e02686ba84318627ce05d53d5da426e386e84b7452c74dc010cb40556e3a770"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedbackModalState::handle_mouse (cyclomatic 18): FeedbackModalState::handle_mouse 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/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c7efec8a3a0f46c7fcf0038ddf460130ffef116f9861873f0eecab3c89b800"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPaneState::handle_nav_key (cyclomatic 18): ListPaneState::handle_nav_key has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ea50b64b53f63e0e6820e49b00a6c3f7bc74dde69443881ebeaf31812d0bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::init_terminal (cyclomatic 18): xai_grok_pager::app::init_terminal 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/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2e2162070ef13a93dbec9205eef240e30b97f0488c832aba0d95ccbc928f6e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch (cyclomatic 18): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd4347b1c8d72b42fbee99c20ee96fcd605f209cd44d5fc37591c86c34cc47e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_peek_reply (cyclomatic 18): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_peek_reply 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eee464997fce82fb2e1063ee028125eb4f0f9565914a1985672e799fa96a9d4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_stop (cyclomatic 18): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_stop 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b45755691b95b53babf1b8d41ad445d2b40baf44cd4692b09e9cd2f24967ec"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::disk_usage_cmd::display::print_report (cyclomatic 18): xai_grok_pager::disk_usage_cmd::display::print_report has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/disk_usage_cmd/display.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ba27b5511da06fd32d84dc26e26d8083e6eb6ddd2c11143c113bf10b3cd74e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::soft_wrap_row_texts (cyclomatic 18): xai_grok_pager::views::permission_view::soft_wrap_row_texts 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/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"a317a0171c56ca87877170e63f13ddb2d5abfa0e858daeed3ebd82ac165f5802"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::render::image_overlay::render_image_overlay_inner (cyclomatic 18): xai_grok_pager_render::render::image_overlay::render_image_overlay_inner has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/image_overlay.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"be656a28ac73800ee96447644fe6df5d151e52139263a42b7f4bfb4128044c4b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager_render::render::tool_paths::shorten_path (cyclomatic 18): xai_grok_pager_render::render::tool_paths::shorten_path 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/codegen/xai-grok-pager-render/src/render/tool_paths.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc895f2bc85c50a4a8a2c989d50d3314b7c6fb351a82cd244d9213fdea85e898"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::rules::parse_permission_rule (cyclomatic 18): xai_grok_permission_rules::rules::parse_permission_rule 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/codegen/xai-grok-permission-rules/src/rules.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d937558e3f26ef23ae1f917384adf28a96852ac7685573d6a917822be62d9738"}},{"ruleId":"D1","level":"warning","message":{"text":"SamplingClient::new (cyclomatic 18): SamplingClient::new has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"db801db5b3bfa0d815893143712d725d63bfa49546a774978a8ab7106088d49f"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::resolve_agent_definition (cyclomatic 18): MvpAgent::resolve_agent_definition has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":3906}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e2dd664d79ba361180dec3c3f67a40093ea91ec418db7304432519ef117783"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelOverrideConfig::resolve (cyclomatic 18): ModelOverrideConfig::resolve has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc8e89bee4526669a46af4aa018b3f701a0d97f2cf1707c062b4be7f569ba00"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigReloader::run (cyclomatic 18): ConfigReloader::run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/reloader.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa19e9e7b8ea5e1b3e698aec83948fc95f2f11a8e3420bb2bb8ab6f86a4df24c"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_set_session_model (cyclomatic 18): SessionActor::handle_set_session_model 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/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"665c630dd27afc41b8d05c6b86f56250a8a7faf5cbe7484fd8a13ea132fa014a"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::handle_completion (cyclomatic 18): SessionActor::handle_completion has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79be329c3ea87875cfb83448ce06059c8d0f3d0f2f93b6352fa4a35eb269804"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::skills::discover_auto_sources (cyclomatic 18): xai_grok_shell::extensions::skills::discover_auto_sources has cyclomatic complexity 18 (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/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5063a483f0150fe8e7ecbd55ec8c44689e14d6a68c0b6cc6297b9ee9b5ebf314"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::resolve_target_from_descriptors (cyclomatic 18): xai_grok_shell::leader::resolve_target_from_descriptors 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/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70742f4bd5bc07630699d3d0fac79be47d6e4f83aa14f06aff70239f11143a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::relay::sync::relay_sync_task (cyclomatic 18): xai_grok_shell::relay::sync::relay_sync_task 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/codegen/xai-grok-shell/src/relay/sync.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a99de11c7a32f96fc52f28d86d153d5f12f60cebadb68333e0a161b2964185"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::mcp_dispatcher::run_dispatcher (cyclomatic 18): xai_grok_shell::session::mcp_dispatcher::run_dispatcher 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/codegen/xai-grok-shell/src/session/mcp_dispatcher.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf0070331e6da2bc32b4e2786c598396f8a2be95e513d4f4e20034aadd961f9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::storage::collect_assistant_text (cyclomatic 18): xai_grok_shell::session::storage::collect_assistant_text 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/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b5e319f17d379d09786c6d984112633f98f0b299671f97dd9a249a9e55fc60"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentCoordinator::finish_child (cyclomatic 18): SubagentCoordinator::finish_child has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a217eb7f71ca59fba78930aa9c2443429f2c1bbec0f11f056e424eb88d485c4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::rg_heading::render_rg_heading (cyclomatic 18): xai_grok_tools::implementations::grok_build::grep::rg_heading::render_rg_heading 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/codegen/xai-grok-tools/src/implementations/grok_build/grep/rg_heading.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb22b6227c4e078942cc6dc247827b31d88efb86ba490acce1904c83664af5a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::benchmark::run_phase1_for_file (cyclomatic 18): xai_grok_tools::implementations::grok_build_hashline::benchmark::run_phase1_for_file has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95014f643159299c56d92a3774332b8fa011b504d0288b0e23cdfcc4e562557"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::skill::apply_substitutions (cyclomatic 18): xai_grok_tools::implementations::skills::skill::apply_substitutions 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/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2732f3da1a0b05d597938d0ed88a1c92842b5e44ab52e2b8b8869592c81fb338"}},{"ruleId":"D1","level":"warning","message":{"text":"TextArea::greedy_wrap_segment (cyclomatic 18): TextArea::greedy_wrap_segment 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/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"93563188a95be38567e2ac255e4eea224592ed0a5a8f390e3a18047438c52fb3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer (cyclomatic 18): xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer 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/common/xai-grok-compaction/src/intra_compaction/fit.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fa4799ae331c9b8db9ea7b0477bf087813f3372fddf57e6da3cb6febc3a1f3"}},{"ruleId":"D1","level":"warning","message":{"text":"ScopeGraphIndex::read_from (cyclomatic 17): ScopeGraphIndex::read_from 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/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e699cb624b8076236262240e285103dc98ab268289267d8493673b9664989d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::git::worktree::remove_stale_worktree_registrations (cyclomatic 17): xai_fast_worktree::git::worktree::remove_stale_worktree_registrations 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/codegen/xai-fast-worktree/src/git/worktree.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b387dbd32893ce99949cfb5e6d80ed14ed0e1dcac0ce30d43c4b923e7b63e63c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::sync::apply_porcelain_v2_entries (cyclomatic 17): xai_fast_worktree::sync::apply_porcelain_v2_entries 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/codegen/xai-fast-worktree/src/sync.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78df3ebf7aab7dc25dc31f754f0447e60798395d41db4c9bc8a12d52e775ccf"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageClient::batch_upload (cyclomatic 17): StorageClient::batch_upload 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/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49d88d2c65ed926bbbec77606b1bc4a8cb7fbecb6ed69d16462b3126dd47ead"}},{"ruleId":"D1","level":"warning","message":{"text":"Renderer::draw_imps (cyclomatic 17): Renderer::draw_imps 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/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66a43c93f02e2dae6777ab3deb6b70dc00cfa8180b9da60959ac39d038b188b"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthManager::apply_refresh_outcome (cyclomatic 17): AuthManager::apply_refresh_outcome 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/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea2801f934d550dd6b698968102f2d950f2b809baae714fc7cec1b7f924d0d2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::latex::commands::render_sequence (cyclomatic 17): xai_grok_markdown::latex::commands::render_sequence has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_markdown::latex::commands::format_fraction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/commands.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf20b6ca344b32628f2db1237cc42db3ea9ef2435df8af79a74f364d3e0aed93"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_state (cyclomatic 17): xai_grok_markdown::mermaid::parse_state has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_markdown::mermaid::flip_glyph_v (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e14f67dec8e8354dcf145a0c6458ccb63dbd9694ed4948957014835bf73e969"}},{"ruleId":"D1","level":"warning","message":{"text":"McpClient::ensure_initialized (cyclomatic 17): McpClient::ensure_initialized has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":3639}}}],"partialFingerprints":{"codehealthFindingId/v1":"007669211aaee73bf31bc38c9d404c3787c8734a1b1f3cd296d2e17e5f8a0ed8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_elicitation_mouse (cyclomatic 17): AgentView::handle_elicitation_mouse 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/codegen/xai-grok-pager/src/app/agent_view/elicitation.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae27f9e41ead4addb61ab208e0cf67d2ffb9b0f36a280f79e7452b893750511"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_scrollback_drag_motion (cyclomatic 17): AgentView::handle_scrollback_drag_motion has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cce29175238e96d1f9724ec583011780306ea140a25f2f56a3d87c4906a119"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollbackState::patch_virtual_y_for_dirty (cyclomatic 17): ScrollbackState::patch_virtual_y_for_dirty 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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"c298a278f2f7edad58d515826f7ca99b52903251edb5591cd14762ef129e6110"}},{"ruleId":"D1","level":"warning","message":{"text":"ElicitationViewState::move_focus (cyclomatic 17): ElicitationViewState::move_focus 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/codegen/xai-grok-pager/src/views/elicitation_view/state.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceb1394d8fd155c189cb62dc82f0fe1ca367e6c84889b0c2dac40e524bad568"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPaneState::apply_goto_line_live (cyclomatic 17): ListPaneState::apply_goto_line_live 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/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c95a83dacc44f4142f4a49562f0368fa752e3404fcd5b96adf68fbfe4ea505"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::interactions::handle_exit_plan_mode (cyclomatic 17): xai_grok_pager::app::acp_handler::interactions::handle_exit_plan_mode has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff604684084b4db1c4cd79b51f291756408fccac048bf6a4feaccf0ceeec90b0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::agent_view::translate_local_submit (cyclomatic 17): xai_grok_pager::app::agent_view::translate_local_submit has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager::app::agent_view::resolve_action (cyclomatic 43) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"0520f7b9a2aff4657ca62c2d05e8f72b1d089ec4ba053057e877c3891e8b2408"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::consent::split_markdown_links (cyclomatic 17): xai_grok_pager::app::consent::split_markdown_links 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/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e53707f83a9c5e574e16afecfb767ececdcb17e76be649219022b8091f49ca"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_reorder (cyclomatic 17): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_reorder has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d32f2586446a29ba5a3a1eabf9ff9bc3e346e6ebc756fb61b155060b86a985"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::router::dispatch_action_result (cyclomatic 17): xai_grok_pager::app::dispatch::router::dispatch_action_result 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/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e22ddc633b47535c348d311fc56b3e42cfa412d548e4420fc4afb317bdac8e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::drain_startup_actions (cyclomatic 17): xai_grok_pager::app::dispatch::session::lifecycle::drain_startup_actions 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/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d773055877c994765e6378a6263d7dea88c8fa02591f000021387c7d6b59de"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::dispatch_pick_session_in_worktree (cyclomatic 17): xai_grok_pager::app::dispatch::session::load::dispatch_pick_session_in_worktree 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/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8384413b190475784ea49b2b4eb9a3c5088fcdedb27c40c7023da7c6aaa97925"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::mcp_cmd::run_set_enabled (cyclomatic 17): xai_grok_pager::mcp_cmd::run_set_enabled has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"6364b86cb878a5e10ebe525b3e868507772e0c2225fa665352078b1de23c129c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::reconstruct_table_selection_text_with_meta (cyclomatic 17): xai_grok_pager::scrollback::text_selection::reconstruct_table_selection_text_with_meta 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/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e56b3951c0215b98651e1c7c2eea0d980519cb1f21e8da56dfd8f54146598f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::reconstruct_full_selection_text_with_boundaries (cyclomatic 17): xai_grok_pager::scrollback::text_selection::reconstruct_full_selection_text_with_boundaries 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/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"552f79ecb47591bdb0ed1d1478a219bf2a087a18c05162cd189a30b4ef8caf13"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_dispatch (cyclomatic 17): xai_grok_pager::views::dashboard::render::render_dispatch 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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cd32360623ec83775c70489c1af2700a15177898c03b614bdcc890a60bb845"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::goal_detail::wrap_pause_message_lines (cyclomatic 17): xai_grok_pager::views::goal_detail::wrap_pause_message_lines has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager::views::goal_detail::humanize_goal_event (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"072b5f2206731e174220e9a4ca0997a4e2295aa39bd30d24d5e6ffb2b83d47c4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::handle_modal_key (cyclomatic 17): xai_grok_pager::views::modal_window::handle_modal_key has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"277db3f86b215e1fb6c6d50899f40d5d43e37cd403319cb2d2eb399c49e5d4c3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::rewind::rewind_row_at (cyclomatic 17): xai_grok_pager::views::rewind::rewind_row_at has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/rewind.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"325a4542d68863546eed36baaaee3c4b78d642695e837db95b955d86ff42c93a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::filter_entries (cyclomatic 17): xai_grok_pager::views::shortcuts_help::filter_entries 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/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"613c17f5d29ef04b90a62fa127424b15620a9af8e63d966b154457eb497ba638"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::parse_plain_command_from_node (cyclomatic 17): xai_grok_permission_rules::bash_command_splitting::parse_plain_command_from_node 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/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5808560538e09d23b98dc8aed2c42fbe9bc6d9a95d5d4696f6523f23ba4d2b2"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sandbox::deny::glob::expand_deny_globs (cyclomatic 17): xai_grok_sandbox::deny::glob::expand_deny_globs 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/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e971d7c2b28913fb05eeb4c80855b71e0fa9bf12a4a21d53770662eeb81a7de"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::add_local_workspace_mid_session (cyclomatic 17): MvpAgent::add_local_workspace_mid_session has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00b505dece26eb7234e1aad25805696336e88bad2a79f08926703444bd647fe"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::run_dream_inner (cyclomatic 17): SessionActor::run_dream_inner has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4039e25b3d8b3509215f9bb9d737efbfe18b929a5a8eca999812c2a5ad2cdc"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::server::inject_session_request_context (cyclomatic 17): xai_grok_shell::leader::server::inject_session_request_context has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c11278bfaa2c3c366f6d52a7248bc34c27904338392f2cf17a61c87f42e6076"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::workflow::request_service::spawn_request_service (cyclomatic 17): xai_grok_shell::session::workflow::request_service::spawn_request_service has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/request_service.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"33112c41e2a1e12f09a84f24cf152201f058e20315ef4f1f8f4ac63cb8f3b425"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_telemetry::external::emit::emit_record (cyclomatic 17): xai_grok_telemetry::external::emit::emit_record 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/codegen/xai-grok-telemetry/src/external/emit.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cc6eeb991f27f6f1dfe7db1631dd80db66a8cbf6ed5c6be6e390f4b9d57e79"}},{"ruleId":"D1","level":"warning","message":{"text":"AskUserQuestionTool::run (cyclomatic 17): AskUserQuestionTool::run has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cececdeb3363bb697854d60ea43901d30fdbdfff29a3e5f7c854a01d1ed6c399"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulerActor::handle_command (cyclomatic 17): SchedulerActor::handle_command has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d637496c9078991e7e78d8012e4e4ff27136e8dff7741cc9f973e0bdb1f9ed"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentCoordinator::run (cyclomatic 17): SubagentCoordinator::run has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a650b15720bc4d15f31c2978dce6a521eb808596ec5a8299fd189a084c2742c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::computer::local::shell_state::shell_commands (cyclomatic 17): xai_grok_tools::computer::local::shell_state::shell_commands 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/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4473be02b3fceafe0c1c69303eed06145d081725ea9034ec0ab23ea6a43cf42"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::edit::apply::apply_edits (cyclomatic 17): xai_grok_tools::implementations::grok_build_hashline::edit::apply::apply_edits 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/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/apply.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66b3cc9e558a7e01cab24e424342d96af4cd90d36061020f8a09b452120dfdf"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::util::command_display::peel_cd_prefix (cyclomatic 17): xai_grok_tools::util::command_display::peel_cd_prefix has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/command_display.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de681698658af06849c9fec5131f5c1047a6c9c28b077ba23b64a1c82e59fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::auto_mode::bash_command_is_routine (cyclomatic 17): xai_grok_workspace::permission::auto_mode::bash_command_is_routine has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"096c36b2e7a0c9dba939e70953fa42aa79b1c203de40402ae392601032a046a7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::auto_mode::build_classifier_messages (cyclomatic 17): xai_grok_workspace::permission::auto_mode::build_classifier_messages has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5d420d2d7f02eed6808cb61caa534e5b49bba7b6f478d70f2cfb35c207cb3a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::record_prompt_outcome (cyclomatic 17): xai_grok_workspace::permission::grants::record_prompt_outcome has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e9ac82cf45040a87577663269b4ee44062818e45f1968afd641e859c48570"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::reject_hunks_batch (cyclomatic 17): HunkTrackerActor::reject_hunks_batch has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/actions.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea64b43ff71ceed02ef33b208878c909270f88500fe69c1b016fe4eecb507a68"}},{"ruleId":"D1","level":"warning","message":{"text":"TextArea::render_lines (cyclomatic 17): TextArea::render_lines 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/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":3225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1b7900642a981a5f8040c0bcac0628a628e6b6f26b94b42933653ff8e6455e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_reader_phase (cyclomatic 17): xai_computer_hub_sdk::connection::run_reader_phase has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d4db34aaaaf46181c48a63932ad64f8ef16ee2a47f88925a2bb67e55fc5c27"}},{"ruleId":"D1","level":"warning","message":{"text":"PtySession::start (cyclomatic 16): PtySession::start 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/codegen/ptyctl/src/session.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f54ba7f631864565f61dade3477495cd541f142602fea0562469a03f433c7f3"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_fast_worktree::copy::standalone::rewrite_origin_fetch_in_config (cyclomatic 16): xai_fast_worktree::copy::standalone::rewrite_origin_fetch_in_config 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/codegen/xai-fast-worktree/src/copy/standalone.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1cd0e0a900ad3c45f56dad6a01ea17ff3339f56d040d70b1f8a0351b9c030b"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageClient::batch_upload_json (cyclomatic 16): StorageClient::batch_upload_json has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55de80394e3e4abf146fe070f778ed00b5bbd19b59f2ef7e36a42b7b393530b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_login::oidc::refresh::oidc_token_exchange (cyclomatic 16): xai_grok_login::oidc::refresh::oidc_token_exchange 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/codegen/xai-grok-login/src/oidc/refresh.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd7341b31262dada6362381ffcfe036466034c396bd8388b5f03099ebb35b3d"}},{"ruleId":"D1","level":"warning","message":{"text":"MathBox::hcat_rows (cyclomatic 16): MathBox::hcat_rows 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/codegen/xai-grok-markdown/src/latex/math_box.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f10c5d071c7ca238cb3bd1d1452f98ba299537ebd81057614899230516e5bf"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::latex::environments::render_environment (cyclomatic 16): xai_grok_markdown::latex::environments::render_environment 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/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b53afffe539bdd05543d374a65ee657dc4efdedc9876657abafd7473956837"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_graph (cyclomatic 16): xai_grok_markdown::mermaid::parse_graph has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_markdown::mermaid::flip_glyph_v (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e176a8c866e37230f5b210e6bdf00f7103ccba6a005299b85718afc8f64a03"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_markdown::mermaid::wrap_label (cyclomatic 16): xai_grok_markdown::mermaid::wrap_label has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_markdown::mermaid::flip_glyph_v (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"537079198eb4af88eda110c09aa2ff543a8eb82e2d500b290bf74006c7d2deb6"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_mcp::servers::start_mcp_server (cyclomatic 16): xai_grok_mcp::servers::start_mcp_server 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/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4830}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc6e87b919fc2a460bf6a01f250a232bab84e7fe855b3c4d276819d5840db0a"}},{"ruleId":"D1","level":"warning","message":{"text":"V2ConsolidationStore::prepare_changes (cyclomatic 16): V2ConsolidationStore::prepare_changes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec190b955e5b45102cbe8c4c706abaf2afc4318e0c8a245b87cbe4d638ee7280"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::handle_minimal_btw_input (cyclomatic 16): AgentView::handle_minimal_btw_input 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/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23e4fcc986b7833f8554c59bf7b8955ce793d62906e9440d71e40a416eee0cb"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView::apply_reload_outcome (cyclomatic 16): AgentView::apply_reload_outcome 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/codegen/xai-grok-pager/src/app/agent_view/session.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0da9e9b9dfe21a4254848cca6a00728c4abfd0af09158cc8c737d17ea6258cc"}},{"ruleId":"D1","level":"warning","message":{"text":"XtversionFilter::advance (cyclomatic 16): XtversionFilter::advance has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/xt_filter.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"decb5ae610e0468c3cc46d1a09d963ef0f1684979407b23ecd56a00fe1e2c6fb"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardState::handle_paste_key_deferred (cyclomatic 16): DashboardState::handle_paste_key_deferred 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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1fef6695105c2abb1d2c5eb1c86ceff9e4a1af13225227e0702087544dc6a1"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedbackModalState::render (cyclomatic 16): FeedbackModalState::render has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/render.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc7715f948c71bff0b0aeb0588c49fc1ccc55e341e1ed9c35c5b11032c46a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsViewState::normalize (cyclomatic 16): WorkflowsViewState::normalize 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/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8dfc1fc71d8fd16a7f244f6bb2d70c3ab730a62a7a258fa522bd5767c3143b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::interactions::handle_ask_user_question (cyclomatic 16): xai_grok_pager::app::acp_handler::interactions::handle_ask_user_question has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e506258db4441ae45a015d0705e52a8307edb5bbba6e3bb795145c39e4998be"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::apply_session_event (cyclomatic 16): xai_grok_pager::app::acp_handler::session_notification::apply_session_event 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/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bc2cca3d6e2355749bc0c9caa4fa2319633ef67288650eca9914feecf46b5c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::detect_plan_mode_change_replayed (cyclomatic 16): xai_grok_pager::app::acp_handler::session_notification::detect_plan_mode_change_replayed 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/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"c282dc3fb57bc66529c5dbe3434226a8bc38f0bf2de8bf0f8fc30b9625106543"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_open_dashboard (cyclomatic 16): xai_grok_pager::app::dispatch::dashboard::dispatch_open_dashboard 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95311f1126c7f584d67e42e05345748a964dbd2f144bf950425c2345b88c710"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::dispatch_open_feedback_modal (cyclomatic 16): xai_grok_pager::app::dispatch::notes::dispatch_open_feedback_modal 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/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"180fe32d0183d11d590975719b009e8a812c89cd8c87cfb70c44d307ae93ff58"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::release_queued_prompt_from (cyclomatic 16): xai_grok_pager::app::dispatch::queue::release_queued_prompt_from 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/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de44ec17dab120f1819169ebe72b2ecbac822741fa0e547d0cbcf126205eb1f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::dispatch_run_edited_queued_command (cyclomatic 16): xai_grok_pager::app::dispatch::queue::dispatch_run_edited_queued_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf214d34dc2f0b93692cc6c73e727ea8bc7657b63085080df2644d5d1a49b364"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::handle_session_loaded (cyclomatic 16): xai_grok_pager::app::dispatch::session::load::handle_session_loaded 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/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba91f83a7a53f285d1133b8c807f1d99ef4886c0dd0c31ac9c77068a913ed3d7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::session_startup::session_startup_intent_from_flags (cyclomatic 16): xai_grok_pager::app::session_startup::session_startup_intent_from_flags 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/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"645b7264e348a3d17c1523469818ef490310dedf6fb9d4dc85f7da59f0ca0f8d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::session_startup::materialize_startup_for_cwd (cyclomatic 16): xai_grok_pager::app::session_startup::materialize_startup_for_cwd 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/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"158d21b4ad459905f54eaad82605410da243b4e8c0c26a3ede19270a7f175f4a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::app::status_line::command::run_command (cyclomatic 16): xai_grok_pager::app::status_line::command::run_command has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/status_line/command.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc9e97312f157db48a5eb987711f25475a6db932848762eed331c02e9ecb82b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::scrollback::table_geometry::parse_border_row (cyclomatic 16): xai_grok_pager::scrollback::table_geometry::parse_border_row 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/codegen/xai-grok-pager/src/scrollback/table_geometry.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e046b13d3bc66389d0c8aa263f072f169fd4423f9df97a2a584263340e410a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::build_agent_list (cyclomatic 16): xai_grok_pager::views::agents_modal::build_agent_list has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae114d2dc0b322cfd83ae1b407c0bb9d83c9368943f301829ff34325860c539d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_key (cyclomatic 16): xai_grok_pager::views::agents_modal::handle_agents_key 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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3914aa952ab22ab2cb92562f57368b161829aa98ea98d7824d2e774bbd8b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dock::render (cyclomatic 16): xai_grok_pager::views::dock::render has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/mod.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"29547fdc880348375ca089ff0045a324cd6030155965708ab2335a813cd2a731"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::dock::layout::normalize_no_lone_rows (cyclomatic 16): xai_grok_pager::views::dock::layout::normalize_no_lone_rows 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/codegen/xai-grok-pager/src/views/dock/layout.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"890e8287906a0f81c3362ca1cbc8a2381b8c39738615116a2a3e50a7f4f14ec9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::elicitation_view::render::field_row (cyclomatic 16): xai_grok_pager::views::elicitation_view::render::field_row 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/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"23061ea1d8ca85287d76842f298994fc14b43d63eb243d635b91628cf6823f30"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::tab_complete_path (cyclomatic 16): xai_grok_pager::views::extensions_modal::tab_complete_path has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager::views::extensions_modal::resolve_key (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"296875be774354201c47a7de03e9c3e9aa2c0dfd755e5eec0ad73e07d1ec7b5b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::classify_hook_source (cyclomatic 16): xai_grok_pager::views::extensions_modal::classify_hook_source has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager::views::extensions_modal::resolve_key (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"4559a95818b994e67339b5c0b14ddfe10345f7bddaec3bacfae978d4922bcb98"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::list_pane::render::render_corner_indicators (cyclomatic 16): xai_grok_pager::views::list_pane::render::render_corner_indicators 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/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d203f1f2e8cc69ed5e710014120e14c5050f19f33451306f187e15e56527ef2e"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::handle_modal_mouse (cyclomatic 16): xai_grok_pager::views::modal_window::handle_modal_mouse 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/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73b4f6ca575187e9f28af6ce5d59ed924f677d453d0f49930bbcc3fa6afe3e0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::persona_detail::handle_browse_key (cyclomatic 16): xai_grok_pager::views::persona_detail::handle_browse_key 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/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1ad3bb1ec5121acb18240e61f8f3ad1e7158d2c02bdf18120e3e8c5b61e81c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::slash_dropdown::render_dropdown (cyclomatic 16): xai_grok_pager::views::slash_dropdown::render_dropdown 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/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"460c5c6b461b7e518a53cf72f85fe22ae3ada2a18de3dc01ada8faa9bccc5ebf"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_pager::views::welcome::menu::render_menu (cyclomatic 16): xai_grok_pager::views::welcome::menu::render_menu 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/codegen/xai-grok-pager/src/views/welcome/menu.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44a4f091faf21ed48dfe8ee1176b3ef7c36309670fec0a622e7654157381983"}},{"ruleId":"D1","level":"warning","message":{"text":"RawAppearanceConfig::to_toml_with_comments (cyclomatic 16): RawAppearanceConfig::to_toml_with_comments has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: xai_grok_pager_render::appearance::config::lookup_named_color (cyclomatic 39) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/config.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4542cdbb53f200d9385e53bba16b6926c3d81c1a4763daec16d04bc88d7ceb0"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::git_content_filters::read_local_git_config_entries (cyclomatic 16): xai_grok_permission_rules::git_content_filters::read_local_git_config_entries 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/codegen/xai-grok-permission-rules/src/git_content_filters.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4d10b1b3e974932cf94dc9cb7fb0d4a56719dda7b8367bbb04c57a4dc7461b"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::managed_policy::apply_policy_source (cyclomatic 16): xai_grok_permission_rules::managed_policy::apply_policy_source 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/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5faec1905d70abc8b2bb404db8bc0ee8ed9d3b9e7e49478206622224e4ecba"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::managed_policy::url_match::warn_on_unmatchable_allow_url (cyclomatic 16): xai_grok_permission_rules::managed_policy::url_match::warn_on_unmatchable_allow_url has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb041d5b815aed36f72ef19bb9e51b67a68f16bcbe31542231b0c083fc45e690"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_permission_rules::resolution::resolve_claude_settings_inner (cyclomatic 16): xai_grok_permission_rules::resolution::resolve_claude_settings_inner 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/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fc489e1846eff784fbae8cd2da6af649b11939ab5ea1b89127b1c1974a1b35"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_plugin_marketplace::installer::update_from_marketplace_entry_transactional (cyclomatic 16): xai_grok_plugin_marketplace::installer::update_from_marketplace_entry_transactional 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/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd4a4cfc899ab10e40f4b56ed7c34b2489d5d62e8009e3afa054c0dd0133150"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::upgrade_legacy_reasoning (cyclomatic 16): xai_grok_sampling_types::conversation::upgrade_legacy_reasoning 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/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d935f419765272d2569f145212783e1df67f41bfe43b3d302b07a7b905555b5"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxPolicy::apply_grant_under (cyclomatic 16): SandboxPolicy::apply_grant_under 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/codegen/xai-grok-sandbox/src/command/policy/apply.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"803d21d459b15dbeb055ee739a047bd6f406d1f3b190503c94f8d1537402b9b5"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_sandbox::command::git_config::present_matches (cyclomatic 16): xai_grok_sandbox::command::git_config::present_matches has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec556389e17f7e4c30a718b144b8e08208aef4d9b0e05b00fa7bc0f2a6df84b"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::maybe_spawn_interactive_trust_prompt (cyclomatic 16): MvpAgent::maybe_spawn_interactive_trust_prompt has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e971099aa75334fea3ba7c51f830a5c803a1fa234c7d87e705f6a67d5de665"}},{"ruleId":"D1","level":"warning","message":{"text":"MvpAgent::retry_subscription_check (cyclomatic 16): MvpAgent::retry_subscription_check 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/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ce810093b41b7144aba16e4056f35ef7db4569d04ee2eab32fe8f8926ad7a4"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionActor::submit_turn_request (cyclomatic 16): SessionActor::submit_turn_request 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/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"064174840f243b6c42d3ccde723c95da88086ddafcd2123c0c238d360a49c0be"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::relay::run_relay_loop (cyclomatic 16): xai_grok_shell::agent::relay::run_relay_loop 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/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f2831b5b4c5e747b04b6b0080e8405e3764ffea819736b829d70b5087c2b9c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::prompt_turn_receipt::drain_prompt_turn_receipts (cyclomatic 16): xai_grok_shell::agent::subagent::prompt_turn_receipt::drain_prompt_turn_receipts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/prompt_turn_receipt.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe43a4a91f4f621bcf18c1555ef4aecd43446f33d2bfcbce5df4c7212e2afb7f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::marketplace::handle_add_source (cyclomatic 16): xai_grok_shell::extensions::marketplace::handle_add_source has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/marketplace.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"260556db121a8da1b7f2a226c769b2962feb61c48e3b2a18cf5bb759b67fed57"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::session_updates::try_stream_tail_page (cyclomatic 16): xai_grok_shell::extensions::session_updates::try_stream_tail_page 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/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb385542038ce021041b61283703df7fbe1fb3f1986196fef571861ba7180ca"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::file_provider::list_ranked_entries (cyclomatic 16): xai_grok_shell::extensions::suggest::file_provider::list_ranked_entries has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/file_provider.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cb075a5a3a0c9332e8338c6007e616581278af16c78deb7552ad26cf6b9fe8"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::leader::discover_leaders_in (cyclomatic 16): xai_grok_shell::leader::discover_leaders_in has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0c5d54f832a4298160134fd1e82cf317d67c952b608fe44de0f40a6197c591"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::laziness_classifier::flatten_transcript_for_classifier (cyclomatic 16): xai_grok_shell::session::acp_session_impl::laziness_classifier::flatten_transcript_for_classifier has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc123912e657c256d3d44fb5dd1ea6e90d136f437e40735ba446a741fc3e9d13"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::fs_watch::spawn (cyclomatic 16): xai_grok_shell::session::fs_watch::spawn has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ead0592ec1041337a6f7ef8c85cf904139fd2fc127577739f588d1a12095c4"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell::session::resume_status::format_reminder (cyclomatic 16): xai_grok_shell::session::resume_status::format_reminder has cyclomatic complexity 16 (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/codegen/xai-grok-shell/src/session/resume_status.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3582273d63a78caf635d6b3517b84a679bc9bd910d1284f7466dbed93d2ca6af"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_shell_terminal::pty_session::run_pty_output_loop (cyclomatic 16): xai_grok_shell_terminal::pty_session::run_pty_output_loop 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/codegen/xai-grok-shell-terminal/src/pty_session.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e793b5887232ae2884e4d8adf6b83fb61aeff73f5627b982410e25e110ce408"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoGenClient::generate_with_images (cyclomatic 16): VideoGenClient::generate_with_images 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/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a341c00b11d4494158ec4366fe58f6bc3c737e3bec1ae0e17c9492706f7b4f3d"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobTool::run (cyclomatic 16): GlobTool::run 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/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f628f95acc9bd6bbbdd20462551eeae5e40adbb997f58631578529f3c1cc1a2a"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::computer::local::shell_state::ansi_c_quoted (cyclomatic 16): xai_grok_tools::computer::local::shell_state::ansi_c_quoted has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"522c025354367eb4c041b01125526aa58b7570ba557b36d7c0ba7e22386ad95d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::read_file::indentation::read_block (cyclomatic 16): xai_grok_tools::implementations::codex::read_file::indentation::read_block 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/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a861a05d6797502f9813b1417428924a2255a43be6838b44f6bf57aa1bfa257"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::card::finalize_grep (cyclomatic 16): xai_grok_tools::implementations::grok_build::grep::card::finalize_grep has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c266e72bbbb7769e258d53f0329adf45d896bcd0ef70aab25c14bc9e51a0f47"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_tools::util::base64_images::scan_payload_end (cyclomatic 16): xai_grok_tools::util::base64_images::scan_payload_end has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/base64_images.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa8f86b7d8c72194f80ce4ea198ed1f4c06d52ec778501064363405a5b6842d"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::ps_dumps_environment (cyclomatic 16): xai_grok_workspace::permission::grants::ps_dumps_environment 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/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e9ac107d4d6da9a470e307e0c5a730535543d66d395e85ee679c29c6e66374"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::permission::hub_gate::settle (cyclomatic 16): xai_grok_workspace::permission::hub_gate::settle 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/codegen/xai-grok-workspace/src/permission/hub_gate.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3d84c6e713940e9a7d3f95c870017da654d5bef710a0d9cca52f4ac05670b7"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::session::file_state::rewind_files (cyclomatic 16): xai_grok_workspace::session::file_state::rewind_files 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/codegen/xai-grok-workspace/src/session/file_state.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa7c1ab5d5a1cdb2e40026085795ef8220d7c697d149f11d5b998d297c223b9"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::worktree::create_worktree_streaming_in (cyclomatic 16): xai_grok_workspace::worktree::create_worktree_streaming_in 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/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8209626f17152026ac0e59614b3e86a513bb1cc43612efd9080d136b3b5d28"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_workspace::worktree::create_worktree_from_worktree_streaming (cyclomatic 16): xai_grok_workspace::worktree::create_worktree_from_worktree_streaming 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/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96c0f9ab700b58f63932917ea50a67018d6ae039b56c20e762221762cca06b0"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::reject_hunk (cyclomatic 16): HunkTrackerActor::reject_hunk 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/codegen/xai-hunk-tracker/src/actor/actions.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4b61569ac7dfbad6a63ccbb44c6c3e8a1269e41bebee4799947818f2424e78"}},{"ruleId":"D1","level":"warning","message":{"text":"HunkTrackerActor::refresh_git_dirty_cache (cyclomatic 16): HunkTrackerActor::refresh_git_dirty_cache 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/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c5dd47bcb3d642ca9f8abc8d81d97079771b33ab16795fe8f8a2439267974f"}},{"ruleId":"D1","level":"warning","message":{"text":"HubConnection::connect (cyclomatic 16): HubConnection::connect has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"519f8e386ba0b60d49bea0bc2de6c845c0ba6b204a1b4563bb9adf838be7518f"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHarness::start_tool_discovery (cyclomatic 16): ToolHarness::start_tool_discovery 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/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8a2d63bb8d1eb8fee690c6ce5137d67397a54951d12f9ce5797318fd444890"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::draw (cognitive 1121): AgentView::draw has cognitive complexity 1121 (threshold 15). Drivers by points: if/else 470 (887 pts), boolean chains 113, loops 27 (83 pts), match/switch 16 (38 pts) (nesting depth added 495). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24f0ff738f449facd879e88604d01dcdf2a3266d9829194e202b4b058f8567b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::run (cognitive 556): xai_grok_pager::app::event_loop::run has cognitive complexity 556 (threshold 15). Drivers by points: if/else 180 (424 pts), match/switch 36 (84 pts), boolean chains 24, loops 9 (24 pts) (nesting depth added 307). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4e89aaeb51dbb2f4c4df88836edf990b806106f22628c3f55949334591c444"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_mouse (cognitive 526): AgentView::handle_mouse has cognitive complexity 526 (threshold 15). Drivers by points: if/else 168 (443 pts), boolean chains 56, match/switch 7 (24 pts), loops 1 (3 pts) (nesting depth added 294). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ce0faae26979ec107f75775ebb0a5130ca7b92c6d880547a2fddfcb87526d9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::run_loop::run_session (cognitive 519): xai_grok_shell::session::acp_session_impl::run_loop::run_session has cognitive complexity 519 (threshold 15). Drivers by points: if/else 128 (455 pts), match/switch 14 (47 pts), boolean chains 13, loops 3 (4 pts) (nesting depth added 361). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"693204b9280b09bd396336565b3403c6041bfd97dd0afc76d203e7df58f9d51f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::render_extensions_modal (cognitive 493): xai_grok_pager::views::extensions_modal::render_extensions_modal has cognitive complexity 493 (threshold 15). Drivers by points: if/else 124 (342 pts), loops 20 (82 pts), match/switch 13 (47 pts), boolean chains 22 (nesting depth added 314). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5c72443018f492bac0d4e523d5a6480902b20f7a39a4388411a02db36cfc92"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::server::run_leader_server (cognitive 422): xai_grok_shell::leader::server::run_leader_server has cognitive complexity 422 (threshold 15). Drivers by points: if/else 83 (342 pts), match/switch 9 (33 pts), loops 6 (26 pts), boolean chains 21 (nesting depth added 303). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4d7dacde8d12bc906ffcfe481a210506dd03f8c162834be52e296e19dfe549"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::app_view::handle_welcome_input (cognitive 415): xai_grok_pager::app::app_view::handle_welcome_input has cognitive complexity 415 (threshold 15). Drivers by points: if/else 122 (287 pts), boolean chains 74, match/switch 17 (45 pts), loops 3 (9 pts) (nesting depth added 199). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba056fd5ce63c063f8e9bcb2c6dd3ad72bd0b2b3460cf7a38ab369c839520259"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::effects::execute (cognitive 407): xai_grok_pager::app::effects::execute has cognitive complexity 407 (threshold 15). Drivers by points: if/else 92 (200 pts), match/switch 99 (188 pts), loops 5 (12 pts), boolean chains 7 (nesting depth added 204). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b4217c95382acdb383319272adbcb4269379b41ef2b61d3efad70cd9e8fcc3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::picker::handle_picker_input (cognitive 385): xai_grok_pager::views::picker::handle_picker_input has cognitive complexity 385 (threshold 15). Drivers by points: if/else 105 (298 pts), boolean chains 62, loops 8 (22 pts), match/switch 2 (3 pts) (nesting depth added 208). Of this number, 377 points are the body\u0027s own statements and 8 belong to 4 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"261570428578f8688287e919d217afc8f0a821f83e9c0bb724df4459385d1f39"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::task_result::dispatch_task_result (cognitive 383): xai_grok_pager::app::dispatch::task_result::dispatch_task_result has cognitive complexity 383 (threshold 15). Drivers by points: if/else 128 (298 pts), match/switch 16 (43 pts), boolean chains 37, loops 2 (5 pts) (nesting depth added 200). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d252237fe30608ca2ee42fdc5600704fcfec62c6f362adc47e8c57e3bc30f7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_input_inner (cognitive 362): AgentView::handle_input_inner has cognitive complexity 362 (threshold 15). Drivers by points: if/else 125 (252 pts), match/switch 29 (64 pts), boolean chains 41, loops 1 (5 pts) (nesting depth added 166). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bd5ecda22bc56e4022f36cc3e2b353484525f72277b965be93e9cf1e2dabe0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::router::dispatch_inner (cognitive 323): xai_grok_pager::app::dispatch::router::dispatch_inner has cognitive complexity 323 (threshold 15). Drivers by points: if/else 129 (271 pts), match/switch 14 (24 pts), boolean chains 22, loops 2 (6 pts) (nesting depth added 156). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad44cb9b9a11a4ea14acd96583ea76258bec9535dcd8105cac0f505b695c1850"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedMarkdown::render_ratatui (cognitive 304): ParsedMarkdown::render_ratatui has cognitive complexity 304 (threshold 15). Drivers by points: if/else 63 (227 pts), loops 13 (52 pts), boolean chains 22, match/switch 2 (3 pts) (nesting depth added 204). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d5d7ac156eabafb3948e5f72adb29c15ac4ae798593c5a5cc5ff0d7a7d440c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::handle_request::run_shell_child (cognitive 275): xai_grok_shell::agent::subagent::handle_request::run_shell_child has cognitive complexity 275 (threshold 15). Drivers by points: if/else 135 (197 pts), match/switch 26 (45 pts), boolean chains 26, loops 3 (7 pts) (nesting depth added 85). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7988d2b8ac7359284552407f39e7eab041458fcbee39afbf9719bc8d09136a52"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::manager::spawn_permission_manager_with_pin (cognitive 266): xai_grok_workspace::permission::manager::spawn_permission_manager_with_pin has cognitive complexity 266 (threshold 15). Drivers by points: if/else 61 (163 pts), match/switch 18 (70 pts), boolean chains 32, loops 1 (nesting depth added 154). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7897137da653a4fa2153ff50eb3ba4f6522dee1fda6c68142703909ff4b8589c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::handle_session_notification_with_origin (cognitive 250): xai_grok_pager::app::acp_handler::session_notification::handle_session_notification_with_origin has cognitive complexity 250 (threshold 15). Drivers by points: if/else 107 (203 pts), boolean chains 28, match/switch 9 (17 pts), loops 1 (2 pts) (nesting depth added 105). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f066761a7b89fdf6745e211f495942ff19ed9b33bb6e37bcb8b95be160b2fe71"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::handle_input_at_with_paste_provenance (cognitive 247): AppView::handle_input_at_with_paste_provenance has cognitive complexity 247 (threshold 15). Drivers by points: if/else 73 (176 pts), boolean chains 38, match/switch 11 (28 pts), loops 2 (5 pts) (nesting depth added 123). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2457fdac8a43546bf88ad81396eb9239d82108603dfe4f8bf62766665df02b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::execute_modal_button_action (cognitive 244): AgentView::execute_modal_button_action has cognitive complexity 244 (threshold 15). Drivers by points: if/else 82 (217 pts), match/switch 6 (17 pts), boolean chains 10 (nesting depth added 146). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8057b2521dff567d38d85e69eda1fb4b4982c511f8830eb7e55baefe94598c48"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::acp::tracker::tool_call_to_block (cognitive 225): xai_grok_pager::acp::tracker::tool_call_to_block has cognitive complexity 225 (threshold 15). Drivers by points: if/else 81 (195 pts), match/switch 5 (16 pts), boolean chains 14 (nesting depth added 125). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3bdf2883ec37f0dfafa632b8ad859af4f7df6752d8ecd89d6f0697b45220b1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::spawn::spawn_session_actor (cognitive 224): xai_grok_shell::session::acp_session_impl::spawn::spawn_session_actor has cognitive complexity 224 (threshold 15). Drivers by points: if/else 114 (150 pts), match/switch 15 (32 pts), boolean chains 26, loops 8 (16 pts) (nesting depth added 61). 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/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"39684cfbe17aa3b63f0ad940e9abfaa87d78fdac9e9f70f309130c93214ced0b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::process_conversation_turn_inner (cognitive 219): SessionActor::process_conversation_turn_inner has cognitive complexity 219 (threshold 15). Drivers by points: if/else 77 (163 pts), match/switch 13 (36 pts), boolean chains 17, loops 2 (3 pts) (nesting depth added 110). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"420020bf9183cfa7fd8bfe290861b3cccf49c51da91981194ab3ec537ba9a627"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_turn_input_inner (cognitive 216): SessionActor::handle_turn_input_inner has cognitive complexity 216 (threshold 15). Drivers by points: if/else 82 (153 pts), match/switch 19 (34 pts), loops 8 (17 pts), boolean chains 12 (nesting depth added 95). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1b3141f16bc509b37fa26a3e74df8ec509cbcaa0ec6662beb2037634a26e2c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::execute_builtin_slash_command (cognitive 207): SessionActor::execute_builtin_slash_command has cognitive complexity 207 (threshold 15). Drivers by points: if/else 60 (134 pts), match/switch 24 (60 pts), loops 3 (12 pts), boolean chains 1 (nesting depth added 119). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c8192db4b30b4db72f2c979791f2ff5ff26a46e2edab353af9c3b0793b5b09"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_prompt_key (cognitive 196): AgentView::handle_prompt_key has cognitive complexity 196 (threshold 15). Drivers by points: if/else 69 (149 pts), boolean chains 30, match/switch 8 (17 pts) (nesting depth added 89). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5adcc8253f41d92d0f18886a61eee902d619286de72b32b117ddd681d9ed466"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::render::render_scrolled_entries_with_selection_boundaries (cognitive 182): xai_grok_pager::scrollback::render::render_scrolled_entries_with_selection_boundaries has cognitive complexity 182 (threshold 15). Drivers by points: if/else 59 (142 pts), loops 8 (21 pts), boolean chains 13, match/switch 1 (6 pts) (nesting depth added 101). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"440525527328f0f3cdb16b82d0f5b6159493c9f0b0a6e4c186bf81cfb1adab8d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::handle_inner (cognitive 177): xai_grok_pager::app::acp_handler::handle_inner has cognitive complexity 177 (threshold 15). Drivers by points: if/else 41 (138 pts), boolean chains 27, loops 2 (9 pts), match/switch 2 (3 pts) (nesting depth added 105). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6b111ba7fb34e9513bdc8b9a0bcc6d2c4ece61cb512e651ac0a16efab37f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::draw (cognitive 174): PromptWidget::draw has cognitive complexity 174 (threshold 15). Drivers by points: if/else 68 (123 pts), boolean chains 23, loops 9 (23 pts), match/switch 2 (5 pts) (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b00ab0b3ffa672d65e69c3ba61f8daf80de7f3da12152826df865e1111819"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_line_viewer_mouse (cognitive 172): AgentView::handle_line_viewer_mouse has cognitive complexity 172 (threshold 15). Drivers by points: if/else 66 (156 pts), boolean chains 14, match/switch 2 (nesting depth added 90). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"afffd1df480fa8058048cb9dfe5aeb814e7291bc934c9029a01e3bc93c737e22"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::draw_inner (cognitive 170): AppView::draw_inner has cognitive complexity 170 (threshold 15). Drivers by points: if/else 64 (142 pts), boolean chains 16, match/switch 4 (12 pts) (nesting depth added 86). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":4230}}}],"partialFingerprints":{"codehealthFindingId/v1":"235dc675ac9e6814ef9107b69689632112f0030833922455c1e24a3c1b63441a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::cancel_running_task (cognitive 167): SessionActor::cancel_running_task has cognitive complexity 167 (threshold 15). Drivers by points: if/else 91 (134 pts), boolean chains 21, match/switch 6 (9 pts), loops 2 (3 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"af13fcbea2d52b6a563e8229e196feebd2b0f1cd18cbdc139c024bb9e9569a7e"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexDelimiterNormalizer::process (cognitive 160): LatexDelimiterNormalizer::process has cognitive complexity 160 (threshold 15). Drivers by points: if/else 26 (107 pts), match/switch 9 (36 pts), loops 4 (11 pts), boolean chains 6 (nesting depth added 115). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3256c5335fce0256d65ed7b927fe66f59748ac1ad103ca079c85428e075d234"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::prompt::dispatch_send_prompt_submission (cognitive 160): xai_grok_pager::app::dispatch::prompt::dispatch_send_prompt_submission has cognitive complexity 160 (threshold 15). Drivers by points: if/else 63 (121 pts), boolean chains 26, match/switch 4 (8 pts), loops 1 (5 pts) (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b264a9c562b1bef23ba30febe2f7360c80890a4a59fd0e52c29d1cfa0b8f7b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::persona_detail::render_persona_detail (cognitive 156): xai_grok_pager::views::persona_detail::render_persona_detail has cognitive complexity 156 (threshold 15). Drivers by points: if/else 53 (129 pts), loops 7 (22 pts), boolean chains 5 (nesting depth added 91). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"87272c32b4365e86f34101ed77bbeaf4d4409cb2528761ea7235d7ad79446736"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::run_compact_inner (cognitive 153): SessionActor::run_compact_inner has cognitive complexity 153 (threshold 15). Drivers by points: if/else 75 (101 pts), match/switch 19 (38 pts), boolean chains 13, loops 1 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd3e14d0726be356e2b57124b4ed553762df8e616210e75466e187b1a4aa9a2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::render_personas_tab (cognitive 150): xai_grok_pager::views::agents_modal::render_personas_tab has cognitive complexity 150 (threshold 15). Drivers by points: if/else 47 (119 pts), loops 8 (24 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 89). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a4ee714675ae09f5094a70682562bb473ac37017f66506c8db7823cf48f74c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionPersistence::run (cognitive 147): SessionPersistence::run has cognitive complexity 147 (threshold 15). Drivers by points: if/else 40 (117 pts), match/switch 9 (28 pts), boolean chains 1, loops 1 (nesting depth added 96). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"06aead2e665edc3fef840d59f2ee6eeb1414380e01a1c19c9e6055cdc0ee12e7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::search_content::collect_all_indexable_content_single_pass (cognitive 144): xai_grok_shell::session::storage::search_content::collect_all_indexable_content_single_pass has cognitive complexity 144 (threshold 15). Drivers by points: if/else 26 (91 pts), loops 6 (34 pts), boolean chains 10, match/switch 4 (9 pts) (nesting depth added 98). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/search_content.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98c8f343619a0f74d3ad3d723d9600ec4f4badeeca7251c31b16444fbe5e6f0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agent::build_hints (cognitive 140): xai_grok_pager::views::agent::build_hints has cognitive complexity 140 (threshold 15). Drivers by points: if/else 62 (112 pts), boolean chains 23, match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"80dbdc5f1a068a45e35dee22ae912739e0738e21651d9682487bd3ed40be3f26"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryRenderer::render (cognitive 137): EntryRenderer::render has cognitive complexity 137 (threshold 15). Drivers by points: if/else 52 (91 pts), loops 12 (32 pts), boolean chains 13, match/switch 1 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc222915a5516a0128ead01cfa0071defb87aa908d49253a27dfffcdaac46108"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentBuilder::build (cognitive 132): AgentBuilder::build has cognitive complexity 132 (threshold 15). Drivers by points: if/else 75 (101 pts), boolean chains 23, loops 4 (8 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/builder.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"71623af7bbcc645c3e109c37179c04f1a140e4726607bd0c12550ff19c199d00"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::stream::messages::stream_messages (cognitive 132): xai_grok_sampler::stream::messages::stream_messages has cognitive complexity 132 (threshold 15). Drivers by points: if/else 34 (108 pts), match/switch 7 (20 pts), boolean chains 3, loops 1 (nesting depth added 87). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/messages.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1476e24214ba34ae59a2961787ff655b483b69e0ab48b5b886366e70fe7619a2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::layout_sequence (cognitive 128): xai_grok_markdown::mermaid::layout_sequence has cognitive complexity 128 (threshold 15). Drivers by points: if/else 39 (93 pts), loops 12 (18 pts), match/switch 6 (15 pts), boolean chains 2 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3639}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab82e36c04bc847a371e417f3d77320ab357ea59132c8da325c939c23f07c92"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_palette_or_arg_input_with_registry (cognitive 126): AgentView::handle_palette_or_arg_input_with_registry has cognitive complexity 126 (threshold 15). Drivers by points: if/else 33 (90 pts), match/switch 10 (24 pts), boolean chains 12 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"153ee1fcfa0b4a182b0e0fd4eb59dd5727af1fdbba93531d535116db65f680cc"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::draw_active_modal (cognitive 125): AgentView::draw_active_modal has cognitive complexity 125 (threshold 15). Drivers by points: if/else 45 (108 pts), boolean chains 10, loops 1 (4 pts), match/switch 1 (3 pts) (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"92000547f4f2ec9d034aa195f1b7cedbeac817d1c1b516d30b52677e10f8a913"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::file_search::line_viewer::render_line_viewer (cognitive 124): xai_grok_pager::views::file_search::line_viewer::render_line_viewer has cognitive complexity 124 (threshold 15). Drivers by points: if/else 60 (97 pts), loops 7 (24 pts), boolean chains 3 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7dd4096f21fc468fbed4d8156b3a1f3d0dfca59b8f2a54bdb7d7777ca46f98"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_peek_key (cognitive 122): DashboardState::handle_peek_key has cognitive complexity 122 (threshold 15). Drivers by points: if/else 43 (85 pts), boolean chains 27, match/switch 6 (10 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2522}}}],"partialFingerprints":{"codehealthFindingId/v1":"656b08b4c2acd93110ce602d8a7b9460323b47ffd79d2d2192014959b345cc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::prompt::handle_prompt_response (cognitive 120): xai_grok_pager::app::dispatch::prompt::handle_prompt_response has cognitive complexity 120 (threshold 15). Drivers by points: if/else 36 (85 pts), boolean chains 21, match/switch 5 (11 pts), loops 1 (3 pts) (nesting depth added 57). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"430d1c025b4ec4f36d7d24cf9845345b72f29b17abc4179ebdbc3f19dc2d3a64"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::handle_mouse (cognitive 119): TextArea::handle_mouse has cognitive complexity 119 (threshold 15). Drivers by points: if/else 49 (103 pts), boolean chains 8, match/switch 4 (8 pts) (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bbe13acc5ab2c1ad23a7b2ef2e2f4746926e21e393cec60a3b5ce62602cd3c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::on_start (cognitive 118): MarkdownParser::on_start has cognitive complexity 118 (threshold 15). Drivers by points: if/else 41 (94 pts), loops 4 (11 pts), boolean chains 7, match/switch 4 (6 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4137b7794c2c0f30cf34ff0c8d928549f15c303aaaf7d68431d9c9aa530d1b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_footer (cognitive 118): xai_grok_pager::views::dashboard::render::render_footer has cognitive complexity 118 (threshold 15). Drivers by points: if/else 69 (108 pts), boolean chains 10 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"74154c83a9a681c0deb1f71bf97eb5a1e09b0c613f558ddcbb65e1c800b71713"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_mouse (cognitive 117): DashboardState::handle_mouse has cognitive complexity 117 (threshold 15). Drivers by points: if/else 44 (94 pts), boolean chains 21, match/switch 1 (2 pts) (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3365}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a1071cbb8286fb682d21bbe1ebf0be167d403ef1ca43281b5932372af7d63"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_key (cognitive 113): DashboardState::handle_key has cognitive complexity 113 (threshold 15). Drivers by points: if/else 50 (77 pts), boolean chains 25, match/switch 6 (11 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed26308051e9bc7c497e839b2d1176a343d3732ad1be687ece1da7cbb68e5acb"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::execute_tool_calls_batch (cognitive 113): SessionActor::execute_tool_calls_batch has cognitive complexity 113 (threshold 15). Drivers by points: if/else 40 (70 pts), match/switch 11 (24 pts), loops 9 (15 pts), boolean chains 4 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc5be20773fc9c413db52dcd32b0bf232166be21f293389594123aa0ea57bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_bin::run_agent_command (cognitive 112): xai_grok_pager_bin::run_agent_command has cognitive complexity 112 (threshold 15). Drivers by points: if/else 27 (53 pts), match/switch 13 (42 pts), loops 3 (9 pts), boolean chains 8 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"69192fca92b587d805693b60ee11d4c3d75a77898946c337b70afbc0487c1eba"}},{"ruleId":"D2","level":"warning","message":{"text":"AcpUpdateTracker::handle_tool_call_update (cognitive 111): AcpUpdateTracker::handle_tool_call_update has cognitive complexity 111 (threshold 15). Drivers by points: if/else 35 (102 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82f6c877744cb3c772a5ceda187a1d52475a4f74fa532890903cbe5a81c1eed"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_writer (cognitive 111): xai_computer_hub_sdk::connection::run_writer has cognitive complexity 111 (threshold 15). Drivers by points: match/switch 15 (44 pts), loops 9 (33 pts), if/else 9 (31 pts), boolean chains 3 (nesting depth added 75). To reduce it, split the body into named stages: move each independent step or branch into 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/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef00de477805e2fe16e4ae0cdcce20715ef33d9068c1ea25046c7279e9556420"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_question_key (cognitive 110): AgentView::handle_question_key has cognitive complexity 110 (threshold 15). Drivers by points: if/else 34 (89 pts), match/switch 5 (11 pts), boolean chains 10 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4056aab958457df01d94df96893f615ef2418a8d59a8dbdfc17fa415e5a1a284"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::goal_detail::render_goal_detail (cognitive 110): xai_grok_pager::views::goal_detail::render_goal_detail has cognitive complexity 110 (threshold 15). Drivers by points: if/else 59 (92 pts), loops 5 (10 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3962ff8f46b1a9540c0d0a2ab1c6ed2e4c9d035782c43bb67b7b4968a1810166"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::headless::run_single_turn (cognitive 105): xai_grok_pager::headless::run_single_turn has cognitive complexity 105 (threshold 15). Drivers by points: if/else 39 (71 pts), match/switch 15 (23 pts), boolean chains 9, loops 1 (2 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d62df0b7fe5cc09e23597155d811428a5c4a752f8547c132e908d70085f447"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::on_event (cognitive 104): MarkdownParser::on_event has cognitive complexity 104 (threshold 15). Drivers by points: if/else 41 (78 pts), match/switch 8 (20 pts), boolean chains 5, loops 1 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6a5e4909c78c5f84447a848561301971bdbcb0dcb4245802f7280bb92d2b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_question_mouse (cognitive 104): AgentView::handle_question_mouse has cognitive complexity 104 (threshold 15). Drivers by points: if/else 36 (93 pts), boolean chains 8, loops 1 (2 pts), match/switch 1 (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5392e05b9af42eb859c03fc58c12371faf04ab8f90dcc3a370fb23c02ddadef7"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::handle_key_event (cognitive 104): ListPaneState::handle_key_event has cognitive complexity 104 (threshold 15). Drivers by points: if/else 42 (78 pts), boolean chains 26 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3e1e01c7494a37cc7f119f8fe30875909d4d21ab6c328c743a232437decdb1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::effects::helpers::persist_setting (cognitive 99): xai_grok_pager::app::effects::helpers::persist_setting has cognitive complexity 99 (threshold 15). Drivers by points: if/else 49 (98 pts), match/switch 1 (nesting depth added 49). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe6f43b41ef8dea95d40c258a65265e7dd21b2cd777f68d426212ebcb3725d1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::panel::render_mcps (cognitive 99): xai_grok_pager_minimal::panel::render_mcps has cognitive complexity 99 (threshold 15). Drivers by points: if/else 23 (95 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 73). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"64399b3bd3c6fcd9715438aff7771b303a4a20ab14fdfab4ea4d0262bd38ff66"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::relay::run_websocket_session_with_liveness (cognitive 98): xai_grok_shell::agent::relay::run_websocket_session_with_liveness has cognitive complexity 98 (threshold 15). Drivers by points: if/else 22 (70 pts), match/switch 8 (25 pts), loops 2, boolean chains 1 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdb86178eb7b865f447fe1f5c2b6fdeb359e7b75732bbc54b97c248f7dd8756"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::session_bind_resolver (cognitive 98): WorkspaceHandle::session_bind_resolver has cognitive complexity 98 (threshold 15). Drivers by points: if/else 40 (82 pts), boolean chains 9, match/switch 5 (7 pts) (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"28db10f9df41343bca7cee9865702736177341b062c3cc5139392ec85a8ed43d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::folder_trust::collect_repo_config_kinds (cognitive 98): xai_grok_workspace::folder_trust::collect_repo_config_kinds has cognitive complexity 98 (threshold 15). Drivers by points: if/else 54 (96 pts), boolean chains 1, loops 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/folder_trust.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"802001b6d2d4617d5545c4542f3f790916861ba078cbac951f0008f4059c409a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker_row (cognitive 97): xai_grok_pager::views::picker::render_picker_row has cognitive complexity 97 (threshold 15). Drivers by points: if/else 46 (79 pts), loops 4 (11 pts), boolean chains 6, match/switch 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fd0d8976acf57b1a4af57fa37d6d2c49ec327f1fb15009e0499983c51823b5"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::prepare_tool_call (cognitive 96): SessionActor::prepare_tool_call has cognitive complexity 96 (threshold 15). Drivers by points: if/else 39 (65 pts), match/switch 14 (22 pts), boolean chains 5, loops 1 (4 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f8c71333a9ad96c131db4c2aeb7df7df7a4123417421f54572f059dde872cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_permission_key (cognitive 94): AgentView::handle_permission_key has cognitive complexity 94 (threshold 15). Drivers by points: if/else 31 (71 pts), boolean chains 16, match/switch 4 (7 pts) (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f0591326094c7bdeee113f9d2152c06907ea0a8959c6aade4eb6a75fa04fd9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_line_viewer_key (cognitive 91): AgentView::handle_line_viewer_key has cognitive complexity 91 (threshold 15). Drivers by points: if/else 43 (77 pts), boolean chains 14 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f76e8ba0621730b8ebe4661ea28c128231514f18a885919929169054f1360c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSignalsActor::run (cognitive 91): SessionSignalsActor::run has cognitive complexity 91 (threshold 15). Drivers by points: if/else 22 (66 pts), match/switch 4 (12 pts), loops 4 (11 pts), boolean chains 2 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/signals.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f17da268f75a33aa9bfe09557e9eeeba7e940f5dec1b2e59af72df29129eeec"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::format_table (cognitive 88): MarkdownParser::format_table has cognitive complexity 88 (threshold 15). Drivers by points: if/else 16 (50 pts), loops 12 (33 pts), boolean chains 5 (nesting depth added 55). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b5e9ef5c5f2a79973ddf2fd62fc494c636df244e3f2e7bf351fc2ae41b3049"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolServer::run (cognitive 88): ToolServer::run has cognitive complexity 88 (threshold 15). Drivers by points: if/else 20 (55 pts), match/switch 6 (17 pts), loops 7 (11 pts), boolean chains 5 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7d8598db8b2852ace85a7d6b4c11b56e72f33ff2576db0396388a7b1c02050"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::helpers::session_compact::generate_session_compact (cognitive 87): xai_grok_shell::session::helpers::session_compact::generate_session_compact has cognitive complexity 87 (threshold 15). Drivers by points: if/else 15 (47 pts), match/switch 14 (30 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"6029b096b345c968a664bca2b2ef38ee8dd9362a8ccd52e9ae461be19b96d139"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::tools::notification_bridge::handle_notification (cognitive 87): xai_grok_shell::tools::notification_bridge::handle_notification has cognitive complexity 87 (threshold 15). Drivers by points: if/else 40 (83 pts), boolean chains 3, match/switch 1 (nesting depth added 43). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ba8854abfc955c00e43e6743c97da4da7bc492f7c22a90c30a16e7062c8324"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedMarkdown::render_ansi (cognitive 86): ParsedMarkdown::render_ansi has cognitive complexity 86 (threshold 15). Drivers by points: if/else 26 (58 pts), boolean chains 15, loops 4 (11 pts), match/switch 1 (2 pts) (nesting depth added 40). Of this number, 78 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20bd8d6f6114256c47ab8294f54ff30034082595c83340aeacb8125eb806aed"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::prompt (cognitive 86): MvpAgent::prompt has cognitive complexity 86 (threshold 15). Drivers by points: if/else 40 (57 pts), match/switch 8 (17 pts), loops 2 (8 pts), boolean chains 4 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c64713494daf29ee9e975f69f503a4a8b83efab668628ef9531413e58bcea89"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::app::run_leader (cognitive 86): xai_grok_shell::agent::app::run_leader has cognitive complexity 86 (threshold 15). Drivers by points: if/else 30 (51 pts), match/switch 10 (23 pts), loops 6 (8 pts), boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e423965b3526cb6cbd336cadea7377bf9fb6b3712daac9c388e6f68e93a3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::turn_status::render_turn_status (cognitive 85): xai_grok_pager::views::turn_status::render_turn_status has cognitive complexity 85 (threshold 15). Drivers by points: if/else 49 (65 pts), boolean chains 14, match/switch 4 (6 pts) (nesting depth added 18). 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/codegen/xai-grok-pager/src/views/turn_status.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"af76b1cf147fa9af8e47662b04f26dd14f6b63696c993ae920cffa7f763d945b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::api::try_btrfs_remove_from_metadata_inner (cognitive 83): xai_fast_worktree::api::try_btrfs_remove_from_metadata_inner has cognitive complexity 83 (threshold 15). Drivers by points: if/else 19 (68 pts), match/switch 1 (8 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 59). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f451a04270853dff9a7ee58650864ec87a67967d8253ed07515800da7dd8371e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::peek::render_peek_panel (cognitive 81): xai_grok_pager::views::dashboard::peek::render_peek_panel has cognitive complexity 81 (threshold 15). Drivers by points: if/else 32 (69 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6c15e03c409904ecb2fc49ce24d3d5b3a8fce51817a3218d489e3cbf2d9317"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::config::resolve_model_list (cognitive 81): xai_grok_shell::agent::config::resolve_model_list has cognitive complexity 81 (threshold 15). Drivers by points: if/else 26 (60 pts), loops 8 (10 pts), boolean chains 9, match/switch 1 (2 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ada2d46e9a4ad96b1879290870ea1a1baf5a84fe6fd8802b8ed451e81a4c8c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::welcome::render_welcome_done (cognitive 80): xai_grok_pager::views::welcome::render_welcome_done has cognitive complexity 80 (threshold 15). Drivers by points: if/else 50 (64 pts), boolean chains 14, match/switch 1 (2 pts) (nesting depth added 15). 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/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"926a92cded87c81fe1f630dc48609f5020ed61488ce752d94060c5c3a0b85363"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::spawn_and_register_session (cognitive 79): MvpAgent::spawn_and_register_session has cognitive complexity 79 (threshold 15). Drivers by points: if/else 43 (51 pts), match/switch 10 (15 pts), boolean chains 9, loops 3 (4 pts) (nesting depth added 14). 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/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":4134}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b737404e016aedde65c7e08fe96d01dcfa101ed50bef25c48e3354d3784ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::connect_hub (cognitive 79): WorkspaceHandle::connect_hub has cognitive complexity 79 (threshold 15). Drivers by points: if/else 27 (55 pts), match/switch 7 (10 pts), loops 6 (8 pts), boolean chains 6 (nesting depth added 33). Of this number, 76 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3835}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de07019e44483cb34f6c6f7a33806effa766e75f2cd6f58b0abf647c079d6c7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::prompter::map_selected_outcome (cognitive 78): xai_grok_workspace::permission::prompter::map_selected_outcome has cognitive complexity 78 (threshold 15). Drivers by points: if/else 34 (64 pts), match/switch 3 (9 pts), boolean chains 5 (nesting depth added 36). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"42434c8cdfbea92898e83acd16422fb16b9c20f5b11c4099ecfc3dbc8e56640b"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::tick (cognitive 77): AppView::tick has cognitive complexity 77 (threshold 15). Drivers by points: if/else 28 (52 pts), boolean chains 15, loops 4 (7 pts), match/switch 1 (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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5199}}}],"partialFingerprints":{"codehealthFindingId/v1":"616b8dc4fcf74360c790aee5cc8471bf204b87f529c9697497e6e7b3825d316f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolOutput::to_prompt_format (cognitive 77): ToolOutput::to_prompt_format has cognitive complexity 77 (threshold 15). Drivers by points: if/else 23 (48 pts), match/switch 13 (26 pts), loops 1 (3 pts) (nesting depth added 40). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/output.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf28f5d7c0d755f6ac64bf649bbddaecc5a2a195f97e25060a6231540892781"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_workflows_overlay_input (cognitive 76): AgentView::handle_workflows_overlay_input has cognitive complexity 76 (threshold 15). Drivers by points: if/else 17 (49 pts), match/switch 6 (22 pts), boolean chains 5 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e475b505da81f1feaf1a2eba800f5a0ec80ab998c25393a839340015845ae678"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::run_v2_capture_worker (cognitive 75): SessionActor::run_v2_capture_worker has cognitive complexity 75 (threshold 15). Drivers by points: if/else 21 (53 pts), match/switch 8 (19 pts), boolean chains 2, loops 1 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/memory_capture.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ecddd15a1d422f1b846246a77bb33b14644e4dd67f86ab7696a9b5b4d8808f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::mcp::handle_list (cognitive 75): xai_grok_shell::extensions::mcp::handle_list has cognitive complexity 75 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 7 (18 pts), boolean chains 7, match/switch 3 (5 pts) (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b09e853e97b7614f20cffd12a1b1c8e0a3443d44750ba7205fb91974da316d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::workflows::render_detail (cognitive 74): xai_grok_pager::views::workflows::render_detail has cognitive complexity 74 (threshold 15). Drivers by points: if/else 50 (67 pts), loops 3, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"c982afb1b6109a3e8dd317e2ae195f08cd291d8e693bc6b2451cb0a3deef4e09"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_rewind (cognitive 74): SessionActor::handle_rewind has cognitive complexity 74 (threshold 15). Drivers by points: if/else 29 (54 pts), loops 4 (9 pts), match/switch 2 (6 pts), boolean chains 5 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a2058c39f8828669ecf761b412cf7423327a0943bd86e66b0ad0202f3ba7d3"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::ext_notification (cognitive 73): MvpAgent::ext_notification has cognitive complexity 73 (threshold 15). Drivers by points: if/else 39 (67 pts), boolean chains 6 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0e6eb50fd4098c0f4318175f7e2c79c3c08e89f955e41153ea3510fe6463a3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::drain_goal_updates_with_extra (cognitive 73): SessionActor::drain_goal_updates_with_extra has cognitive complexity 73 (threshold 15). Drivers by points: if/else 28 (59 pts), loops 3 (6 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccecfc73ea74f43a4dba3ad2ba14e758759c9e73960c5d29a43245ae55e0ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_sampling_event (cognitive 72): SessionActor::handle_sampling_event has cognitive complexity 72 (threshold 15). Drivers by points: if/else 27 (65 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74e08ca87c11b67c4c722df4679ccfdfbdcb2940908fb742aa068b46596d53a"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::prepare_layout (cognitive 71): ScrollbackState::prepare_layout has cognitive complexity 71 (threshold 15). Drivers by points: if/else 33 (55 pts), boolean chains 13, loops 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"603bcc74d38c1cb807d582dbd295f7a7297d966dd2f40dbacceb7958ab81d27e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_sampling_failure (cognitive 71): SessionActor::handle_sampling_failure has cognitive complexity 71 (threshold 15). Drivers by points: if/else 36 (51 pts), boolean chains 19, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffda579eeeeb155af6ba03c477726fb28172b9bd70ae177cd9d083e3d944b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_hooks::runner::command::find_local_shell_assignments (cognitive 70): xai_grok_hooks::runner::command::find_local_shell_assignments has cognitive complexity 70 (threshold 15). Drivers by points: if/else 15 (41 pts), loops 7 (19 pts), boolean chains 10 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebee32f2918e86ae5a76e5ad3a634245a1c628d4d6f7eff55126ac9f2107ed71"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_modal_key_with_registry (cognitive 70): AgentView::handle_modal_key_with_registry has cognitive complexity 70 (threshold 15). Drivers by points: if/else 22 (37 pts), match/switch 14 (29 pts), boolean chains 4 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1089ddaa9c00f929e8a57cce537ee326f7e61d3f2b9e0e6217c659d57f7cbe77"}},{"ruleId":"D2","level":"warning","message":{"text":"UserPromptBlock::wrap_prompt_lines (cognitive 70): UserPromptBlock::wrap_prompt_lines has cognitive complexity 70 (threshold 15). Drivers by points: if/else 28 (59 pts), boolean chains 7, loops 2 (3 pts), match/switch 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"417cab4a50ef9f3c30d3bc1b48750123a6398abd9c15536e596998f229028790"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_rows (cognitive 70): xai_grok_pager::views::settings_modal::render::render_rows has cognitive complexity 70 (threshold 15). Drivers by points: if/else 24 (53 pts), match/switch 4 (10 pts), boolean chains 5, loops 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fdee47b76880433498ef0ff885fa22fc7f55a24c48fe5293e635a30697adda"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_picking_enum (cognitive 70): xai_grok_pager::views::settings_modal::render::render_picking_enum has cognitive complexity 70 (threshold 15). Drivers by points: if/else 35 (59 pts), boolean chains 4, loops 3 (4 pts), match/switch 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5e2787a4cf12d887949eb88de2a099020f4e72f5138d397042dea7928e56bc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex::commands::render_command (cognitive 69): xai_grok_markdown::latex::commands::render_command has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (47 pts), match/switch 7 (16 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 36). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/commands.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"54439b56a6323508d33cb0831d127aad22da1d99b0132a383517059192b3d470"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_scroll (cognitive 69): AgentView::handle_scroll has cognitive complexity 69 (threshold 15). Drivers by points: if/else 36 (54 pts), boolean chains 10, match/switch 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"30326a37cbac1e8e5dcfe9607837d3b742c118e95b1d33b1ff1af2c3cef5707c"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPane::render_items (cognitive 69): ListPane::render_items has cognitive complexity 69 (threshold 15). Drivers by points: if/else 20 (46 pts), boolean chains 9, loops 3 (8 pts), match/switch 2 (6 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a10fec8c096b2d831884f6e1f62f24450bedec7957b729b459fae39882a95e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::policy::shell_dash_c_script (cognitive 69): xai_grok_permission_rules::policy::shell_dash_c_script has cognitive complexity 69 (threshold 15). Drivers by points: if/else 28 (52 pts), boolean chains 8, match/switch 4 (8 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a1962c28f7e90e4d90a27f6d3e4e6ed4d4c413efc078963e8057875823da7d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::other::parse_ask_user_qa_pairs (cognitive 68): xai_grok_pager::scrollback::blocks::tool::other::parse_ask_user_qa_pairs has cognitive complexity 68 (threshold 15). Drivers by points: if/else 25 (62 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1603fcada62d03e3bde1388d0d44e1ce5f4fde574dfcb7036fb992f5d646b047"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::parse::cell_word_separator (cognitive 67): xai_grok_markdown::parse::cell_word_separator has cognitive complexity 67 (threshold 15). Drivers by points: if/else 27 (51 pts), match/switch 2 (8 pts), boolean chains 5, loops 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"396644f63e72aa22997a9eeb0322f7a1076fca980c4daa71810ecb4d0399cc15"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::stream::chat_completions::stream_chat_completions (cognitive 67): xai_grok_sampler::stream::chat_completions::stream_chat_completions has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (52 pts), match/switch 3 (7 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a0b888431e61e4e18e4dadca064527d16fec8d82d3d1156d9097687ed0ea85"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::stream::responses::stream_responses_tracked (cognitive 67): xai_grok_sampler::stream::responses::stream_responses_tracked has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (46 pts), match/switch 9 (18 pts), boolean chains 2, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/responses.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d415e392de71313ca0454eccda7e1f473ab2d33683c14063503b6a56d9a2c444"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentsMdTracker::check_path (cognitive 67): AgentsMdTracker::check_path has cognitive complexity 67 (threshold 15). Drivers by points: if/else 14 (42 pts), loops 5 (15 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"26635036970d95f69c043441d785a4f0cce14a9be2035228b222224b63bcdec8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::parse_porcelain_v2 (cognitive 67): xai_grok_workspace::session::git::parse_porcelain_v2 has cognitive complexity 67 (threshold 15). Drivers by points: if/else 27 (60 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bd9dfc2382ce79baf1fc6d70187c03516ffb228970cbc8646ff489ae203420"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::run (cognitive 66): xai_grok_pager::app::run has cognitive complexity 66 (threshold 15). Drivers by points: if/else 30 (42 pts), match/switch 11 (13 pts), boolean chains 11 (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/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f8200f0a63ba57ce09bab0b32c1f09ac2ea8a607a2e13e4a8bb27dc37cc6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker (cognitive 66): xai_grok_pager::views::picker::render_picker has cognitive complexity 66 (threshold 15). Drivers by points: if/else 36 (52 pts), match/switch 4 (7 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dc7266eec252506b64d5008b736f97d0aedff2f7181b6fd0ccbc3e340f3dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::messages::build_messages_request (cognitive 66): xai_grok_sampling_types::conversation::messages::build_messages_request has cognitive complexity 66 (threshold 15). Drivers by points: if/else 25 (49 pts), loops 3 (8 pts), boolean chains 5, match/switch 3 (4 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation/messages.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39fae25eb92fa4e379194eb047437db265ba61591b03a77ee1c60025379aec6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::queue::handle_queue_changed (cognitive 65): xai_grok_pager::app::acp_handler::queue::handle_queue_changed has cognitive complexity 65 (threshold 15). Drivers by points: if/else 22 (43 pts), boolean chains 9, match/switch 4 (7 pts), loops 2 (6 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/queue.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97d7486ca2a75cacc08b5b5ee643306800cfc76189e323722defbc3863a6209"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::osc8::scan_logical_line (cognitive 65): xai_grok_pager_render::render::osc8::scan_logical_line has cognitive complexity 65 (threshold 15). Drivers by points: if/else 22 (52 pts), boolean chains 8, loops 4 (5 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/osc8.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b6fbbbb0d1066e6602e1337fc69292ed51b2a60036a430dffbcbd86fef9b70"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::place_td (cognitive 64): xai_grok_markdown::mermaid::place_td has cognitive complexity 64 (threshold 15). Drivers by points: if/else 22 (53 pts), loops 7 (10 pts), boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9e95b3ffd4a540e6ae051f5423790c6cfcdca49d040dde4f9889b9c1981f25"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_diff::build_diff_hunks (cognitive 64): xai_grok_pager_diff::build_diff_hunks has cognitive complexity 64 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 6 (12 pts), match/switch 3 (11 pts), boolean chains 7 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8832fa82652e0645cf55b06a5205058a6de3b976187c8900542ff3ecc6d45197"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_file_utils::queue::upload_with_retries (cognitive 63): xai_file_utils::queue::upload_with_retries has cognitive complexity 63 (threshold 15). Drivers by points: if/else 12 (50 pts), loops 2 (5 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1932fdd3aecb4d7da9396622ccbc90ab85c00c73d9fbd2f9e8c59f4b8405295"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::settings::handle_settings_update (cognitive 63): xai_grok_pager::app::acp_handler::settings::handle_settings_update has cognitive complexity 63 (threshold 15). Drivers by points: if/else 33 (41 pts), loops 5 (12 pts), boolean chains 6, match/switch 2 (4 pts) (nesting depth added 17). 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/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad9781a7899b2be0c2058e69b10aa178e8777de404aeab4fcc103c676848058"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::drain_and_process (cognitive 63): xai_grok_pager::app::event_loop::drain_and_process has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (49 pts), boolean chains 9, match/switch 3 (4 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3200}}}],"partialFingerprints":{"codehealthFindingId/v1":"36262113e115841d741108380e28ce492b4a23c6bde3b370e8b3ab8e29c40229"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::coalesce_live_keys (cognitive 63): xai_grok_pager::app::event_loop::coalesce_live_keys has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (43 pts), loops 4 (9 pts), match/switch 1 (6 pts), boolean chains 5 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c4c856d466eea61ca7a585fd99b6f87065069a88b581528d03be79813f4ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::v2::render_manifest_from_source (cognitive 62): xai_grok_memory::v2::render_manifest_from_source has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (46 pts), loops 3 (6 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f4c7f766de84b6ac4f282aa6b38d46d250504643acc3b337e7577c9cd4dc5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_modal_mouse_with_registry (cognitive 62): AgentView::handle_modal_mouse_with_registry has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (42 pts), match/switch 8 (18 pts), loops 1 (2 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39ad06a5185e12cf47f404f18b1944f87508ccd0b87a65f9db7e5f10567e76b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::env_scan (cognitive 62): xai_grok_permission_rules::bash_command_splitting::env_scan has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (50 pts), match/switch 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e00c5bf29d0fb04d889230421f1ececa038ca8c9e9e64e7ca370af37d71f61b"}},{"ruleId":"D2","level":"warning","message":{"text":"Osc52Filter::feed (cognitive 61): Osc52Filter::feed has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (44 pts), match/switch 5 (15 pts), boolean chains 1, loops 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc71e76fd3e48c9faec92e221736e9e22a60b87bab6de9997475eb9e698ab2f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_queue_key (cognitive 60): AgentView::handle_queue_key has cognitive complexity 60 (threshold 15). Drivers by points: if/else 22 (53 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/queue.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"65371752df3246843adbc3d08aebc5924ac8c4cbc873d7c189af3ad29d468afa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::render_permission_view (cognitive 60): xai_grok_pager::views::permission_view::render_permission_view has cognitive complexity 60 (threshold 15). Drivers by points: if/else 32 (48 pts), boolean chains 9, loops 3 (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/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"925efea25ac4ee4b520b0c3599911066af8f2e2f913826dc77d13e3a04286403"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::build_entries (cognitive 60): xai_grok_pager::views::shortcuts_help::build_entries has cognitive complexity 60 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 9, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"927dde92f2a61846428526da5b3d7128afb879f44c24e62a416870d3a07a0843"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::format_styled_content_lines (cognitive 59): MarkdownParser::format_styled_content_lines has cognitive complexity 59 (threshold 15). Drivers by points: if/else 12 (46 pts), loops 4 (9 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"549f18a4ff62723a78209142ceb7817fa619455890440bc01803fa22305c8cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"AcpUpdateTracker::handle_user_message (cognitive 59): AcpUpdateTracker::handle_user_message has cognitive complexity 59 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 7, loops 3 (6 pts), match/switch 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"324d5f4e7e6fcd3408c192b1779ff19e977781e406645c9b24687c8ca8999a76"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentViewLayout::compute (cognitive 59): AgentViewLayout::compute has cognitive complexity 59 (threshold 15). Drivers by points: if/else 56, boolean chains 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3718008c80832c99a0ffbc00f003886e6bf8ffea3bdc14a0e3333e9fc92f8b44"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::inspect::print_human (cognitive 59): xai_grok_shell::inspect::print_human has cognitive complexity 59 (threshold 15). Drivers by points: if/else 31 (34 pts), loops 9 (16 pts), match/switch 5 (8 pts), boolean chains 1 (nesting depth added 13). 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/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eb5c43550d666f73a68d6df593c5344905b88f93eeba85859ad3071deedf84"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::connect_or_spawn (cognitive 59): xai_grok_shell::leader::connect_or_spawn has cognitive complexity 59 (threshold 15). Drivers by points: if/else 16 (44 pts), match/switch 5 (13 pts), boolean chains 1, loops 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2d0fa6b1f9864fa4d9cbc905da5ba4098afe8722871322298023ff0965b39c"}},{"ruleId":"D2","level":"warning","message":{"text":"BashTool::execute (cognitive 59): BashTool::execute has cognitive complexity 59 (threshold 15). Drivers by points: if/else 10 (38 pts), match/switch 3 (10 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac21e15f217f608a8b4157febb9cd6e5809bdc9c61ee430d08fb3ec1bc7b06f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::layout_canvas (cognitive 58): xai_grok_markdown::mermaid::layout_canvas has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (43 pts), match/switch 5 (8 pts), loops 5, boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88e19cda7fa454bd301bc867ec319ca36e8d9f9db6b1acb9b95a1ef1ce2b1c5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_extensions_modal_key (cognitive 58): AgentView::handle_extensions_modal_key has cognitive complexity 58 (threshold 15). Drivers by points: if/else 28 (43 pts), match/switch 6 (9 pts), boolean chains 6 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcc425ec13b6d566b3e62f96ecfcfe952ff423d3cafec996918cce9aca47f5d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_plan_feedback_key (cognitive 58): AgentView::handle_plan_feedback_key has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (50 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"bded6355be6bf14c167143e7f579226bc51c04dbfa1e3fa378f441a9c53752ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackPane::render_content (cognitive 58): ScrollbackPane::render_content has cognitive complexity 58 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 13, loops 2 (10 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40d08098d1c3e84d7739308a801eab9e6d8e0858f24f0191321b4ac678ee7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::question_view::render_question_chrome (cognitive 57): xai_grok_pager::views::question_view::render_question_chrome has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 5 (10 pts), boolean chains 7 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a0a0d8e6fa27ae725589da8a3eb91b4c238173925bc0949cbf786f5bab556f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::handle_input (cognitive 57): xai_grok_pager::views::shortcuts_help::handle_input has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (32 pts), match/switch 6 (15 pts), boolean chains 10 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3da454debf9461a3264514b720e9988e2fea6abd1036f7ea2ab9ad210546c89"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledPolicy::evaluate_shell_file_access_inner (cognitive 57): CompiledPolicy::evaluate_shell_file_access_inner has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 6 (12 pts), boolean chains 8, match/switch 2 (4 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/shell_access.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ea55174c8ee3e6d74ee81ae103b51a842790cececb0c599457427dd542c3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::authenticate (cognitive 57): MvpAgent::authenticate has cognitive complexity 57 (threshold 15). Drivers by points: if/else 21 (42 pts), match/switch 7 (15 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/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e69cd6950cd950233f9b84380881ff88cba44c4f59e6f26c1f7b95b90b1e04f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::build_dashboard_lines (cognitive 56): xai_grok_pager::views::dashboard::render::build_dashboard_lines has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (44 pts), boolean chains 7, loops 3 (5 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b694a113b833f59d7c49cdf063a4426fd103ff0078fbc7bbacd06b45f79a1e"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingLocalTerminalRunner::run_streaming_loop (cognitive 56): StreamingLocalTerminalRunner::run_streaming_loop has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (37 pts), match/switch 7 (15 pts), boolean chains 3, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6c3f8ded3fde2f5dafea13ce014eaaf5a3074c0a253bf700237fea53890229"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskTool::run (cognitive 56): TaskTool::run has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (46 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fdc68304bdb0b5ffcaf2727578359f41b500795d1424443be9078afd1f0374"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::mcp_elicitation::validate::validate_field (cognitive 56): xai_grok_tools::mcp_elicitation::validate::validate_field has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (41 pts), boolean chains 10, match/switch 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60b199c5a248f03f5517f5d1fca66828b03833d27c6a12f972a36f08c7e1f49"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::evaluate_bash (cognitive 56): xai_grok_workspace::permission::grants::evaluate_bash has cognitive complexity 56 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 10, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"330916b980c1399c8d87ad9c6708cadd59131eeae3c12472a9f164cca9492e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::fs_atomic::resolve_destination (cognitive 55): xai_grok_config::fs_atomic::resolve_destination has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 7, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"11682dc71e8c329a709f31e726d90ad0d7aa6fd002897e236af2bd63d884e6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex_delimiters::find_display_close (cognitive 55): xai_grok_markdown::latex_delimiters::find_display_close has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (40 pts), loops 3 (8 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab94ef27084c31486afeb038052c2d4778f3d0c7c3cd56164183e5e257696b86"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::order_ranks (cognitive 55): xai_grok_markdown::mermaid::order_ranks has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 9 (20 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2672}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab6e059fca42b2da0623a3b047301b98f4c1eda279840b0b244c55d756522dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportClaudeModalState::handle_key (cognitive 55): ImportClaudeModalState::handle_key has cognitive complexity 55 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 3 (7 pts), boolean chains 5, match/switch 4 (5 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb8484e48db26fbf26ed75888ddba0829860f962edb1ad8ee498f977157892a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::render_modal_shortcuts (cognitive 55): xai_grok_pager::views::modal_window::render_modal_shortcuts has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (44 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cbfe1b687425a2b3701e22a6d1309a2fa47f943effae798232dc2ca301817f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::highlight::paint_match_highlights (cognitive 55): xai_grok_pager_render::render::highlight::paint_match_highlights has cognitive complexity 55 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 7 (19 pts), boolean chains 4 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/highlight.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e85a47f8680a6597eeea921af60357bd714de7e6f9afdab1004f99ed1818cb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::memory::capture_transcript::condense_turn_transcript (cognitive 55): xai_grok_shell::session::memory::capture_transcript::condense_turn_transcript has cognitive complexity 55 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 9 (17 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/memory/capture_transcript.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3657dd0fd2258d07fd3c00a906d522cf832c05cdc59151e6b0f2e25116f1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::collect_assistant_text (cognitive 55): xai_grok_shell::session::storage::collect_assistant_text has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (39 pts), loops 2 (7 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"9817a5a03402a8dec8a930eb48324bfe502f01ea79be9e791d7f8678d16b3a68"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::on_turn_boundary (cognitive 55): WorkspaceHandle::on_turn_boundary has cognitive complexity 55 (threshold 15). Drivers by points: if/else 15 (47 pts), match/switch 2 (4 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 36). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/checkpoint.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"159faafde09c7a620596f414ab92b2a06edfe20bbd92ea1abe95d00fb112aa24"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::api::cleanup_orphaned_btrfs_snapshots_inner (cognitive 54): xai_fast_worktree::api::cleanup_orphaned_btrfs_snapshots_inner has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (43 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f27a70f88ed5fcbf83cc0523685acf687484a5207ef9a057799d3092fd881b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::render_agents_tab (cognitive 54): xai_grok_pager::views::agents_modal::render_agents_tab has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (37 pts), loops 5 (10 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c8fbf5c3d18db7c73d7f49503dc7c99813976116bb5df0b71f11c367b16cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::bash_quote_aware_wrap (cognitive 54): xai_grok_pager::views::permission_view::bash_quote_aware_wrap has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 4 (12 pts), boolean chains 5 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0522a55a36efeb7468ab6e6aa4a0d720ba05cd24f3f7433099941ff7415452"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportClaudeModalState::handle_mouse (cognitive 53): ImportClaudeModalState::handle_mouse has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 8, match/switch 5 (8 pts), loops 1 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe700bf5bf7a5b3610e39d6246d429ec953c4b0540be96ebc74443dbcd7b9a8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::settings::ui::apply_setting_rollback (cognitive 53): xai_grok_pager::app::dispatch::settings::ui::apply_setting_rollback has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (41 pts), match/switch 3 (6 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32cb11ef86f263862439c1fb065dce2b52bc96decdb18357d92ebcc6ceaf864"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::render::map_hyperlinks_to_overlay (cognitive 53): xai_grok_pager::scrollback::render::map_hyperlinks_to_overlay has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (45 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffa10547d3665def5e57c1d92e352bc18934b26f064a4a9f8d72cf4ef3d6d05"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_mouse (cognitive 53): xai_grok_pager::views::agents_modal::handle_agents_mouse has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (40 pts), match/switch 5 (12 pts), boolean chains 1 (nesting depth added 33). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baaded59505fed487d4165a676f7f64a081c1a9acee50156c89d4792494a079"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistryBuilder::finalize_with_trunc_config (cognitive 53): ToolRegistryBuilder::finalize_with_trunc_config has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (37 pts), loops 6 (8 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a66f1ffe66c20bf24dba15a35e29467a871c8bd8489f2428c0a37dab129b415"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::diagnostics::fix::tmux_top_level_commands (cognitive 52): xai_grok_pager::diagnostics::fix::tmux_top_level_commands has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 8, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0cdded3f04573fbbb703786e9222d0c97c469f3bbc7b49e3072ac8290ceb4f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::slash::commands::workflow::parse_launch_flags (cognitive 52): xai_grok_pager::slash::commands::workflow::parse_launch_flags has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (45 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/workflow.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa7d9c07b270cf2afc182be40520a8c45104bac51d22266001f93cb20f9fcb1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_row (cognitive 52): xai_grok_pager::views::dashboard::render::render_row has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 9, loops 3 (6 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b74846b5beae73787e325998f9bc81e9cd05880eb53cf3813f093b527dab9e8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::goal_detail::wrap_pause_message_lines (cognitive 52): xai_grok_pager::views::goal_detail::wrap_pause_message_lines has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (45 pts), loops 3 (7 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"903bc1351c2ce8d3ca54c33ae3c7896551b1019c1a705798b523a593c315b572"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::resolve_agent_target (cognitive 52): SubagentCoordinator::resolve_agent_target has cognitive complexity 52 (threshold 15). Drivers by points: if/else 23 (45 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/agent_targets.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ebcf1f74834c6cc4a67d8d01a79e21b96a8f8773f99d71bcb445941958ecce"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_update::auto_update::run_update_if_available (cognitive 52): xai_grok_update::auto_update::run_update_if_available has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29 (48 pts), boolean chains 3, match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfb89e1b2032ee50566d26e8160f493950101375a58d8f7a0f0db3de2fd3ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"Game::step_imps (cognitive 51): Game::step_imps has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (47 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/game.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"d952074487744e7ee9fcf249633e31e56c4396fc5e17cf0ab712231d43f792cb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_class (cognitive 51): xai_grok_markdown::mermaid::parse_class has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (38 pts), match/switch 3 (8 pts), boolean chains 3, loops 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"a246ad1577eb898e80963280806b4b780e8968678b8c1913b5e0e004e4e7b4ce"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_elicitation_key (cognitive 51): AgentView::handle_elicitation_key has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (31 pts), match/switch 7 (15 pts), boolean chains 5 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/elicitation.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2933ee3823478969bb8565217276a54a6e57f052214bd5b99913ad3f5e089e0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::prepare_layout (cognitive 51): ListPaneState::prepare_layout has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 14, match/switch 7 (8 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"edde387c5da065a9799c8044517fe93abf1ba0365c1bcfeb5cda69a39e29b410"}},{"ruleId":"D2","level":"warning","message":{"text":"QueuePane::render (cognitive 51): QueuePane::render has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (39 pts), boolean chains 11, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"73261f9b12ca76830c8928e007837619e9192c7aa23f80c0457ebf8a95c1d098"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::handle_memory_mouse (cognitive 51): xai_grok_pager::views::memory_modal::handle_memory_mouse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 8, loops 2 (6 pts), match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa8ec1ed3452f8414faf0a7983b0f72f180431b9b92e631c8c63b9484903018"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::render_tab_bar (cognitive 51): xai_grok_pager::views::modal_window::render_tab_bar has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (42 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c5eb66034b88eb0a928d89274da476b0e1db600127d42ee12775c3ba43f11d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_search_bar_with_label_viewport (cognitive 51): xai_grok_pager::views::picker::render_search_bar_with_label_viewport has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 2 (7 pts), boolean chains 5 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"675044232e8004ad9828476763804017b6fdafe3fd44cd38903446f2ade869f5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::transform_conversation_cwd (cognitive 51): xai_grok_sampling_types::conversation::transform_conversation_cwd has cognitive complexity 51 (threshold 15). Drivers by points: if/else 8 (30 pts), loops 5 (14 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"d032b772bb22414577a2ed35aea4ffd8f1c5f8f7c35fa98151b2f2f374c6641f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::goal_classifier::evidence::walkdir_changes_blocking (cognitive 51): xai_grok_shell::session::goal_classifier::evidence::walkdir_changes_blocking has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 6, match/switch 3 (6 pts), loops 2 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"678d84d41d76ac0c14b86188e84e2f25354b4e1b62f342fb6181dd6766841832"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex::environments::env_rows_to_strings (cognitive 50): xai_grok_markdown::latex::environments::env_rows_to_strings has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 5 (10 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aaf74e28aaea6292444e5897efb816d65be7cb66a9777ecf5b72f3bcdb403b"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockViewerPane::render_text_drag_overlay (cognitive 50): BlockViewerPane::render_text_drag_overlay has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"929d47f518cd6839a25cfbe7d73c99174c53d87ce5887fcec8fc736cd4a79d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_bin::async_main (cognitive 50): xai_grok_pager_bin::async_main has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (37 pts), match/switch 5 (8 pts), boolean chains 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c9376a4c906bfed575bbf9f7570585843c0b2b430b8926419ea7109a1b0c93"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::config::apply_requirements_inner (cognitive 50): xai_grok_shell::config::apply_requirements_inner has cognitive complexity 50 (threshold 15). Drivers by points: if/else 26 (38 pts), match/switch 3 (6 pts), boolean chains 4, loops 2 (nesting depth added 15). Of this number, 49 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1ccec1aaa71871c45d3bd3827ca23df75f8f539c91a08de2efc92d0d6c445d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_sequence (cognitive 49): xai_grok_markdown::mermaid::parse_sequence has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (38 pts), match/switch 3 (9 pts), loops 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c85503c6aeb5c90081bd7cf5a666c1fb6a128b6b92254444972b5932f6d718"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesReducer::reduce (cognitive 49): MessagesReducer::reduce has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (43 pts), boolean chains 5, match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef2789b6cb4749a284fe30344bc7eafe5dd4e1539dbc437f055ff24456677f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackPane::render_entry_with_ctx_static (cognitive 49): ScrollbackPane::render_entry_with_ctx_static has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 6 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80da1ae8a32860435fde39bcb23d2890eee340477843091ea3c958d42110c53"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::btw_overlay::render_btw_panel (cognitive 49): xai_grok_pager::views::btw_overlay::render_btw_panel has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (38 pts), loops 3 (6 pts), boolean chains 3, match/switch 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/btw_overlay.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab78796769268e41e1b3c686242102ea7f5176efa4bb065b5ebd3649ac23bff4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_conversion::acp_tool_update (cognitive 49): xai_grok_shell::session::acp_conversion::acp_tool_update has cognitive complexity 49 (threshold 15). Drivers by points: match/switch 16 (31 pts), if/else 11 (16 pts), boolean chains 2 (nesting depth added 20). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9eda46f33e1685c810a47f9067e03254d494d4d3935221ff9fd82bd6c62b69"}},{"ruleId":"D2","level":"warning","message":{"text":"BashTool::run (cognitive 49): BashTool::run has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (37 pts), match/switch 4 (7 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b32d064fd85e51da36e74aa075f3889e0bec0e8dde82c73f1be786372383109"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::read_file::run_read_file (cognitive 49): xai_grok_tools::implementations::grok_build::read_file::run_read_file has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 11, match/switch 6 (7 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"208e4aea501b2267432aeca5a4c88f917523fc246128a484ef1589cce70ca68e"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::input (cognitive 49): TextArea::input has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (34 pts), match/switch 4 (8 pts), boolean chains 7 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a62837c9c7a1f496508b486c47ce4dde381c4d4c8e2e965f33e7d101129ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::draw_walls (cognitive 48): Renderer::draw_walls has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (40 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade5418ccc6881ed9711174975df75ad16b0da3257e2fb3ed75ec4fd92f67211"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_bg_tasks_key (cognitive 48): AgentView::handle_bg_tasks_key has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 8, match/switch 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33d36c091c842cf478e0e8a9f1a523402e24fc66d8d598f00d0f0a94795c872"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::diagnostics::fix::classify_tmux_assignment (cognitive 48): xai_grok_pager::diagnostics::fix::classify_tmux_assignment has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (37 pts), boolean chains 7, loops 2, match/switch 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fcced20d5fd91caa232daaf4bc9b44cd8b9b90d3c31a498d9bd61bd6bde6a8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::memory_search::parse_memory_results (cognitive 48): xai_grok_pager::scrollback::blocks::tool::memory_search::parse_memory_results has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (41 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be6e63d655d66657b75a7bdc07e53cc315122b3319a0add7fc0b46b90a813f1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_narrow_rows_with_grouping (cognitive 48): xai_grok_pager::views::dashboard::render::render_narrow_rows_with_grouping has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 9, match/switch 2 (3 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e5afa3bf581e04f1791c3e9411761c6df8421232a3c673b7ce8e52f2c7559"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::file_search::dropdown::render_fuzzy_item (cognitive 48): xai_grok_pager::views::file_search::dropdown::render_fuzzy_item has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 4 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8034e057d3027a6515ac1b52ce850b926088390b10a0410e75a389a12ff3a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::render_file_list (cognitive 48): xai_grok_pager::views::memory_modal::render_file_list has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27 (44 pts), boolean chains 3, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e15dce32b398163f5558e2f31663b496bf2c2f1f78ab6c0b4b77909e6cfd53"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::status_line::sanitize::extract_osc8_links (cognitive 48): xai_grok_pager::views::status_line::sanitize::extract_osc8_links has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 3 (9 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/status_line/sanitize.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"68089ceaa185a1856afdf81e587201c0b823b9961f2fe883373b29a24d1152e3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::actor::request_task::run_request_task (cognitive 48): xai_grok_sampler::actor::request_task::run_request_task has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (38 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79442a00296ba0b3b7689576ae1e8f40619241af8bb215d0b895c7321118d77"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::attach_session (cognitive 48): MvpAgent::attach_session has cognitive complexity 48 (threshold 15). Drivers by points: if/else 31 (39 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 9). 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/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e2adf34dd38c6e12f00b249a3cd38ad900ed6eb2c330c2aa78d70073b59d64"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::maybe_run_goal_planner (cognitive 48): SessionActor::maybe_run_goal_planner has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (29 pts), match/switch 4 (12 pts), boolean chains 6, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3126f646a4f68a8f5e4493eb1b21cb8adc2662062dfdca8684f4e377b96272"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowManager::launch (cognitive 48): WorkflowManager::launch has cognitive complexity 48 (threshold 15). Drivers by points: if/else 26 (41 pts), match/switch 3 (4 pts), boolean chains 3 (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/codegen/xai-grok-shell/src/session/workflow/manager.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbf80d50e9d3db4c1570092099294cb91a57065673f9f179c52f2e66a8b3c78"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::refresh_all_baselines_except (cognitive 48): HunkTrackerActor::refresh_all_baselines_except has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 6 (12 pts), match/switch 4 (7 pts), boolean chains 5 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"9422fb2e15b38f1f39af3f7144e5438de1f21c525e02772788e3cfe222f28604"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::render_lines (cognitive 48): TextArea::render_lines has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 4 (12 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":3225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0117db0b44c1f162b5bc1dc3bd69c39223b71857458987c80e9bda43f0c1897c"}},{"ruleId":"D2","level":"warning","message":{"text":"V2CaptureStore::adopt_complete_orphans (cognitive 47): V2CaptureStore::adopt_complete_orphans has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (25 pts), match/switch 3 (9 pts), loops 4 (8 pts), boolean chains 5 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cd6a1792ac5386a7c6e1f3203bf01cd1472e9433cab6736751649dbd7e118d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch_slash (cognitive 47): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch_slash has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (40 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b821571e4a84e2dc5d5731ffaeabdaf02ed3d7756cc0e723339d8b9aaf1440"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::reconstruct_table_selection_text_with_meta (cognitive 47): xai_grok_pager::scrollback::text_selection::reconstruct_table_selection_text_with_meta has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 2 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 28). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f10b03f03d0d086456d56180264f5ac551057818bf51683d1352b5ec5eab5fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::send_tool_call_start (cognitive 47): SessionActor::send_tool_call_start has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 11 (25 pts), if/else 15 (21 pts), boolean chains 1 (nesting depth added 20). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"be611b7f0cfbd15faddf9e7b53acdefa1360a7f75a5fb4bf9208a45609b1c6ab"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_ratatui_inline::segment::split_into_line_segments (cognitive 47): xai_ratatui_inline::segment::split_into_line_segments has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (42 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/segment.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8687b6300e74de15f738eaa6a058cfd52747634eb6a938dd0382b595e2c4109b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::prompt::skills::dedupe_skills (cognitive 46): xai_grok_agent::prompt::skills::dedupe_skills has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (43 pts), boolean chains 2, loops 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/skills.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc81b2549c4a3e3885c6884050218284a26ce33f699822e97b2ecaf87762dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_settings_mouse (cognitive 46): xai_grok_pager::views::settings_modal::input::handle_settings_mouse has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 5, loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"378b023acde3f3c43b7dad1b778dc9b4a7543a405bb00b47dff90a3128da8faf"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::new_session_inner_impl (cognitive 46): MvpAgent::new_session_inner_impl has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (28 pts), match/switch 8 (10 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad9bb9509a783d5f47906bd65b20161cf3b2ed9e49489f5f4b54d442011bae9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::relay::sync::relay_sync_task (cognitive 46): xai_grok_shell::relay::sync::relay_sync_task has cognitive complexity 46 (threshold 15). Drivers by points: if/else 9 (32 pts), match/switch 3 (8 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/relay/sync.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc6ee990ae186f7a7d8f9685d1ab824265dad2514c844d023b8121a006ad9bc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_reader_actor (cognitive 46): xai_computer_hub_sdk::connection::run_reader_actor has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 5 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"623fd51a2a35abfc51b3e7fd69ee473b5cf09be94c7ac4bafac9b75b1e356aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::place_lr (cognitive 45): xai_grok_markdown::mermaid::place_lr has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 6 (9 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f5ef42b2955fc284a6c4c2d6461649194b1d08c65f083327d75427de58cd3f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::relax_rank (cognitive 45): xai_grok_markdown::mermaid::relax_rank has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (33 pts), match/switch 3 (7 pts), loops 4, boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2870}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5f006903b91aa7b83bffbedfb98c5f9bc567190f76f5e2246022575fa7bcdd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::maybe_drain_queue (cognitive 45): xai_grok_pager::app::dispatch::queue::maybe_drain_queue has cognitive complexity 45 (threshold 15). Drivers by points: if/else 27 (39 pts), match/switch 4 (5 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd89f2bd4cec13e0e01bf814ddd2a5c4b236bddf5dc7f71b3eea2b9c97753d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::apply_turn_start_shim (cognitive 45): xai_grok_pager::app::dispatch::queue::apply_turn_start_shim has cognitive complexity 45 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 7, match/switch 3 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d98e7be575c9a713f59a9823073e4e65293fbcb792368cc2b9bb90cd3a0b220"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::elicitation_view::render::render_elicitation_view (cognitive 45): xai_grok_pager::views::elicitation_view::render::render_elicitation_view has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 4, match/switch 2 (4 pts), loops 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f418b7b604a0f9736507eeed6b394050d5816ba2a8a29650b4f64b9d75af246"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_session_search::bootstrap::reindex_all (cognitive 45): xai_grok_session_search::bootstrap::reindex_all has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 6 (15 pts), loops 3, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/bootstrap.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05e25daac5d8dfdf6d4eeddca08dee8a345aa5f5f22da97e83e9d625cb5af9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigModelOverride::apply (cognitive 45): ConfigModelOverride::apply has cognitive complexity 45 (threshold 15). Drivers by points: if/else 40 (41 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a6697b2561c6a688f7ce9252b1cccd6ffeec66435f27d04bc796c5b247ea8a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_plugins_action (cognitive 45): SessionActor::handle_plugins_action has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 10 (20 pts), loops 1 (3 pts) (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e704e01000b836e603a4e2b0f58a0f2db597d863b842c666c7e7a52d26febe"}},{"ruleId":"D2","level":"warning","message":{"text":"GrepTool::run (cognitive 45): GrepTool::run has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (28 pts), match/switch 5 (8 pts), loops 3 (5 pts), boolean chains 4 (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/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba27781a87b7a6781c99dd2d91e6fa12f2d5ceb85cc5f179aa0e0cb66ce3ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_workflow::engine::register_host_fns (cognitive 45): xai_workflow::engine::register_host_fns has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 6 (12 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-workflow/src/engine.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e999db3b48cc3a5d5c77e265dfaf593906e3860e5c3a7aa35d6749a499279b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::storage_v2::list_memory_files_with_caps (cognitive 44): xai_grok_memory::storage_v2::list_memory_files_with_caps has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 3 (6 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf00e102e872825528cb37fd45681d6979933879e79c36fdaae953325418f198"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::extensions_action_target (cognitive 44): AgentView::extensions_action_target has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 10, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5275bfb6116a684d10227d6eb2fd5335221edcd7581c480455a682b98c44e2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockViewerPane::handle_mouse (cognitive 44): BlockViewerPane::handle_mouse has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 5, match/switch 3 (5 pts) (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"166f35da6446a48da0bc15a8ba136c6de629f0b96a3f1871dae459d4eb65745c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_dashboard (cognitive 44): xai_grok_pager::views::dashboard::render::render_dashboard has cognitive complexity 44 (threshold 15). Drivers by points: if/else 31 (39 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 9). 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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd59defdf278de93843b43351913bcda39e1e2a8d6f2d198d7886a182440fb8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::usage_modal::handle_usage_modal_mouse (cognitive 44): xai_grok_pager::views::usage_modal::handle_usage_modal_mouse has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 6, match/switch 3 (6 pts) (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/usage_modal.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de9c511a8106783fcd18cdb158c5411a4e5d8137315cf6ac5ff7da2a1170cba"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_hooks_action (cognitive 44): SessionActor::handle_hooks_action has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (27 pts), match/switch 7 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"538523109ebccc0102889c3b1c6f9e4b28e92374cb95390f0bb8a56aa434b485"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::poll_process (cognitive 44): LocalTerminalActor::poll_process has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 5 (11 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa989f2b8309536bc3a917423b1edeac669553554eb7e3b364ad9761765dd3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::sync::apply_porcelain_v2_entries (cognitive 43): xai_fast_worktree::sync::apply_porcelain_v2_entries has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (41 pts), boolean chains 1, loops 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/sync.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3a6998ba81abe779a06db81e84781a83272b6e04f39c2013083b261c2580f8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::dispatch_pick_session (cognitive 43): xai_grok_pager::app::dispatch::session::load::dispatch_pick_session has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (34 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd20b6aaeff0993e45c8199c4c58a1c91103c0f05245054ae3e824ff79be30d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::queue_input (cognitive 43): SessionActor::queue_input has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 11, loops 1 (4 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2466e4188ca39b6ff0beba2461134b5ad2b34ae21a24193f0bb805661f81de27"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::manage_workflow_run (cognitive 43): SessionActor::manage_workflow_run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 8 (13 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"071eb31a7aaa53d8b0e131a3dd393f0fac59c2d76156b397c506ef6d09e52d8b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::server::handle_connection (cognitive 43): xai_grok_shell::agent::server::handle_connection has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (32 pts), match/switch 4 (6 pts), boolean chains 3, loops 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"683b9bcac9549101a5f0c3daad596d52c08f0b8e0e460d117490d4c88d6802fd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::rg_heading::render_rg_heading (cognitive 43): xai_grok_tools::implementations::grok_build::grep::rg_heading::render_rg_heading has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (29 pts), match/switch 2 (6 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/rg_heading.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c010d0b73853ed79fce6bb9763e530c2be906e6df189dc2548400cbb8f00a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::discovery::register_nfs_from_union (cognitive 42): xai_fast_worktree::discovery::register_nfs_from_union has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (34 pts), boolean chains 6, loops 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/discovery.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c81f14684ec5fdc3c9278b1abe1e4aeca85bae63c5341728438fa9ab8352aea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::discovery::discover_plugins (cognitive 42): xai_grok_agent::plugins::discovery::discover_plugins has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 10 (18 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/discovery.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5b3f1433a9bb2a37240ecc3e085d1950d4fec8727c6d8a1e7efcfa85ff8650"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_extensions_modal_mouse_with_copy (cognitive 42): AgentView::handle_extensions_modal_mouse_with_copy has cognitive complexity 42 (threshold 15). Drivers by points: if/else 23 (34 pts), match/switch 5, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf34cf580a64d55ad52b6e8b19fbb1c2d731c8be62cbccfe19cd6f2f1dc5c3c"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::handle_key_inner (cognitive 42): PromptWidget::handle_key_inner has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 10, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e971124a7070410f1bade494068dead25a3edcee97cb071043f3f48cf683800"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::router::dispatch_action_result (cognitive 42): xai_grok_pager::app::dispatch::router::dispatch_action_result has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e170304cc4fa3cd4255d688506abce91cf2b1a2580dcdb7d6c88affad8cf6be"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_settings_modal (cognitive 42): xai_grok_pager::views::settings_modal::render::render_settings_modal has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (33 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"23333f8e6f958acc507e4ef9997b55b65f5b8e5a520678b261accdf41de53f82"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_diff::stitch_hunk_pair (cognitive 42): xai_grok_pager_diff::stitch_hunk_pair has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (31 pts), match/switch 2 (5 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b9be24d1d17250b762c072f988322b9ce1fec775a29e0b6777207fe30cbb68"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::run_memory_flush (cognitive 42): SessionActor::run_memory_flush has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (32 pts), match/switch 6 (10 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"db86a6e4dbf74f5437567c1b944be82a1a8381627a440533778c64de7932c5e1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::apply_patch::seek_sequence::seek_sequence (cognitive 42): xai_grok_tools::implementations::codex::apply_patch::seek_sequence::seek_sequence has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 7 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 19). Of this number, 41 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2acedcac31afa96363d61be0b761f108818f9de3a6a74f5c9df39b4e6f4443"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::status_ungated (cognitive 42): xai_grok_workspace::session::git::status_ungated has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (36 pts), boolean chains 3, match/switch 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"382ed6ffa3e3c226b74325ea4b5593a8b917dfec3e31b9d41508604f3cc155dc"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::normal_pane_hints (cognitive 41): AgentView::normal_pane_hints has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 11 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1ccdf8ba943ef5f4d0fd180da715eb60a1ff096b637b4ee0908ab57847b26b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::picker::render_picker_content_inner (cognitive 41): xai_grok_pager::views::picker::render_picker_content_inner has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 6, loops 3 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"9798c0ec83d0b3adc88831d1caa19b97ae52423e9e7f6716a2c606b32a8417e9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::location_path::shorten_location_path (cognitive 41): xai_grok_pager_render::location_path::shorten_location_path has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 19, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/location_path.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcaf74dea38691c6d3902bd555321d633964f733924c79eb025a6b2873ee3043"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadTool::run (cognitive 41): ReadTool::run has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 5, loops 3 (5 pts), match/switch 2 (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/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"94439a6449c2ab7d76e3cbfb704108c437a0adca27248efd539a27fac8100f5d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::search_replace::handle_replacement (cognitive 41): xai_grok_tools::implementations::grok_build::search_replace::handle_replacement has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (27 pts), match/switch 6 (11 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29e8dc67ae86255a8499172684e6e7e5742a8b8733fa345fb1e7a1d7d377e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::find_references (cognitive 40): ScopeGraphIndex::find_references has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (ScopeGraphIndex::find_references_with_names) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cec734813277e141635eaa069566d216bd811e670763531a112d7fc1252f35"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::find_references_with_names (cognitive 40): ScopeGraphIndex::find_references_with_names has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (ScopeGraphIndex::find_references) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"e286c4d539ff624521424d7c44bd55bd80fbfa94ff8dfc3d8d1dc2d355cb99ae"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::prompt::agents_md::read_agents_config_with_roots (cognitive 40): xai_grok_agent::prompt::agents_md::read_agents_config_with_roots has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 5 (8 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/agents_md.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c953294c1e4f8077067cdcbf5c20d19a0b646bb5bd27c110658f474b77e6dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::on_end (cognitive 40): MarkdownParser::on_end has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 5, match/switch 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae44cf188324bceab6683e2ab0cbcccde008170183d05b10f6e05e4afe2cee2"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryBackendImpl::search (cognitive 40): MemoryBackendImpl::search has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 5 (11 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/backend.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbc281e1c3e1236de2238f9350b93d10679c417ed63085f4eda53e264b58607"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::background::handle_task_completed (cognitive 40): xai_grok_pager::app::acp_handler::background::handle_task_completed has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 7, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcde4355a2913b1517ee692e169038c6ef68b936aad55fd4636b02c9a52156f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::effects::session_list::parse_session_picker_entries_with (cognitive 40): xai_grok_pager::app::effects::session_list::parse_session_picker_entries_with has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (29 pts), match/switch 4 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/session_list.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d408703fc2040f42ba6cb0623fdf5c2ae53d6b58d29a12786613047f37fca6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::doctor_cmd::human::format (cognitive 40): xai_grok_pager::doctor_cmd::human::format has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (22 pts), match/switch 8 (14 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbff0817df43847c7c53cf0c1e2a305c7071d84449c3dbeaff10cb3e6fa8d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_tab_key (cognitive 40): xai_grok_pager::views::agents_modal::handle_agents_tab_key has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 4 (8 pts), match/switch 3 (7 pts) (nesting depth added 22). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6e9ccfadcf837272f38ba311e7fcdd804dc490f857510337301893afc01faa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::render_input_form (cognitive 40): xai_grok_pager::views::extensions_modal::render_input_form has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 4, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":4164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2c5aa80fbe3e0389361e54994db543d363ece20081dd34a6a8b41604eaacde"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_picking_group (cognitive 40): xai_grok_pager::views::settings_modal::render::render_picking_group has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 2, loops 1, match/switch 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/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac2c3c7aea365682ed09ebd36886f80d694d682ebc1b5db3f2a941b45baa8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_setting_row (cognitive 40): xai_grok_pager::views::settings_modal::render::render_setting_row has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcf938ea114f51a5ef37b907bce40615a4e148d0fc02d5578170168f6fbec49"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::new_from_toml_cfg (cognitive 40): Config::new_from_toml_cfg has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 7, boolean chains 5, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"53060af1d57eb8577f6aabcaf608d0d24032c0e012b28e0e089e34c1ab2e4c89"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_bridge_tool_success (cognitive 40): SessionActor::handle_bridge_tool_success has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (32 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"0081f255d4a4637dc2a0795fc32a695dc5471865fa1a8ab4f703fec7567bdd4c"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorageAdapter::copy_session_data_sync (cognitive 40): JsonlStorageAdapter::copy_session_data_sync has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 5, loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b9082f6371a4a053989c6520813ed779c1914af7152dc6557603bd5394b3ac"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::skill::resolve_skill_internal_links (cognitive 40): xai_grok_tools::implementations::skills::skill::resolve_skill_internal_links has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (29 pts), match/switch 4 (8 pts), loops 2, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5c2f4443415c22839eeefab7d0b292c49e3597ef5181796683cf2141eff1d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_update::auto_update::run_update (cognitive 40): xai_grok_update::auto_update::run_update has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (23 pts), match/switch 6 (11 pts), boolean chains 6 (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/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46db34796684c0973c7996ce33f66ed60823d2e65f601cbb84ddc049e63f182"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_hooks::runner::command::run_command_hook (cognitive 39): xai_grok_hooks::runner::command::run_command_hook has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (31 pts), match/switch 4 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feea9290f47587aa2d02830a73bc0af0db5ac7abff1d87cabc796776b2a0f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::consent::handle_answer (cognitive 39): xai_grok_pager::app::consent::handle_answer has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 6, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b34472595af2712a2881752fcdb41b7cb08c4cfa86c199765b8764700a9bef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::welcome::menu::render_menu (cognitive 39): xai_grok_pager::views::welcome::menu::render_menu has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/menu.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa5a1c1363cc6c81990940b25bdb1591affe7a34a592a03e596058762e448e4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_permission_script::readers_allow (cognitive 39): xai_grok_permission_rules::bash_permission_script::readers_allow has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 9, match/switch 2 (6 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_permission_script.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09f00c15f269cc0279edafde0e940d2746186a5d47fad2649c7566c2171c0cc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::relay::run_relay_loop (cognitive 39): xai_grok_shell::agent::relay::run_relay_loop has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"27645ce1a0e206bd58e52fb625d05f84123b28a26258c454e7adffb617f4596c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::mcp_dispatcher::run_dispatcher (cognitive 39): xai_grok_shell::session::mcp_dispatcher::run_dispatcher has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 5 (12 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/mcp_dispatcher.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"745ac82eeb6b7dad6cceb8e7cd497e4927f8cdcdc883b07990670ae7a2f560ba"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::two_pass::snap_split_idx_to_tool_boundaries (cognitive 39): xai_grok_shell::session::two_pass::snap_split_idx_to_tool_boundaries has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 11, loops 6 (11 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/codegen/xai-grok-shell/src/session/two_pass.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1960ecd2b4fd2e015b1cc4fafc92d288325442cbcd6ca9f88db6d0579ed66ea"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::resolve_path_within_root (cognitive 39): WorkspaceHandle::resolve_path_within_root has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (26 pts), match/switch 3 (7 pts), boolean chains 4, loops 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"c640e850877c956a0fd585221b03e3fb9b9ca783fd4bfb4d2603e94235533dbb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::bin::workspace_server::run (cognitive 39): xai_grok_workspace::bin::workspace_server::run has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (25 pts), match/switch 11 (13 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"254a2008e9b6a400427a1ed53f087f2cc363d4ab1791c7fb97fdfe0d7c055379"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_external_agent_migration::reporting::format_item_summary (cognitive 38): xai_grok_external_agent_migration::reporting::format_item_summary has cognitive complexity 38 (threshold 15). Drivers by points: loops 7 (14 pts), match/switch 10 (14 pts), if/else 9 (10 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/codegen/xai-grok-external-agent-migration/src/reporting.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"98be28731deaf172379d446841eb6d1522c676a98cec7036e0e7f0adfe73c835"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::extensions_modal_set_collapsed (cognitive 38): AgentView::extensions_modal_set_collapsed has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (37 pts), match/switch 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/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6a2b1efffa6c09ca2b2f27c228fa94d13bf2fe57d9f8d369f1798117dfcc49"}},{"ruleId":"D2","level":"warning","message":{"text":"EditToolCallBlock::rendered_output (cognitive 38): EditToolCallBlock::rendered_output has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 3 (8 pts), match/switch 1 (nesting depth added 22). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe941c29c923abc3bbd954c2ed4a85ffe36d3f068005bf644c6bb450f66331c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::mcp_cmd::resolve_add (cognitive 38): xai_grok_pager::mcp_cmd::resolve_add has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 7, match/switch 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9b618d0fe75edc174f06f7ab953e31516f43a8c2c45cc673d935b10e92a8d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerActor::fire_next_task (cognitive 38): SchedulerActor::fire_next_task has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 6 (13 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4747d7cbb3c1cc49b945c6263ce524cf230ea2b6f338a3f622150e59411ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::bash::contains_background_operator (cognitive 38): xai_grok_tools::implementations::grok_build::bash::contains_background_operator has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"149874216b11e6606b3007c56525f00b345e8879bd79a87eda3874ed31d3aae1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_voice::pipeline::start_capture_session (cognitive 38): xai_grok_voice::pipeline::start_capture_session has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (29 pts), match/switch 5 (8 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/pipeline.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4c640cbf55c9b9e9283e84843e75bd6dd2fff2d0d62cf62c63a1ceae1ccc83"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::file_system::file_tree::list_contents (cognitive 38): xai_grok_workspace::file_system::file_tree::list_contents has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 4 (7 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/file_tree.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bca8ea0188e6f999f0cf402691cbc3509e1994e49148cb35b7ae088f16f260"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthManager::apply_refresh_outcome (cognitive 37): AuthManager::apply_refresh_outcome has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 5 (13 pts), boolean chains 2 (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e4671fdc77ba63da85696e95d5ad2ff490d77ea0319799230442d17344dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_link (cognitive 37): xai_grok_markdown::mermaid::parse_link has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 4 (8 pts), boolean chains 6 (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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"459b15d65aa20edce15bd67b43301903edeb287e56825176fdc284e9188759a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchToolCallBlock::output (cognitive 37): SearchToolCallBlock::output has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (13 pts), boolean chains 1, match/switch 1 (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22ea95684681bcdac46c28414dc9ae682ba59e83d510a57715ae972c3f335cb"}},{"ruleId":"D2","level":"warning","message":{"text":"SlashController::command_suggestions (cognitive 37): SlashController::command_suggestions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 5 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"714552882223a524a7079cb74161662f8844d9f8d0e8a8ea722c01872bcfdc19"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::welcome::workspace_mode::render_workspace_mode_picker (cognitive 37): xai_grok_pager::views::welcome::workspace_mode::render_workspace_mode_picker has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/workspace_mode.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"648e7a6c3b5c9c8e5deddf33073b10a0f9c961dea7fe7dfbdc2abf8140bba610"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_pty_harness::scripted::run_step (cognitive 37): xai_grok_pager_pty_harness::scripted::run_step has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ea2540d6bece33baac09a4e85a052a4b58d748defedbe81ea9acca440e07c7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::actor::request_task::drive_l2 (cognitive 37): xai_grok_sampler::actor::request_task::drive_l2 has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (26 pts), match/switch 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2bdf8c4ad094b3e8804468e61200e773d1399531ecd21c919f37cc602c2ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileName::resolve (cognitive 37): ProfileName::resolve has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 4 (9 pts), match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/profiles.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdd0be1cca6b7cafe5900bcd4411507801a1e47477b6e9300caa5afc184050e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::violation::coarse::decode_coarse (cognitive 37): xai_grok_sandbox::command::violation::coarse::decode_coarse has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 7, match/switch 2 (4 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/violation/coarse.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a47d3780ff2556f9cc4512b803220c7b830794c0bb6e91c7b0f3e966d323c6c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::maybe_start_running_task (cognitive 37): SessionActor::maybe_start_running_task has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (25 pts), match/switch 3 (6 pts), boolean chains 5, loops 1 (nesting depth added 9). 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/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f02030fb599b7fc3e17d7027a90209bba4249d4f06de8122649ff8cbb11baf4"}},{"ruleId":"D2","level":"warning","message":{"text":"Summary::apply_patch (cognitive 37): Summary::apply_patch has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e780b6766bc037bd397b37b47619ef44a8646a7cf038a40b986bfaf7978ecb0"}},{"ruleId":"D2","level":"warning","message":{"text":"HostService::spawn_agent (cognitive 37): HostService::spawn_agent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (27 pts), match/switch 5 (7 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"40db8ad366193fecd1168436661cde37af01de5fcfa1a1250613233b140bda19"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::handle_command (cognitive 37): LocalTerminalActor::handle_command has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdebe59d0531fc4134a23c9267e8c81a3648924e2f34ba078731f7ef95cb37b"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::process_file_change (cognitive 37): HunkTrackerActor::process_file_change has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 4 (7 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6558cc5bd07498f6c7f6f8ee7b2ea78fe9771fb03cca7c3ad358854e8b0f581"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamSession::resolve (cognitive 36): BatchDreamSession::resolve has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 5, match/switch 4 (5 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_plan.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"608008efda9429ff398a49565f8fc42f88ca329a9bb4e655649db3641754580f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_edit_confirm_choice (cognitive 36): AgentView::handle_edit_confirm_choice has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/queue_edit.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad24154e4130a22bd72f484ac19d5e5417e7fe283829ab3b2f194d98f57bc4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecuteToolCallBlock::push_header_lines (cognitive 36): ExecuteToolCallBlock::push_header_lines has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 4 (9 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ee589f9283d386f6dd632b945673b4ef20646159f630b78831ecff5a2dfe4c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::soft_wrap_row_texts (cognitive 36): xai_grok_pager::views::permission_view::soft_wrap_row_texts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd29cca61a7ab44aa03d0b8f02bbe7308846001dd9446990961dd7aa52d3039a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::live::draw_live (cognitive 36): xai_grok_pager_minimal::live::draw_live has cognitive complexity 36 (threshold 15). Drivers by points: if/else 29 (33 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98988b9491f330bcf72b7edf3294e47c233bc694cefd8ed4b57f788026b890"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::initialize (cognitive 36): MvpAgent::initialize has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (28 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"749df59c120a53b195d93ca93c2be7c3a6ea6abe8c602e91b1a8702d81ce016a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::maybe_fire_laziness_check (cognitive 36): SessionActor::maybe_fire_laziness_check has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (23 pts), match/switch 5 (8 pts), boolean chains 3, loops 2 (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/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf1bd20b7580dcde723cef0b826b6a367c2d71d74e041e3e8e97bca4a3aaf28"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::skills::handle (cognitive 36): xai_grok_shell::extensions::skills::handle has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 3 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8071d879313dca0feae257998ef91418d732900083fb250edae99f17a527c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::edit::to_search_replace (cognitive 36): xai_grok_tools::implementations::grok_build_hashline::edit::to_search_replace has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 5 (14 pts) (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"08db32912bda72929764a8b14eac4d766acf82bfdd7531bdcc11bddaa0f18732"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_scrollback_click (cognitive 35): AgentView::handle_scrollback_click has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 7, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2e5359c63d19fa0ae4f33e0e0720a13c03c692c2603c0804e5a7162e7f55ae"}},{"ruleId":"D2","level":"warning","message":{"text":"OtherToolCallBlock::output (cognitive 35): OtherToolCallBlock::output has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (11 pts), match/switch 2 (4 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f371c72bd9508f4d955f003bcc0d9cf277433c6f5b8f07758c1fb071583afc"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::ensure_selected_visible (cognitive 35): ScrollbackState::ensure_selected_visible has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f38f23d626a3c7fe2eeb017d3c04126dbe015cc1f8867f3a6de29d3de4a8e8f"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedbackModalState::render_drafts (cognitive 35): FeedbackModalState::render_drafts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/render.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"96db8652fbb9d97429cfc0b1b0e2c6bffe18d3640728111c5cb716cd3a2b6ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::acp::leader_bridge::bridge_channels (cognitive 35): xai_grok_pager::acp::leader_bridge::bridge_channels has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 6 (19 pts), if/else 4 (13 pts), loops 2, boolean chains 1 (nesting depth added 22). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/leader_bridge.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6046558a5e13bb6a7d55421f17233e88f7756815dd477409174a9b495660f7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::extract_session_context (cognitive 35): xai_grok_pager::app::dispatch::notes::extract_session_context has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (11 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44717f41182cbfa1cee317a10e71abad563699cd2b55aa5b99516a5fd58bf12"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::wrap_edit_header (cognitive 35): xai_grok_pager::scrollback::blocks::tool::edit::wrap_edit_header has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, loops 3 (5 pts), match/switch 1 (2 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"089ecf8a3e5ec415661b0c2d48ead6b27a9e04c58f488353b6a064dbae605864"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionScript::analyze (cognitive 35): PermissionScript::analyze has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (22 pts), match/switch 2 (5 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_permission_script.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"753e9384881a60e94ed33b28cfa01cc90cc681793f7ff5da63336bc35227d94b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::strip_wrapper_command (cognitive 35): xai_grok_permission_rules::bash_command_splitting::strip_wrapper_command has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 5 (10 pts), boolean chains 1, 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/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"354b4b2b00a716eb5178e4b93f8b7716efce4c255d59094769c0f2fdb3b221b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::rules::parse_permission_rule (cognitive 35): xai_grok_permission_rules::rules::parse_permission_rule has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/rules.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8261c69f1693860ebe2b8ad45ff5062bdc6a486defb00576ee7ac80d438ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::attempt_store::decoder::key_is_c (cognitive 35): xai_grok_shell::agent::subagent::attempt_store::decoder::key_is_c has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (14 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/decoder.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"2291282a4dd3f424978d582d15fe5b147bd038fbd1288abd20a5723e9a3cc5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::collect_tool_metadata (cognitive 35): xai_grok_shell::session::storage::collect_tool_metadata has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (22 pts), match/switch 3 (7 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"750a971d95f88983d0f66121344e89828237a69e9ea7f9900395eb7696df4070"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerActor::fire_as_loop_subagent (cognitive 35): SchedulerActor::fire_as_loop_subagent has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 7 (15 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfa2087974539005a3a4ff1ecd62f0dbc2c413c4a8237a141b3115c7a61cf83"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskCompletionReminder::collect_reminders (cognitive 35): TaskCompletionReminder::collect_reminders has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (8 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/reminders/task_completion.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f529dc66b21603e4c3c6e72de0c02fcf97bb52d99f8a5bcc74fbaabc75886b93"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::web_fetch::client::strip_base64_data_uris (cognitive 35): xai_grok_tools::implementations::grok_build::web_fetch::client::strip_base64_data_uris has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 1, loops 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c33814d5da2bd47cfda323bda3153a3c4ed317add18036bbd12d5305b70a78"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::discovery::discover_skills_for_paths (cognitive 35): xai_grok_tools::implementations::skills::discovery::discover_skills_for_paths has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 4 (10 pts), match/switch 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bad1fe14f127c814aa5da0175695440ac84155d22a263e04c203a2fb316edf6"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::handle_command (cognitive 35): HunkTrackerActor::handle_command has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (34 pts), match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mod.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"30111e625454470c6e68b7e851fc07e54fa06d8d796b89169896b0b0a750363e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_chat_state::image_budget::evict_images_to_budget (cognitive 34): xai_chat_state::image_budget::evict_images_to_budget has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 4 (8 pts), match/switch 2 (4 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/image_budget.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e344f8475c4649bc7a1951c3576f0afe2a51ed7605a738a0956437c8680650"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::wrap_label (cognitive 34): xai_grok_markdown::mermaid::wrap_label has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (7 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece0108e7174f34740d0bea7a422933f6bc66236557284505d7a4abb5f401d18"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::parse::cell_wrap_joins (cognitive 34): xai_grok_markdown::parse::cell_wrap_joins has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (27 pts), match/switch 1 (5 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8e631259ba9ee0905171da3d7355c579a49a736cb01c76ea3abaa202ac7dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::try_handle_dropped_paths_paste (cognitive 34): AgentView::try_handle_dropped_paths_paste has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3315274b1dc4a28ae035f90694d0402c4f46d5f75184c483d55a1feb20d38216"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::dispatch_scroll (cognitive 34): AppView::dispatch_scroll has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 5, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b83e75a0735b0e914737229a79e1b039e89b4a47262e93df6d2644ee5abee6"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::render_info_line (cognitive 34): PromptWidget::render_info_line has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (30 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 9). 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/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":3521}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c03ec933f2efa5f294ecf792a2971c144c5b221f6e778175cb755f1505dc713"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_worktree_session (cognitive 34): xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_worktree_session has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c3902fe2b07eb3cb1337763ba5a37023ba35fc50bf8c25323b8dc92f12afcd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::session_picker::build_entry_map (cognitive 34): xai_grok_pager::views::session_picker::build_entry_map has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 5 (11 pts), boolean chains 8 (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/codegen/xai-grok-pager/src/views/session_picker.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48012046fda70c0fa2006d5abefac6fc09fd8df187edb6d37690be827bdb41e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::dedup_duplicate_tool_results (cognitive 34): xai_grok_sampling_types::conversation::dedup_duplicate_tool_results has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 4 (13 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2adc102b4b607405849c93e67306616c2884f1d2231aa7992f171e06cf1c10"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::laziness_classifier::flatten_transcript_for_classifier (cognitive 34): xai_grok_shell::session::acp_session_impl::laziness_classifier::flatten_transcript_for_classifier has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 21). Of this number, 32 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d3fad2c2ea395fa51aa822e130eedce79fc10e27a3af464c4606f1252cf633"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::handle_internal (cognitive 34): SubagentCoordinator::handle_internal has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 3, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bb46e90c196776854104f36cb95d48d179645035c539c9441ede557f05a2db"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobTool::run (cognitive 34): GlobTool::run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b96d55bf5af9d39c68ff4398fce47a533de0c51764713660dd7fd8bda92d37"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::benchmark::run_phase1_for_file (cognitive 34): xai_grok_tools::implementations::grok_build_hashline::benchmark::run_phase1_for_file has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 2 (6 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcfc0a9e409e7b91ee7f9b6c31212c5768f8cadf42f05c5fdd8a25ce8179b47"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::rename_file (cognitive 33): ScopeGraphIndex::rename_file has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 4 (12 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"673f6f58d1a4d5c9bbe662a04a1f890bdadc5db2081a73ad6ec769c08eac438f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::find_definitions_smart (cognitive 33): ScopeGraphIndex::find_definitions_smart has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 2 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed00bdb622c925361ee856486a712d339ebe763dabd9676f945ba8bd0e8ed36"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::api::gc::reclaim_expired_worktrees (cognitive 33): xai_fast_worktree::api::gc::reclaim_expired_worktrees has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api/gc.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc6f9c5cab9b66090e30965fccd2f08b57a91e2f00c685f7311ff65b641f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::git_install::parse_install_source (cognitive 33): xai_grok_agent::plugins::git_install::parse_install_source has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f3d9f1881282c7a165914eb3d3ccd45f287c59cc9cf4fc8e23ad1f32aab337"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_scrollback_key (cognitive 33): AgentView::handle_scrollback_key has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 14 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d368c077e27dda29aa7343380e06392789bc77cd4349805be9779ebdc3369b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::draw_subagent_fullscreen (cognitive 33): AgentView::draw_subagent_fullscreen has cognitive complexity 33 (threshold 15). Drivers by points: if/else 27, match/switch 3 (4 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/subagent_takeover.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac720b34c69d6cd1fd0e006d29fce3f279630d23a440f0122e6522e5375c4608"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::render_selection_buttons (cognitive 33): AgentView::render_selection_buttons has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 8 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb25494f8a7b077d1926d6ade5bf25305d148566480fe40cb0b425a65699dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_arg_picker_input (cognitive 33): AgentView::handle_arg_picker_input has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 5 (7 pts), boolean chains 4 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0a3061f28c895466e8af307e0c8922fffbf31d84483861f74adf1f49bcec8e"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionBox::render (cognitive 33): SelectionBox::render has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 5, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/selection.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f924d0658d190c22cdc57114d46754ad3b7a74a1505401214624b1dfa0339d24"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorageAdapter::read_chat_history_sync_bounded (cognitive 33): JsonlStorageAdapter::read_chat_history_sync_bounded has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), match/switch 3 (7 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ac67b331f6901bfb1ff42d2accbf34e891f32283ed0b45bc7e4e577f7a87d2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_update::cleanup_downloads::cleanup_old_downloads_with (cognitive 33): xai_grok_update::cleanup_downloads::cleanup_old_downloads_with has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 3 (5 pts), boolean chains 2, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa3db9a96cfcf11c02026dc11f4659f10cfb6b0c2a87fc1fbd14c9a91877f8f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::mcp::drive_server_starts (cognitive 33): xai_grok_workspace::mcp::drive_server_starts has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/mcp.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2140608442da09c0ad96a52f099d2b8abb70a5305a780a9561eb5cc5c3fd441"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::display_col_to_buffer_pos (cognitive 33): TextArea::display_col_to_buffer_pos has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dc75b6cfd3db24faf479eb5de04e3cb73d43839c55e71db8b65a4a77fe3f0d"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::greedy_wrap_segment (cognitive 33): TextArea::greedy_wrap_segment has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (8 pts), boolean chains 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8382fc298b2cb63c22a7b7b4a05895549c26a6e53c4b690e7e1f6852ca7f03"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::draw_imps (cognitive 32): Renderer::draw_imps has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"679b45874589275497a0036d38f539b2fcefcebf5dfee581789e883afc50085d"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthManager::refresh_chain (cognitive 32): AuthManager::refresh_chain has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 7 (21 pts), if/else 5 (8 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/refresh_chain.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9dca7b2d681e024d5f4e02d003aff7257fb93253b91dff5ff76cb10ca60581"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamSession::settle_outcomes (cognitive 32): BatchDreamSession::settle_outcomes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 4 (11 pts), loops 2, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_plan.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b2e935b49d87eb7d1c6513bcb1df4b26342b76a31d12707de891b813b5305d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::apply_reload_outcome (cognitive 32): AgentView::apply_reload_outcome has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/session.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"9049163aff860aaed96132aa5da137731ed6c57dc6fd9afa40e60cf0ac5be488"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedbackModalState::handle_drafts_key (cognitive 32): FeedbackModalState::handle_drafts_key has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/drafts.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7b29b617496e1feb78dfa71c00bd278b2c4c4506e3b2c8bdaddd9f64daa881"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::run_pending_suspends (cognitive 32): xai_grok_pager::app::event_loop::run_pending_suspends has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 4 (10 pts), boolean chains 3 (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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bee79c2f936fc65b9c82563632170b31460aa3110e37aa0dc6a8f4329a3989f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::deny::glob::validate_deny_glob (cognitive 32): xai_grok_sandbox::deny::glob::validate_deny_glob has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (4 pts), boolean chains 3 (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/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aac80780330920e68736a388cdfe1a9b909a0509621a5cda75694057310395"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::deny::glob::glob_tail_to_regex (cognitive 32): xai_grok_sandbox::deny::glob::glob_tail_to_regex has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a33863ca0c5c2278a2d838bd9f19ece4d0309beed2c238baa533baf86baa7ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigReloader::run (cognitive 32): ConfigReloader::run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 5 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/reloader.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8906f46e8dee3cd8cccb1bac2b1c0c0983bc21792b8c39e1929fe7635ada0f2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::submit_turn_request (cognitive 32): SessionActor::submit_turn_request has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"65826b8994c6a492f7e272b6238a66baca0a498da24bc153f4a6cf03d293783f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::session_updates::try_stream_tail_page (cognitive 32): xai_grok_shell::extensions::session_updates::try_stream_tail_page has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eb6831e15688e9831c2eed18dd478d8b833b58d67f1fcff42bb46c58abdc4b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::file_system::content::content_search_streaming (cognitive 32): xai_grok_workspace::file_system::content::content_search_streaming has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 6, match/switch 2 (4 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/content.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b41455870617618d2052403b126640cc6ee73c9c2b27a99bd655de84e30fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::hub_auth::proactive::refresh_loop (cognitive 32): xai_grok_workspace::hub_auth::proactive::refresh_loop has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 4 (8 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15fab68da179458af53a1ae78a8480f13971c3e7dfc09ebc8a3fde7668886f7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::bin::cli::main (cognitive 31): xai_fast_worktree::bin::cli::main has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/cli.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"64684de940db84ddb7ae1757c8fbd872b094381a15957d867de45c23255511a9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::overlay::snapshot::cleanup_orphaned_overlay_snapshots (cognitive 31): xai_fast_worktree::overlay::snapshot::cleanup_orphaned_overlay_snapshots has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7ff521cd42e996fbf557af041b50a0a4a6155bfc7322a36c1ff11e16dd3b76"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::global_hook_sources::resolve_global_hook_sources (cognitive 31): xai_grok_config::global_hook_sources::resolve_global_hook_sources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (6 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/global_hook_sources.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8bca9bb9f98a3ae7c184268ae8cd270671c655b95668235f8a03f94d417edf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::managed_text::format::parse_block (cognitive 31): xai_grok_config::managed_text::format::parse_block has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 6, match/switch 2 (3 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_text/format.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaba1905f87b52d4189b61f7edf1de37628b9e5b5e322833ecb3162dbb6be7df"}},{"ruleId":"D2","level":"warning","message":{"text":"V2ConsolidationStore::prepare_changes (cognitive 31): V2ConsolidationStore::prepare_changes has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 4 (10 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"491c504bb54e56452753671e33bc8d21eab2c71e1d48fe511c38d6847b882539"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::complete_clipboard_attachment_paste (cognitive 31): DashboardState::complete_clipboard_attachment_paste has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 4, loops 1 (2 pts), match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c62faa9b496147554988ee7e1ad514d0040f46606114c7d21313d9c30bfce3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::consent::split_markdown_links (cognitive 31): xai_grok_pager::app::consent::split_markdown_links has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 2, 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/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b0eba8c8b848328a9d637716f146c10baed50cfad314d39ab0d0a2d0ca37e3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::dispatch_submit_feedback_modal (cognitive 31): xai_grok_pager::app::dispatch::notes::dispatch_submit_feedback_modal has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2289aaca607fe0158d70815076d324209c333e335c62c0f521429c51d0e366"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::handle_switch_model_complete (cognitive 31): xai_grok_pager::app::dispatch::session::lifecycle::handle_switch_model_complete has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bab3c2edc66482e2eb3eb0c3fe1550da961abc37d08f74a54479468bc9eee41"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::turn::reconcile_overdue_turn_ends (cognitive 31): xai_grok_pager::app::dispatch::turn::reconcile_overdue_turn_ends has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, loops 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"75afb1333f0e49feadde7a27e44d1e0af3fc5d439bba6b42a2e4606ca981970b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::headless::handle_headless_acp_message (cognitive 31): xai_grok_pager::headless::handle_headless_acp_message has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"600937f93f105476d98efeed3bc60a12aecba5e7ce56ee3eb778cde0bc8b71ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::reconstruct_full_selection_text_with_boundaries (cognitive 31): xai_grok_pager::scrollback::text_selection::reconstruct_full_selection_text_with_boundaries has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"800a3096651e921d4453410a494935f91deefdfd26665319b074538e4f5a290c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::elicitation_view::render::build_body_rows (cognitive 31): xai_grok_pager::views::elicitation_view::render::build_body_rows has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (10 pts), boolean chains 3, match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"809708a9c9940ae550ce2d2f5b68905ae49ece89fcb93059e8ffd7bd8c6e441c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::handle_browse (cognitive 31): xai_grok_pager::views::memory_modal::handle_browse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (5 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/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e9bd987a92928e1a090cda6990f991511994d18853946ff591925ce034e6a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileName::capability_set_from_profile (cognitive 31): ProfileName::capability_set_from_profile has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 5 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/profiles.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a452db4eb3f4ad6650a36da180d1344b865f916c9b78b43e21dd655e694baec4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::bootstrap_initial_context (cognitive 31): xai_grok_shell::agent::subagent::bootstrap_initial_context has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 5 (10 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4d80a8e3c4ef582553b80679554d34e7c675f383eaf80695ca08f7b81e063e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::feedback::handle_feedback (cognitive 31): xai_grok_shell::extensions::feedback::handle_feedback has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 3 (6 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/codegen/xai-grok-shell/src/extensions/feedback.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a5a147d2849eed104c5f97f53cb4f5b96c5fd7dcb24affc4225268421f0041"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::inspect::list_config_sources (cognitive 31): xai_grok_shell::inspect::list_config_sources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (25 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a5266b9b7713789bb18c1a5a7b56a929294d11ff9c2833c69326550472f82"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::run_loop::turn_texts_for_feedback (cognitive 31): xai_grok_shell::session::acp_session_impl::run_loop::turn_texts_for_feedback has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 4, loops 1 (2 pts), match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d29fba6ea272463243744ec23585243bd52971b93c1bb3db528e0c24273f52"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::collect_prompts_from_events (cognitive 31): xai_grok_shell::session::storage::collect_prompts_from_events has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 15). Of this number, 25 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb97bc0bef4b71b4dfa8dfc025de279f5b2d6d323adfcd88201e6b35be0e23f"}},{"ruleId":"D2","level":"warning","message":{"text":"HashlineEditTool::run (cognitive 31): HashlineEditTool::run has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 8 (16 pts), if/else 6 (12 pts), boolean chains 3 (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a230dab8b1799a0a820d85272039a242c2199281cf5d3f01a45d8f35bf46a11a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::read_file::extract_file_content_lines (cognitive 31): xai_grok_tools::implementations::grok_build::read_file::extract_file_content_lines has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 8). Of this number, 29 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1567ea70adb8c6c3959bb0e5c5ae65f3e946c569dc9028cba81f7c24a33d2384"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::file_system::git_status::git_status_impl (cognitive 31): xai_grok_workspace::file_system::git_status::git_status_impl has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (7 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/git_status.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0215fe3cc504af55c2dd9f8964d2d14938d2c9d3ef406abc7f1713e5b78563c2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_tty_utils::our_children_in_group (cognitive 31): xai_tty_utils::our_children_in_group has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tty-utils/src/lib.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d9d8ba180634d31eddc02ae8f76b10e4eaaf74328d74a2359cd203057ce25e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraph::insert_ref (cognitive 30): ScopeGraph::insert_ref has cognitive complexity 30 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (10 pts), match/switch 1 (5 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2e2779f735fb04bcf81454a6aff01db0f0497b6f1ff07724ad7f2b5422f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_codebase_graph::index_manager::intern_symbols_directly (cognitive 30): xai_codebase_graph::index_manager::intern_symbols_directly has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bdabbf147b0da109af8be9ac98aa7f76bb67eee9ef4e0b0d9d3e62221894c2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::btrfs::detect::resolve_via_subvol_mount (cognitive 30): xai_fast_worktree::btrfs::detect::resolve_via_subvol_mount has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (27 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86ef348384eecb3a728791df755f93269cd196b5ae6c5f45dd5f756f846280e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_login::flow::run_auth_flow_steps (cognitive 30): xai_grok_login::flow::run_auth_flow_steps has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (7 pts), boolean chains 6 (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/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"7465fd4d4f5fe746fcf22e84cf7dd1dba7ce568eb83e07d0fb00c4bc5c892fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_mcp::oauth::authenticate_mcp_server_dedup (cognitive 30): xai_grok_mcp::oauth::authenticate_mcp_server_dedup has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 1 (3 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/oauth.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"155ba5e74682daa91f7c336fd76dcc301ddea0e4dc03870bb32e44dba937785a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::view_tick_demand (cognitive 30): AppView::view_tick_demand has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 12, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"515df48662a9ab3f95f7bdf7870ecb09efbd0c7285c7dffa32b3b7d137f4977f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecuteToolCallBlock::render_with_truncation (cognitive 30): ExecuteToolCallBlock::render_with_truncation has cognitive complexity 30 (threshold 15). Drivers by points: loops 5 (17 pts), if/else 7 (11 pts), boolean chains 2 (nesting depth added 16). 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9feda36396473675839d266f30e57f0c0cb50f7c90b3b2bb2694b3d6627183"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_bracketed_paste (cognitive 30): DashboardState::handle_bracketed_paste has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea83f08f13fb521fc5aa0f30b0f103c5b38c10f9b9d624f06b45c285f10f8be"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::render_editing_value (cognitive 30): xai_grok_pager::views::settings_modal::render::render_editing_value has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 2 (5 pts), boolean chains 3 (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/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7947e6c36c5948a15b07ec0d783e8b048dc34adcda87c446ea606e9a84af8f"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::retry_subscription_check (cognitive 30): MvpAgent::retry_subscription_check has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e94375c96b55ef3f429fb7879e7ab30b6e45d5b73863e5df2faa216f7460689"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_xai_session_notification (cognitive 30): SessionActor::handle_xai_session_notification has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 6 (10 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12528bf6e8ba8bcb8ca5bb0cf1bfdc528a1b30c6a5ae224cd8c1f4737472929"}},{"ruleId":"D2","level":"warning","message":{"text":"HostService::dispatch (cognitive 30): HostService::dispatch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4f7c3b59c13639e5b54b369b03b20de561331129bbe7e16c7fae855c375e12"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::shell_token::parse_current_token (cognitive 30): xai_grok_shell::extensions::suggest::shell_token::parse_current_token has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 6 (15 pts), if/else 4 (14 pts), loops 1 (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/shell_token.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4aff61a058048316e347015599a736ab0f12634e604df2d727dc0006899e6e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell_terminal::pty_session::run_pty_output_loop (cognitive 30): xai_grok_shell_terminal::pty_session::run_pty_output_loop has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 3 (7 pts), loops 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/pty_session.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b412909e1b049643365e8eedbe1fca2219578d2d6ee561aadc3f8d5144f3449"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer (cognitive 30): xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21 (28 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/common/xai-grok-compaction/src/intra_compaction/fit.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a8cf3f021517590006e8d6f3e79b249dba373384e8dffb2bd375cc0105f11a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_history_search_key (cognitive 29): AgentView::handle_history_search_key has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 7 (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/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeacd36df84367f5daa40ef137001c347d8202253c3929ae525128a821fee09"}},{"ruleId":"D2","level":"warning","message":{"text":"CsiFragmentFilter::filter (cognitive 29): CsiFragmentFilter::filter has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/csi_filter.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c350b9aee4004e6363e99681dc4375a3c63309330282e4f9756635e0b4b7b65"}},{"ruleId":"D2","level":"warning","message":{"text":"ElicitationViewState::move_focus (cognitive 29): ElicitationViewState::move_focus has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/state.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b8f7d16eaadeec0c347e25762558ac7a19ae29cc22399305190ff639670048"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::init_terminal (cognitive 29): xai_grok_pager::app::init_terminal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (26 pts), match/switch 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22503fd4e8bdd1165c56048ec6bf2900325b2e4dc87c44f7750cdaff58eb479"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::apply_retry_state (cognitive 29): xai_grok_pager::app::acp_handler::session_notification::apply_retry_state has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"43edf5733e59865cbfdccb310e493df03f222fc83539236447cacc568a3d3409"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::new_worktree_dialog::render_new_worktree_dialog (cognitive 29): xai_grok_pager::views::new_worktree_dialog::render_new_worktree_dialog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 5 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b45169ab1af3ea9807422e3f8b713bb773be09e9b8a0cb8bb351cdaf964811"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_picking_enum (cognitive 29): xai_grok_pager::views::settings_modal::input::handle_picking_enum has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35484d34f987793ce90821247237157ed8b7dda91b96faf122dfb74c0fb0979"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::input::handle_browse (cognitive 29): xai_grok_pager::views::settings_modal::input::handle_browse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"45db003e420fc99d0c5d77a6871f857a740b7f60021d8a93736c201cd19751ce"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::tool_paths::shorten_path (cognitive 29): xai_grok_pager_render::render::tool_paths::shorten_path has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/tool_paths.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ab4d0f8dae6bf08547fc0d3c9edaabd9408d310e7b93f287c61a35775eeb09"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::terminal::detect_terminal_brand_from_env (cognitive 29): xai_grok_pager_render::terminal::detect_terminal_brand_from_env has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/mod.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c77f86deff951f5b74f6fdd92f99d2365afa323354544d78c73030e9736483c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::actor::request_task::apply_retry_decision (cognitive 29): xai_grok_sampler::actor::request_task::apply_retry_decision has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7688fcbce0abaab730c5988991c54c5fd5d7b49d5dfb02cea17db0d3d5c97fa2"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::forward_raw_replay_line (cognitive 29): MvpAgent::forward_raw_replay_line has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 3, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"636524e154a8e64bf7d5b0eadd58bf722763e76ff0a3e28f3229887cb7f4c435"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorageAdapter::load_workflow_runs_sync (cognitive 29): JsonlStorageAdapter::load_workflow_runs_sync has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6320bb254bbee52d844e3f81bf248580464b07f42b5f95487a691da296cbb5c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::server::inject_session_request_context (cognitive 29): xai_grok_shell::leader::server::inject_session_request_context has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 6 (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/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42ff7d84f79322d6b3d6cb82e20d2636b1c88207bd03613cd675a944fea2de0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_telemetry::external::emit::emit_record (cognitive 29): xai_grok_telemetry::external::emit::emit_record has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (6 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/emit.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61a98f76e2fe6764d48890fa1f65f270ef0511b9f8be5a284e5ad776acd6e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"BashTool::exported_input_schema (cognitive 29): BashTool::exported_input_schema has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 3 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a5db3276e20c2c8fcfb6f3e9f6dd9b9d5f03a4b514625cd115c7d5797a68b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerActor::handle_command (cognitive 29): SchedulerActor::handle_command has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (28 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3b39629c51bfab05ca20fe30837672809578bf720c29e820dea7aab959004b"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistryBuilder::validate_config (cognitive 29): ToolRegistryBuilder::validate_config has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, loops 3, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cfc9698842cf93b42441ee6dc0e4fb6047304a748a7dd8360244c52b53920f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::list_dir::versions::legacy_0_4_10::collect (cognitive 29): xai_grok_tools::implementations::grok_build::list_dir::versions::legacy_0_4_10::collect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/versions/legacy_0_4_10.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6043726ef4377efe48e71074669efb594b01b6b555a0dc289e94a31202a4507c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::web_search::client::extract_citation_pairs (cognitive 29): xai_grok_tools::implementations::web_search::client::extract_citation_pairs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (19 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3bf4616b02f630225d582b37544cfcadcd702c6d043805aadb2e2d5102243e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::btrfs::detect::resolve_bind_mount_source (cognitive 28): xai_fast_worktree::btrfs::detect::resolve_bind_mount_source has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 1 (4 pts), loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca990bdd2286fdac4847fb79455b93b3c982f2fb9f33dd001522a5bec60d310"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::discovery::by_name_in_cwd_with_plugins_and_home (cognitive 28): xai_grok_agent::discovery::by_name_in_cwd_with_plugins_and_home has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/discovery.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7e0b6bf02a6d11e4a0a9a31f1398d934b53046f837c636719cb6c2ee499cc2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::assign_positions (cognitive 28): xai_grok_markdown::mermaid::assign_positions has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82739f44ce552be9f2a40bf950538ea73cd06440f12a5ec435b7844bc337f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::dream::build_dream_user_message (cognitive 28): xai_grok_memory::dream::build_dream_user_message has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/dream.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"752cbfd84d82b295d90af073c7af8c0b4dcf19567e44edb1b3f9ea1a4c1c998b"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_paste_key_deferred (cognitive 28): DashboardState::handle_paste_key_deferred has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b55df482bae5b734082c8447b891c1c50794dc9d74f8ba2a2e3760c16c4a7b5"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::apply_goto_line_live (cognitive 28): ListPaneState::apply_goto_line_live has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7486e9258af9896e563c25eb5fe84388159f6ddad8d34626c0564f14001564"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksPane::sync (cognitive 28): TasksPane::sync has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6, loops 5 (6 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ba62c667b8746ff6db54906e7226ebaf61241fd06ef4da60ce5c637d90a728"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::auth::handle_auth_complete (cognitive 28): xai_grok_pager::app::dispatch::auth::handle_auth_complete has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5b548dc1a8beb51e138d9e793774988081ab5673905d3bcddbe82d2cbb69bd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::modes::dispatch_cycle_mode_inner (cognitive 28): xai_grok_pager::app::dispatch::modes::dispatch_cycle_mode_inner has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (25 pts), match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b891ba1ecf504392da2a05066576fe4f2a6b95927620b4850793592b8125d7da"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::dispatch_run_edited_queued_command (cognitive 28): xai_grok_pager::app::dispatch::queue::dispatch_run_edited_queued_command has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 3 (5 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea43e32a3ce2dc7a535dca857aa967e9c0037f350b60cf7fca212dfd04e7ceb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::turn::dispatch_cancel_turn (cognitive 28): xai_grok_pager::app::dispatch::turn::dispatch_cancel_turn has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4201cc39473a719658de8e7433fdbac5d04efeb932527b1a3343d8079f7ca83"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::screen_mode_relaunch::build_screen_mode_relaunch_args (cognitive 28): xai_grok_pager::app::screen_mode_relaunch::build_screen_mode_relaunch_args has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 3, loops 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/screen_mode_relaunch.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c726f19101a3a6a99961671ab83c7a775c18bc8410be94b579844d49e48c2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::turn_completion::finalize_child_view_turn (cognitive 28): xai_grok_pager::app::turn_completion::finalize_child_view_turn has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/turn_completion.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1cd859a34a1f84d21e6301a6666a5980b265ae32a1db8e1fafda8804174c04"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::diagnostics::fix::tokenize_tmux_command (cognitive 28): xai_grok_pager::diagnostics::fix::tokenize_tmux_command has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (5 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"282d7d94a6a2ba10a7569dfc4f360412f5b547bf012cdf4a17f53f02d0c709ee"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::semantic_selection_at (cognitive 28): xai_grok_pager::scrollback::text_selection::semantic_selection_at has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba44d72e43423bbf83cf2c8e0fb4d914c73369b6930fb6065f230e328816f710"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::file_search::line_viewer::build_markdown_lines (cognitive 28): xai_grok_pager::views::file_search::line_viewer::build_markdown_lines has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3156f6a94f1ca872d1bb1725dab0136cf6f39890fa59c5c88393fcadb80aec8d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::question_view::build_single_option_lines (cognitive 28): xai_grok_pager::views::question_view::build_single_option_lines has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (21 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bc7baea439b2f466dfc515274c32b342f61a025c491da52e4f6b4ec90f4dbc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_help::filter_entries (cognitive 28): xai_grok_pager::views::shortcuts_help::filter_entries has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 7, match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"694c1fa0c722d2409ea969a13ad71654d87c8ffef893d78cb24732bbc2227098"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::parse_plain_command_from_node (cognitive 28): xai_grok_permission_rules::bash_command_splitting::parse_plain_command_from_node has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d9b0b3731e754141e2626d1d5dfa080db30b3d540cb9585c34c4a87f65b48d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::retry_unreachable_servers (cognitive 28): SessionActor::retry_unreachable_servers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (5 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f77ad750d8decf838dbce43ca03309811d04dd00710cadc782f22b5886d41e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_set_session_model (cognitive 28): SessionActor::handle_set_session_model has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"35066cec7b500315460f50f3d58bec69fcad83a52e496b2d718cd7a23a13306f"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_recap (cognitive 28): SessionActor::handle_recap has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (23 pts), match/switch 3, 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/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e377f174f27f3c9afb3298d9feb6ed56fcaa851f3456734a428aa900568cc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::skills::discover_auto_sources (cognitive 28): xai_grok_shell::extensions::skills::discover_auto_sources has cognitive complexity 28 (threshold 15). Drivers by points: loops 8 (15 pts), if/else 8 (11 pts), boolean chains 2 (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/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"655fae7142625e6cb5e4345b50c21d01e750e5c3d10071428f20a820267c9411"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::resolve_target_from_descriptors (cognitive 28): xai_grok_shell::leader::resolve_target_from_descriptors has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4c06dd0733124354d1cac676cd2522345b5c3ee3e78b9c2052867eab65c09c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::plugin::plan_install (cognitive 28): xai_grok_shell::plugin::plan_install has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 4 (8 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd43903b922e720c4bf3863a0481a9782b01b952f267cd470ef6bed829fa1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::batch_dream::run_batch (cognitive 28): xai_grok_shell::session::batch_dream::run_batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 4 (7 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/batch_dream.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9944f6872df77b14ff3ab0a5b43d7458266138eb391c8e5c8a0c2cb0376ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::computer::local::shell_state::shell_commands (cognitive 28): xai_grok_tools::computer::local::shell_state::shell_commands has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c42dc4718a7135bf0a988bc958855e861fbeaf0a796c124131528d314364575"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::edit::apply::apply_edits (cognitive 28): xai_grok_tools::implementations::grok_build_hashline::edit::apply::apply_edits has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (9 pts), loops 4, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/apply.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3347ab5acff2c328fa1bc3dbbcc4725a8845b9d5cac9776e4d70a4eb3e18c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::file_state::rewind_files (cognitive 28): xai_grok_workspace::session::file_state::rewind_files has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (4 pts), match/switch 2 (4 pts), boolean chains 3 (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/codegen/xai-grok-workspace/src/session/file_state.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"1263c1f79a8aa8b2b60df00631c39bef997c4e488e56da83f4d25ba3b783c13f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::server::handle_notification (cognitive 28): xai_computer_hub_sdk::server::handle_notification has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 3 (7 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a16f8b15439577f5660c77091daa1f3c446887cb2f82e722e65b9f85433daf"}},{"ruleId":"D2","level":"warning","message":{"text":"PtySession::start (cognitive 27): PtySession::start has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4, match/switch 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/session.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85ef5d5735754ebef1e1aaa792617871061b85b80309a5b1b9ee80cfa6770d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ptyctl::styled::extract_styled_line (cognitive 27): ptyctl::styled::extract_styled_line has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 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/codegen/ptyctl/src/styled.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5473bf4353b47af4acac496268e280f5641a69b5364a78fa779a479f80ad0f9e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::bin::worktree_lifecycle_bench::runtime::run_contained_command_impl (cognitive 27): xai_fast_worktree::bin::worktree_lifecycle_bench::runtime::run_contained_command_impl has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 6 (11 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0811fa706be3e958fee05a9779c4dfffccd58f7396d8c0dd7fa9eb6ff8e6c6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::git::worktree::remove_stale_worktree_registrations (cognitive 27): xai_fast_worktree::git::worktree::remove_stale_worktree_registrations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/worktree.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb21277f052d86461e42f702cce3841fda0479450f403a49b9467894723c124"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_image::jpeg_reaches_eoi (cognitive 27): xai_grok_image::jpeg_reaches_eoi has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (9 pts), match/switch 2 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-image/src/lib.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b6d237a12e868e4e7f2d90145a8a6a3675c4e8173619617a6aed0321a2be91"}},{"ruleId":"D2","level":"warning","message":{"text":"Canvas::to_lines (cognitive 27): Canvas::to_lines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f56d355badadbb709590c0445da1d10049f7277508cef65a2c661490f2aef1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex::environments::render_environment (cognitive 27): xai_grok_markdown::latex::environments::render_environment has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7822e4984cb1524625ca6c12c6e74d401331e335d4b5b45405de623fed40ad85"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamStore::persist_plan_as (cognitive 27): BatchDreamStore::persist_plan_as has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 6, match/switch 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc73138a9fa99eef724de5f04e829e07111b2a028f9e7701b0bfe6347fe2529"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_agent_action_with_registry (cognitive 27): AgentView::handle_agent_action_with_registry has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b19ace439dbc779eedacb5462a0ea9d97319ff0d36a099907c5f7e4ff1be842"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallBlock::start_timing (cognitive 27): ToolCallBlock::start_timing has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (26 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/mod.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f105fd96d3dfa24d822b9c2559468dd7bea1f026c3731a9cfbabed8db38bea1"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::finish_running_with_time (cognitive 27): ScrollbackState::finish_running_with_time has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 3, match/switch 1 (2 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/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"460f2719291f476d32296aced05ba8e1174d8c9cfa05c84209c3ae803ade10b2"}},{"ruleId":"D2","level":"warning","message":{"text":"TableGeometry::detect (cognitive 27): TableGeometry::detect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 3 (6 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/table_geometry.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0bf16d8d7d584c5409d4b670b875bbee7f83ea141f29be9a07b7cfaf015fb6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::mcp_cmd::run_list (cognitive 27): xai_grok_pager::mcp_cmd::run_list has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0ff436e16e08c68e0ee4a7b888536cb0493dcc9bacfe26c2991064b488707d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::notifications::title::write_item (cognitive 27): xai_grok_pager::notifications::title::write_item has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/notifications/title.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe962895c939124b2092a2a7af6741ca2e023a648dd916330038fd85e9fb1134"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::build_agent_list (cognitive 27): xai_grok_pager::views::agents_modal::build_agent_list has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 3 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 13). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf507e7e4079d478edb3fec8bb4c43e6cd6b9b8b7b20e206f3ceb255829c009"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::shell_access::shell_command_invocations (cognitive 27): xai_grok_permission_rules::shell_access::shell_command_invocations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (7 pts), loops 3 (6 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/shell_access.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98c2ec1908749a408c5fc421422d76f3a41925757f82ff7f03bdca028c1481e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::git_config::git_entries_in (cognitive 27): xai_grok_sandbox::command::git_config::git_entries_in has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 4 (10 pts), match/switch 1 (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf38b651d7eba4fce3ae39aa1f773c77095bb50ed5be29916ae3a4d2582046be"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::flush_v2_capture (cognitive 27): SessionActor::flush_v2_capture has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 6 (10 pts), boolean chains 3, 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/codegen/xai-grok-shell/src/session/acp_session_impl/memory_capture.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00965560ffba35bfcf24aa1f768d54a10fb37a851b3ab9454384148377f44bc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::reconcile_orphaned_subagents_with_backend (cognitive 27): xai_grok_shell::agent::subagent::reconcile_orphaned_subagents_with_backend has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ec0c0dbab65ea157daa187f2e1637564b3961cb3c93f3a01deee4897dbada8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::worktree::handle (cognitive 27): xai_grok_shell::extensions::worktree::handle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f1ed9ffbbfedc7ad789d9b1ab3b8bffb420a5e888608ca98a723658a32d77a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::reminders::format_workflow_completion_reminder (cognitive 27): xai_grok_shell::session::acp_session_impl::reminders::format_workflow_completion_reminder has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb82b6e8710a1cf4419b0e72a740ce8cfaa98e1926d38e5c86c62ac6a8bb914"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::persistence::cleanup_stale_sessions_inner (cognitive 27): xai_grok_shell::session::persistence::cleanup_stale_sessions_inner has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":3507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eacf4a5a79d0161d3827168a3d011ca6f4ed8318834dbb373f53d07d92af271"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::expire_timed_out_waiters (cognitive 27): LocalTerminalActor::expire_timed_out_waiters has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (9 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62547a876df811805c325ee449cca92a74eae239a9e911f96aa87c42ecb55e3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::skill::apply_substitutions (cognitive 27): xai_grok_tools::implementations::skills::skill::apply_substitutions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a88eacbc6e79d6d04f8515ab3f3b09d4c35db0ebb8e57373ebcefefceb0da5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceRpcHandler::dispatch (cognitive 27): WorkspaceRpcHandler::dispatch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 5 (11 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca693d93ee6cce2e034a547832bcf2d09caea086321b00074e2fb57c3d3dedb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::copy::standalone::rewrite_origin_fetch_in_config (cognitive 26): xai_fast_worktree::copy::standalone::rewrite_origin_fetch_in_config has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/standalone.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"255072de7e7fb3869844a4fdb9448a1b53a2a50f0f856cda7d1320d0c3026b47"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageClient::batch_upload (cognitive 26): StorageClient::batch_upload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab92e64bfc45b337b8613cbfd83bc725b1d537159f3fa5f84100b2314a7849d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_foreign_sessions::claude::first_prompt (cognitive 26): xai_grok_foreign_sessions::claude::first_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b403a36ad674ab007d12ecb1046f2b26b3fac89e98a4551dac6080d7e5e4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_gboom::engine::draw_text (cognitive 26): xai_grok_gboom::engine::draw_text has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 2 (10 pts), boolean chains 1 (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/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee0272ad2160443e51a16baa50a38fbbffedcfc7c9fa989414f9b916ee6c420"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiEmbeddingProvider::embed_batch (cognitive 26): ApiEmbeddingProvider::embed_batch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (7 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/embedding.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f38669bd760eb21c9630d257de0bfcb484883d564133d57f547f65b5d79c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::batch_dream_plan::reject_conflicts (cognitive 26): xai_grok_memory::batch_dream_plan::reject_conflicts has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 3 (11 pts), loops 5 (8 pts), if/else 1 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_plan.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc6015d5f974085c64f0b54878cad082bf64224c6508c8867a0d8aedd9d0553"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchToolCallBlock::output (cognitive 26): WebSearchToolCallBlock::output has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e54c60cc87370897ef4e91d5916c8ae973aaa60e6bb71041c6e7c09473776de"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::accept_slash_completion (cognitive 26): PromptWidget::accept_slash_completion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (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/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b678129abe291069180418a5fc6a6152d37deb67bb8f5055354dbf8fbdc4cd"}},{"ruleId":"D2","level":"warning","message":{"text":"QueuedPromptEntry::build_styled (cognitive 26): QueuedPromptEntry::build_styled has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"88934a1164bcac9836c1eb888c554159ed538c53106b8b65700fd34a30a05272"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsViewState::normalize (cognitive 26): WorkflowsViewState::normalize has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed0760367b21ae8431bf0a2377a334decf185ffddf08891176d3f6202eaf0a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_confirm_worktree (cognitive 26): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_confirm_worktree has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f1956cbf285d01a954808211c5bcf9e451fc52308b2ea3bd8b9148509db13f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_stop (cognitive 26): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_stop has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"be29f20e8ad9c99ea0bf118d90813c372fb531585d9a842be363a4e147f33d72"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::drain_startup_actions (cognitive 26): xai_grok_pager::app::dispatch::session::lifecycle::drain_startup_actions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"233ce8cbc0d52d7bcb077fa0ca71c31b82afa8a29b13d772024f7fc7cdf726a5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::dispatch_pick_session_in_worktree (cognitive 26): xai_grok_pager::app::dispatch::session::load::dispatch_pick_session_in_worktree has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (19 pts), match/switch 4 (6 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/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7d7bd9dd435e6296e47816d22d059f55b7f3874f5c444845f3ef76b52ecb4f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::handle_session_loaded (cognitive 26): xai_grok_pager::app::dispatch::session::load::handle_session_loaded has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f41cb2dccc4a42d7113229e9dbeb8958861f63b4e310326ee8806ce9f96835"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::pty_wrap::run_wrapped_command (cognitive 26): xai_grok_pager::pty_wrap::run_wrapped_command has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 3 (5 pts), loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/pty_wrap.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5541a13b472f3cca5b245a9834b1e9304e387c069ef7d673b710c4df101771c3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_rows_with_grouping (cognitive 26): xai_grok_pager::views::dashboard::render::render_rows_with_grouping has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (5 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9c0d6d95ab4dcc83247a958cb46a4ff332de28956a294337f8332ff0da60e7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_dispatch (cognitive 26): xai_grok_pager::views::dashboard::render::render_dispatch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25b869e5ab1dcf7ab5da51d971fb2d0f894dcfb90c1bee68d90eaeb317d830a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::welcome::render_session_picker_body (cognitive 26): xai_grok_pager::views::welcome::render_session_picker_body has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbd60a1ccac987fce6dedfbd1d25e30c456eeecea3926954e6c9d1d2238bceb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::image_overlay::render_image_overlay_inner (cognitive 26): xai_grok_pager_render::render::image_overlay::render_image_overlay_inner has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/image_overlay.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8097b7ad7383f639085c8cb0a701b1b7df335f38a4857f6697e8a72a9311fe8a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::deny::glob::expand_deny_globs (cognitive 26): xai_grok_sandbox::deny::glob::expand_deny_globs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"413516ee5f4d7252dc1931c12261d85f1e6fc5c197ded6d6b4b2075805f2c551"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotRefresher::refresh (cognitive 26): SnapshotRefresher::refresh has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts), match/switch 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_snapshot.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccb290888488d5a161eaf9f14a3e95d26136b867ce9877463b0fd6b3772b84a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRebuildSpec::build_agent_inner (cognitive 26): AgentRebuildSpec::build_agent_inner has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/agent_rebuild.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5122726ebad93e14694ab11677eaf47e5dd47e7d20a6977c4ef0a9af5df9377c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::model_providers::parse_model_providers (cognitive 26): xai_grok_shell::agent::model_providers::parse_model_providers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (8 pts), boolean chains 4, match/switch 1 (2 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/codegen/xai-grok-shell/src/agent/model_providers.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9343e3fd75da513e82be1ef45bbdb97d24941a9db6ee34e05359a383fb71fac6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::subagent::prompt_turn_receipt::drain_prompt_turn_receipts (cognitive 26): xai_grok_shell::agent::subagent::prompt_turn_receipt::drain_prompt_turn_receipts has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (8 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/prompt_turn_receipt.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b793f63d61150bbe1b43a1fc455bc09b479f2c9f6a839fb4de67bb94e9c316a1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::background_task::fit_background_tasks_update (cognitive 26): xai_grok_shell::extensions::background_task::fit_background_tasks_update has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/background_task.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b5991519534fe11d3e667d77b1d059fa97c3c78aa8bf0a65d3960b26c9a130"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::reminders::format_workflow_status_reminder (cognitive 26): xai_grok_shell::session::acp_session_impl::reminders::format_workflow_status_reminder has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac03cd2dd5f49e5ddc1e1f1123d9563b8be97f858cda62700e1cd0a03d8957e3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::relocation::load_candidates (cognitive 26): xai_grok_shell::session::storage::relocation::load_candidates has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 3 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37b281a55f5742d31ec527825fd1c4b40ae897ccb0e6334a379290fcee09fb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_telemetry::spans::instrumentation::generate_chrome_trace (cognitive 26): xai_grok_telemetry::spans::instrumentation::generate_chrome_trace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 5 (10 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/spans/instrumentation.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1c42f5024c1e9e9a88175601fe570e6397a906099cac9651407865d0808fda"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::apply_patch::apply::compute_replacements (cognitive 26): xai_grok_tools::implementations::codex::apply_patch::apply::compute_replacements has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/apply.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b609252a9b20eac6ffd4dc2275a67c78e3775bef079ccd5334573420e6006da"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::read_file::indentation::read_block (cognitive 26): xai_grok_tools::implementations::codex::read_file::indentation::read_block has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"65efd2748855def7d1c75035252df3e2168a27777e60a0917f809333883d7131"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::read_file::pdf::parse_page_range (cognitive 26): xai_grok_tools::implementations::read_file::pdf::parse_page_range has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/read_file/pdf.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc80dd03240eb504b74de3dfdafefcdd2c342fd10de23ff225ad329b6805f8f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRoutedToolHandler::handle_call (cognitive 26): SessionRoutedToolHandler::handle_call has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 9 (11 pts), if/else 8 (10 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f670b085c4b9662e416745893f1d53167481cb50f9b25ee614ca6bcfd1b857"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::handle_coalesced_batch (cognitive 26): HunkTrackerActor::handle_coalesced_batch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (6 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mod.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9672539c8668dd86942c4516857bf84d80a2419efb342a9cf908052ce9b085c0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_compaction::history::filter::split_prior_compaction_text (cognitive 26): xai_grok_compaction::history::filter::split_prior_compaction_text has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/history/filter.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee6e88883d7ecd105bc8bf715dbbfff3bf9b274569077d97765b0633858beff"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal::screen_content (cognitive 25): Terminal::screen_content has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/term.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e15283e1be1b706d3b3b52cab817a4dbecce96c1f03349a57d1d6ffb7f3029"}},{"ruleId":"D2","level":"warning","message":{"text":"ptyctl::styled::render_html (cognitive 25): ptyctl::styled::render_html has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/styled.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d596a31bbb42f4c854d9d0ef85ff21d0d1e63d3beaa0930361aae2fb48ca17cb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::api::cleanup_worktrees_in_with_delegate (cognitive 25): xai_fast_worktree::api::cleanup_worktrees_in_with_delegate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e67b6a5512e15660bbd0f1a59fc7514a0da1c1727f0737c7dc6429c4998689"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::mcp_servers::server_list::non_toml_definitions (cognitive 25): xai_grok_config::mcp_servers::server_list::non_toml_definitions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 2 (10 pts), match/switch 2 (9 pts), loops 3 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers/server_list.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a43b886a06ff083dbccfaddeb72616e5ef65b735b8aa1ee6adbf48f0bf5cbd7"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvVarRefIter::next (cognitive 25): EnvVarRefIter::next has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (10 pts), boolean chains 4 (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/codegen/xai-grok-hooks/src/env_expand.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a59beeda621be65d1bd3cd432944dffca8655a88e9e7637afc81a7c995a08a"}},{"ruleId":"D2","level":"warning","message":{"text":"MathBox::hcat_rows (cognitive 25): MathBox::hcat_rows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (7 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/codegen/xai-grok-markdown/src/latex/math_box.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f359bde117ba8b2fa1d798f2e167ac8e27f4af0d7ec8714a4edfdb61f98afc0c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_er (cognitive 25): xai_grok_markdown::mermaid::parse_er has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0b7ebca277fd9ceea492755f5d2bc006d3853e7cbd0c214f8ce07c304c88fd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::batch_dream_commit::validate_budgets (cognitive 25): xai_grok_memory::batch_dream_commit::validate_budgets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"213c9857fe0bd38781fce72cc12c85e066494fe2e767bf261579f0464c23d899"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::tick_drag_autoscroll (cognitive 25): AgentView::tick_drag_autoscroll has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6181a7dd5cf3bbab053f99ff2486293d0a36dd4f0b21612aed1fb7c44713921"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_scrollback_drag_motion (cognitive 25): AgentView::handle_scrollback_drag_motion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67b1d58361c096ce934717dd4e1bdfb88cd42a7ecd293923a15ce4af817f89"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackPane::render_tool_call_hover (cognitive 25): ScrollbackPane::render_tool_call_hover has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12f6e27ce50fe02e7d2fefdff920ba8d0c3b139715f63acf91a4c4f44344303"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackPane::render_with_sticky_headers (cognitive 25): ScrollbackPane::render_with_sticky_headers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8acf1c3ad7051374c40dfc1f1bf75a8dd46f55a9747fb0e75ed2f272190b4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::measure_window_exact (cognitive 25): ScrollbackState::measure_window_exact has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, 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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"471481dbbfcde47eaa479c2331a01ec589a0dc0b1fa5016122be7458f2790edc"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::patch_virtual_y_for_dirty (cognitive 25): ScrollbackState::patch_virtual_y_for_dirty has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76924dba9b57f4f81e9c5b4d1cb1aa8e7a0785d439086eaaeafb0606214c02c"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistry::apply_acp_commands (cognitive 25): CommandRegistry::apply_acp_commands has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/registry.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b0ef4934afc78f08aed8af03d31be6a069457c03bceb4c770f931a9b809d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolUsageStats::from_range (cognitive 25): ToolUsageStats::from_range has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/tool_usage.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"522c7c48daa471c6ff9f30b28c959924cc6c05cf54bac75ee876daeeb7607bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedbackModalState::handle_mouse (cognitive 25): FeedbackModalState::handle_mouse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"667778994798df8b76668c593815af7a7d25fba540fcf4ca2fd88e0d8444d6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::handle_file_search_key (cognitive 25): PromptWidget::handle_file_search_key has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cc4566c1854387f91814f6bde576fbfa03f3ea638ee949c8a28aef1957b5a9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::run_pending_mode_switch (cognitive 25): xai_grok_pager::app::event_loop::run_pending_mode_switch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f36bd6bb1740d8df9c9237110955f0f2577ca671067b8961e7155d3ad4637dc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::mode_switch::perform_screen_transition (cognitive 25): xai_grok_pager::app::mode_switch::perform_screen_transition has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 4 (8 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mode_switch.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"540aaa9cc47acf072bbc73edabf90940f713da3d6ce999efe038421dd6ebc088"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::render_diff_hunks_core (cognitive 25): xai_grok_pager::scrollback::blocks::tool::edit::render_diff_hunks_core has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"56829c3ad400afda61a2462a9252505118e0bb1008d0e05b7a799901d8ee0d31"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::trace_cmd::run_upload (cognitive 25): xai_grok_pager::trace_cmd::run_upload has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/trace_cmd.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f831a4a962474430dfc46f18524715b0434f91b7df056918d02b2654eda1e10"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::completion_dropdown::render_dropdown (cognitive 25): xai_grok_pager::views::completion_dropdown::render_dropdown has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"df101e0e0894de3c2d6012bea39a1eee1314a663a873320e42f66c8fc329dcd3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::render::render_location_picker (cognitive 25): xai_grok_pager::views::dashboard::render::render_location_picker has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4950fcc4f00f2ec3ae400c10e936f38532a164a1c8c817995eb50bfc005fef75"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::memory_modal::render_memory_modal (cognitive 25): xai_grok_pager::views::memory_modal::render_memory_modal has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"3622a899a200f8d529f2e378719af1f93fc9af5774bd22057d7145252176cc87"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::settings_modal::render::compute_filtered_row_heights (cognitive 25): xai_grok_pager::views::settings_modal::render::compute_filtered_row_heights has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45e7ab4e53bbf3370fec7ced66679b184cb4d9b35a0b0da6fe7b1b7cebf9e54"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::try_parse_word_only_commands_sequence (cognitive 25): xai_grok_permission_rules::bash_command_splitting::try_parse_word_only_commands_sequence has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5aeeeca96145dff4f51d79c22fb0f6c1842af198d42fe8b3c0ede37b287a58"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::resolution::resolve_claude_settings_inner (cognitive 25): xai_grok_permission_rules::resolution::resolve_claude_settings_inner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, 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/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa699ae97dfa2b815f7db718ba821c6e4f5f178b23da44b26f9856a053609b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::refresh_token_if_expired (cognitive 25): SessionActor::refresh_token_if_expired has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd549b7ad9361e9e1e619128d9b2ec852799919f4c73d6bb69cabae463fa0cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::first_turn_memory_reminder (cognitive 25): SessionActor::first_turn_memory_reminder has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ac0e2f7efe20513d4e022c6f59eaa074fd7f1158f92da3d9c1ff356626ccd6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::file_provider::list_ranked_entries (cognitive 25): xai_grok_shell::extensions::suggest::file_provider::list_ranked_entries has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 5 (9 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/file_provider.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b57809ea060cdfb2c2897d209686a2b3111978dabb162d7abb14f6a8bb5632"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::goal_classifier::run_verification_stage (cognitive 25): xai_grok_shell::session::goal_classifier::run_verification_stage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"04185318ef74eee93bbf3efe20063e997ce111a196b3ef0742f5d55ab6464eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_telemetry::sentry::before_send (cognitive 25): xai_grok_telemetry::sentry::before_send has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 6 (9 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/codegen/xai-grok-telemetry/src/sentry.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"78074228d11711ea7606d25c699dc1defc0e60c9fe6143670a94df30b53b6c10"}},{"ruleId":"D2","level":"warning","message":{"text":"LockInner::process_queue (cognitive 25): LockInner::process_queue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (20 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daee911b9ff2f1147bedb230a5609ba735345e327fe6e76f6e576e75bb8fcd7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::edit::apply::resolve_op (cognitive 25): xai_grok_tools::implementations::grok_build_hashline::edit::apply::resolve_op has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/apply.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"809d35e7f6860ec4aef3c20bd32fe519f1c4f741cda244e2cda3afa46d158049"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::recompute_hunks (cognitive 25): HunkTrackerActor::recompute_hunks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3, boolean chains 2, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/hunks.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaaa445774fc14b075628cc54657d2bc1c23f2f8509f134af329b2a8c2f19a3"}},{"ruleId":"D2","level":"warning","message":{"text":"HubConnection::connect (cognitive 25): HubConnection::connect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 6 (11 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64ae21a5b3e86d152e097d8c57375ff3b10b11cf2fcb6ef739a76e6a5f216d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHarness::start_tool_discovery (cognitive 25): ToolHarness::start_tool_discovery has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ea271e9d17e4ce9672ac5385e4875df119930510b263d724cad8b3f7d69ff5"}},{"ruleId":"D2","level":"warning","message":{"text":"ptyctl_cli::main (cognitive 24): ptyctl_cli::main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (6 pts), match/switch 3 (5 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl-cli/src/main.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"26993238bd6ef99e36e2717c994580758c2aa22c4c1c3eff0a4f15a167f68b6c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_crash_handler::handler::imp::write_crash_blob (cognitive 24): xai_crash_handler::handler::imp::write_crash_blob has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca493c9f0dd799c65db345f9158c7a99bc5fad84028fa9ec4cf88651b863e76"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::git::probe::run_with_timeout (cognitive 24): xai_fast_worktree::git::probe::run_with_timeout has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 2 (4 pts), loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/probe.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"df74dc74fe15e1ae9cc18a161dc3af039cbf772205e58fb55e279108b2a087f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Canvas::flip_horizontal (cognitive 24): Canvas::flip_horizontal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 6 (11 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0b8fd014f7312931a363e081c99007ff18debc686b5c48efbaf0e8f372ad4e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::dfs_dag (cognitive 24): xai_grok_markdown::mermaid::dfs_dag has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (23 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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3333}}}],"partialFingerprints":{"codehealthFindingId/v1":"99497136fd236106ecc93dc3719261026dc2dcf773aefdf5234b7a1f447e8643"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamStore::apply_planned (cognitive 24): BatchDreamStore::apply_planned has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4, boolean chains 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/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8ac851b1752b95070f3ed153ea474a5547376c22ed006ccd92a1eb9be757e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AcpUpdateTracker::handle_update (cognitive 24): AcpUpdateTracker::handle_update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaab485ff376d43591e74e9496c96b6e71de37db80a0c3fae034915a212af14"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::settle_visible_measurements (cognitive 24): ScrollbackState::settle_visible_measurements has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cb2328c50c715bdf0056f1ff472ce3ae4bb47fe62dcc79c6ad49352164554e"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedbackModalState::handle_key (cognitive 24): FeedbackModalState::handle_key has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 5 (6 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccbc8fd73dfeac80c49334184b3b9950630b90be4e28b586e510ea4b26d7757"}},{"ruleId":"D2","level":"warning","message":{"text":"QuoteAwareBreakPoints::next (cognitive 24): QuoteAwareBreakPoints::next has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"313e91e6c11a730a68460009f99c7ff312e3f19ef293be9dd3ca3daebf85d0c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortcutsBar::render (cognitive 24): ShortcutsBar::render has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2, 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/codegen/xai-grok-pager/src/views/shortcuts_bar.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"072519554b7f35f3cd356175ad628a42d25847b4ca00755e842091ad6ac2d0dd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::cta::handle_plugin_cta_mcps_loaded (cognitive 24): xai_grok_pager::app::dispatch::cta::handle_plugin_cta_mcps_loaded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/cta.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fb2fbe74a6c8d77edf820872ad96ef5cefb6cff51c3c28d249fdb7f502a0a6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch (cognitive 24): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32014e56e38581d5b117bdde2375ad2afd095fd265e0cc54a1355f3e3123c59"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_reorder (cognitive 24): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_reorder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 5 (12 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd7a697a7dea460da2a7d04212f30898d5d1798fae166b4b26bba49d779de4e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::mcp_cmd::run_set_enabled (cognitive 24): xai_grok_pager::mcp_cmd::run_set_enabled has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"546aee11d4c7d3c1aaf5f3d9321603228630fddcadae1fa8239ffec5f2ab3c2e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::render_selection_overlay_impl (cognitive 24): xai_grok_pager::scrollback::text_selection::render_selection_overlay_impl has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b97bf5638954619f7c39d0bfaf7d0e538d8bffd185075c5ba2f9834f5241d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::announcements::render_critical_rows (cognitive 24): xai_grok_pager::views::announcements::render_critical_rows has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/announcements.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"868cea97514dfc078a7ea2657f63045ed543461e6ebf4e1272a580eeb0bf0a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::layout::compute_layout_with_dispatch_inner (cognitive 24): xai_grok_pager::views::dashboard::layout::compute_layout_with_dispatch_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (24 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/layout.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fc1302dc7dd641a8cc958e055121662667e2e52235a1a8e7b65488e0f5c25b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::tab_complete_path (cognitive 24): xai_grok_pager::views::extensions_modal::tab_complete_path has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"e321642c620bf01cfdcba89b18669125a44235397574761f87168230ca4f98d9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::handle_modal_key (cognitive 24): xai_grok_pager::views::modal_window::handle_modal_key has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab9c7859df26ee3dcc68055588285735fc7ce1135a9e7c4adee81577bacf9e2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::handle_modal_mouse (cognitive 24): xai_grok_pager::views::modal_window::handle_modal_mouse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"695d531de5d53f2ef9afd40b233b740656daa5785a972fd33c3bc53732e2dba3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::question_view::build_freeform_line (cognitive 24): xai_grok_pager::views::question_view::build_freeform_line has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 6, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"134376974042373fa9dd9243d682fec0c4aeedcc17e5549aa34ae5f0c52407a8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::bidi::logical_slice_for_visual_cols (cognitive 24): xai_grok_pager_render::render::bidi::logical_slice_for_visual_cols has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a391df581d645ad4dca71d578ef30292cc1e08b8ce46f9402db16779a3a77b18"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::git_content_filters::read_local_git_config_entries (cognitive 24): xai_grok_permission_rules::git_content_filters::read_local_git_config_entries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 5 (7 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/git_content_filters.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"057e0aaf51063e369d6332ac1dd6fecd9f6e65a69d27905e4863d98c68b40f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::deny::apply_write_deny_paths_to_capability_set (cognitive 24): xai_grok_sandbox::deny::apply_write_deny_paths_to_capability_set has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/deny/mod.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c11f7447ed4638677b430d53ce7404cf6d89a9b9ea481cae82c9394c887293"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductSkillsCatalog::to_skill_infos (cognitive 24): ProductSkillsCatalog::to_skill_infos has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"270b8f2bae92b8953194161a13892fa6607e5169cdc2b1b9dd3abed6fbd457f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_session_mode (cognitive 24): SessionActor::handle_session_mode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_mode.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa32020f0da4977c873212f0f1097a07c09a674cf47617af2bfce72781afb328"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::app::run_headless (cognitive 24): xai_grok_shell::agent::app::run_headless has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, match/switch 2 (3 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44ae75205b547b5cd606be575ce3e4926fba192c67e8a7ab3706976b4d35723"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::update_chunk_merge::merge_meta (cognitive 24): xai_grok_shell::agent::update_chunk_merge::merge_meta has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/update_chunk_merge.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a89dabec78b81d4666778ba9bb4009974ea7dba02397ddd0fa4f650dbb7c0ad"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::mcp::build_mcp_catalog_with_gateway_tools (cognitive 24): xai_grok_shell::extensions::mcp::build_mcp_catalog_with_gateway_tools has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (7 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8487716d4ee366abb5d13d798a340968b1483bef48a9700702e792082fa5652"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::remote::sync::sync_task (cognitive 24): xai_grok_shell::remote::sync::sync_task has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (21 pts), 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/codegen/xai-grok-shell/src/remote/sync.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca599ff93291a8e9703d9e30a3abcb365a35db94ae0caae0cc9b2df6ab8be8e4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::mcp_descriptors::materialize_descriptors_for_gateway_tools (cognitive 24): xai_grok_shell::session::mcp_descriptors::materialize_descriptors_for_gateway_tools has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/mcp_descriptors.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd393bce815266c8453985e06947d7a4e376a7d8fdab871bb884586dd63c463c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::merge::fetch_lanes (cognitive 24): xai_grok_shell::session::merge::fetch_lanes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 2 (3 pts), loops 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/codegen/xai-grok-shell/src/session/merge.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c3243a8ddc1de701f533979134c2d3e400fd243f839fdc39f88ef4e39d18e3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::workflow::request_service::spawn_request_service (cognitive 24): xai_grok_shell::session::workflow::request_service::spawn_request_service has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 6 (14 pts), if/else 4 (9 pts), loops 1 (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/request_service.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab9a0c7a08bcea703f04fbaff5762f3a0d63c8d1ce458408cff5f5c66510223"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell_terminal::exit_watcher::watch_for_exit (cognitive 24): xai_grok_shell_terminal::exit_watcher::watch_for_exit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 5 (11 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/exit_watcher.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c05dc51887e9a648483211e65f1784fda615389c45ef3b8519b275e595e3dae"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell_terminal::streaming_local_terminal::run_output_collector (cognitive 24): xai_grok_shell_terminal::streaming_local_terminal::run_output_collector has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 3 (10 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"926161d8d894d2700883168df1992927588ad16ec775ef3b4dc5aed924216474"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalOtelConfig::resolve_with (cognitive 24): ExternalOtelConfig::resolve_with has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 11 (14 pts), if/else 5 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/config.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e19dfaf2e86cfa643e97283e491e3cbef1b686836df8b755ab66dfe410bb97"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::mutate::apply_mutation (cognitive 24): xai_grok_tools::implementations::grok_build_hashline::mutate::apply_mutation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/mutate.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0a2370b1c0d699e318f37b933bf2f57dfb8b43f0ad0bf0a0ba7c84bfd4ced3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::get_single_file (cognitive 24): WorkspaceHandle::get_single_file has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 4 (8 pts), boolean chains 4 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74bbc4fb76211411132dfc97da1c9f35fe5286b82f372079e4483e527e4adb8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::path_virtualization::rewrite_chat_completion_output (cognitive 24): xai_grok_workspace::path_virtualization::rewrite_chat_completion_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/path_virtualization.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3e0508e93921a2028280184de9ed9c868d9513f0ada8a802e27a1ddc774b09"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_compaction::code_compaction::sample::sample_summary_with_retries (cognitive 24): xai_grok_compaction::code_compaction::sample::sample_summary_with_retries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/code_compaction/sample.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbbe7e4f3fb003922ac5b4538902d27373efb69720ba6398365c47864d74d60"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_codebase_graph::manager::builder::extract_symbols_fast_inline (cognitive 23): xai_codebase_graph::manager::builder::extract_symbols_fast_inline has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/manager/builder.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad637474d1d4c40ccdfcddfdedfefb08bce092cd2952c15bc9e9664f8727aeff"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_codebase_graph::scope_graph::graph::extract_symbols_fast (cognitive 23): xai_codebase_graph::scope_graph::graph::extract_symbols_fast has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc341cf375001c9f4567ed52e75886f5b818a367cee5e41d19ea97164c9b9852"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_compaction_transcript::compute_turn_stats (cognitive 23): xai_compaction_transcript::compute_turn_stats has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (8 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-compaction-transcript/src/lib.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2eb43d92826e8c3b430f21a5e823fb6c82d1ba4b319b58d8b657e00c0c89aa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::copy::engine::copy_parallel (cognitive 23): xai_fast_worktree::copy::engine::copy_parallel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, match/switch 5, loops 3 (4 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/engine.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"430958aa647127808d71acbc3b540c114af136c123c7aec0e324155c42fd8f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::git::safety::reachability::collect_reflog_tips (cognitive 23): xai_fast_worktree::git::safety::reachability::collect_reflog_tips has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/reachability.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"501f3efab5325d44bbf31e04b78147bc9f26bdcfc27b677013653dcfd6d4cdfe"}},{"ruleId":"D2","level":"warning","message":{"text":"GitignoreCache::is_ignored (cognitive 23): GitignoreCache::is_ignored has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/vcs.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f099ed65519cfcabd2aa327a8434a6fca466080a846322be6d5ba0a197a1fc89"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginRegistry::from_discovered (cognitive 23): PluginRegistry::from_discovered has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (7 pts), loops 2 (4 pts) (nesting depth added 5). 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/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"371fca6277f35b435839a45ea4c80e77e5b1bdfbcb924c748afac88ebd7b9a07"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_statement (cognitive 23): xai_grok_markdown::mermaid::parse_statement has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3723b40680fb8db3c158bb11d9909e29d0ae4c7cd5a340b2bb2eb664274507c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_state (cognitive 23): xai_grok_markdown::mermaid::parse_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (5 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"82308a97bcfc9c7e79d2097d6af19e2ff2538399e40b2f9dae4a5dd61028ef64"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::compute_ranks (cognitive 23): xai_grok_markdown::mermaid::compute_ranks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (5 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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd4165ab10ddf015a24f8e4f10b07943075618366c7f8ea1ebd0fbe5dc76edf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_mcp::servers::start_mcp_server (cognitive 23): xai_grok_mcp::servers::start_mcp_server has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4830}}}],"partialFingerprints":{"codehealthFindingId/v1":"e675ea83ae4b4432fb04e665bcb5165c9e6ce902984ad32ac75e07c4bc3a3619"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::show_toast (cognitive 23): AppView::show_toast has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 1, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df0d20c5f43e8af72df896eaffb43e06d730267abac07ed7c30d9aadbfb2bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionEvent::message (cognitive 23): SessionEvent::message has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 3 (5 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/session_event.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1093fd1accd3c0fe016a04a1d5f894311daa1dade6f36c4cb393434bd06bfc7"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchToolCallBlock::header_line (cognitive 23): SearchToolCallBlock::header_line has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"614ec8ff8a77e74775c33c1aea65cbf5baf11845fe333940b18f79842adf0f2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackPane::render_sticky_header (cognitive 23): ScrollbackPane::render_sticky_header has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a55e5bab08c115d9ce35a7c8553adff3bd3a495a4aa8425b59bf456fef4a44d"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_input_with_paste_provenance (cognitive 23): DashboardState::handle_input_with_paste_provenance has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae069d765d10befc90714c2d9f9c4eb56dcb8903907783728d033347f3f429"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestionViewState::build_accepted_response (cognitive 23): QuestionViewState::build_accepted_response has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f0768c7befac83ef9d2a63e8aa543f0b201128e121e62a210e898bd1af940f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::background::handle_task_backgrounded (cognitive 23): xai_grok_pager::app::acp_handler::background::handle_task_backgrounded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), match/switch 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4456cda84ff118654d4972c1055b0b79617774249f89ec694a7b6424abd7b100"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::interactions::handle_exit_plan_mode (cognitive 23): xai_grok_pager::app::acp_handler::interactions::handle_exit_plan_mode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"458a59b4d7d4e3efeab11b6f05e2c61cef6e3113cac1bc81649b0b2f20177374"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::handle_child_session_notification (cognitive 23): xai_grok_pager::app::acp_handler::session_notification::handle_child_session_notification has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce81640078034cc1f19d62f252a72843a138bb68054823cc9636dddf68c1d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_peek_reply (cognitive 23): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_peek_reply has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc84ca602735cc145e28bbad193be9e554a99e01291f19d9179a2a42c299ecd9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::peek::extract_last_response_type (cognitive 23): xai_grok_pager::views::dashboard::peek::extract_last_response_type has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb0aad3f2a86cf2390a6d5229a477c3aae3f06016d5d4c6b6e723bf07be14df"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal::filter_palette_entries (cognitive 23): xai_grok_pager::views::modal::filter_palette_entries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2884e737ea7639e27e8613a4e7bffab224ec629c713a62c310b288475c1292d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::render_modal_window (cognitive 23): xai_grok_pager::views::modal_window::render_modal_window has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9cad5d2412c416566de2103ec241b2bc4a46773792de511088b22bd31391ca"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::privacy_banner::render (cognitive 23): xai_grok_pager::views::privacy_banner::render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/privacy_banner.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd5f8ed1331b0436fc9d6e46081a5f8d58ec380330e36ab5f8db65ac152da42"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::question_view::build_flat_option_lines (cognitive 23): xai_grok_pager::views::question_view::build_flat_option_lines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts), match/switch 2 (4 pts), boolean chains 3 (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/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"38553969d238877dc30447ab1480e43bebe72765e810ce6865366a4b0d7d6cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::session_picker::build_session_entry_data (cognitive 23): xai_grok_pager::views::session_picker::build_session_entry_data has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/session_picker.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6d4a8b2ecebc0ad3bd72db053c6b2d465098dc89385b971d102ee89b68eb84"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::strip_exec_prefix (cognitive 23): xai_grok_permission_rules::bash_command_splitting::strip_exec_prefix has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"b174c9b34b9cecef1cec7e0c0751e5ef51eb077be4f3eca772d9fb1d3aa728ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::handle_completion (cognitive 23): SessionActor::handle_completion has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13e76725380c9ca6f15026998238b6198bd11b9aea6de2a5adc37a459467a3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::execute_v2_dream (cognitive 23): SessionActor::execute_v2_dream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, match/switch 9 (11 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0e3e01441d39478b50058f72fbee20d8c124a971249879f29e3c23902bb42b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::hunk_tracker::handle (cognitive 23): xai_grok_shell::extensions::hunk_tracker::handle has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 10 (14 pts), if/else 3 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea182245d196a1d63a2f383e6a15fda3259a68f584a346e9410ce5323d9758a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::feedback_manager::submit_feedback_workflow (cognitive 23): xai_grok_shell::session::feedback_manager::submit_feedback_workflow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/feedback_manager.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f560a7328f7c94f818a30208b8055ade9ef0f7904e5ca0af3997bdc519de9c04"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::handle_kill (cognitive 23): LocalTerminalActor::handle_kill has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b2250dc344ad1a19aa281bbb1a66535916d8ce06cbd6e5107812f91daca2f1"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::handle_command (cognitive 23): SubagentCoordinator::handle_command has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb83d9abe0882521af63dddc0558acd2294dca2ab21d15b9dfd0c775c2d8d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"DomainMatcher::new (cognitive 23): DomainMatcher::new has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/domain.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b63bc5a69cae4176ca980b882d6fe25cc367c0843b1a15b497811823e5f677"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::registry::types::explain_requirement_failure (cognitive 23): xai_grok_tools::registry::types::explain_requirement_failure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eeb029306e3bfa0f04412f2bff6cd464cf88d01955de07afdf6c250eeb81c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::command_display::take_path_token (cognitive 23): xai_grok_tools::util::command_display::take_path_token has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/command_display.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bc4e855bb33746e30a66bdaec72a4c2774fa5941d75ca8814eff6f5445c911"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::bash_grant_pre_decision (cognitive 23): xai_grok_workspace::permission::grants::bash_grant_pre_decision has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b15ce4bad49fd819df4c375152a777f91efc29a29f4eee5e42e5fef95053db"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::refresh_git_dirty_cache (cognitive 23): HunkTrackerActor::refresh_git_dirty_cache has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 3 (4 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a97363f80186bea99ac6dac4d0f5bb7ba93f9b316e51209b3d4a414f35eb835"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_tool_runtime::render::extract_content_blocks (cognitive 23): xai_tool_runtime::render::extract_content_blocks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-runtime/src/render.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbca602201d72105ee9d51bdf6c393f632c5aabefb279a5a5c0d50d5c3257ded"}},{"ruleId":"D2","level":"warning","message":{"text":"postinstall.installBinary (cognitive 23): postinstall.installBinary has cognitive complexity 23 (threshold 15). Drivers by points: error handling 7 (18 pts), if/else 4, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/npm/grok/bin/postinstall.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7251ed8db5432e98847a43ee99219af6c061d36b9c5cc94881ef871c6007f543"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::marketplace::installed_plugin_keys (cognitive 22): xai_grok_agent::plugins::marketplace::installed_plugin_keys has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/marketplace.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d3f3400574a270ec62d91e89de854898b15d3506635103f4fc0eaf192c18ba"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_external_agent_migration::hooks_cla::extract_hooks_from_settings_file (cognitive 22): xai_grok_external_agent_migration::hooks_cla::extract_hooks_from_settings_file has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 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/codegen/xai-grok-external-agent-migration/src/hooks_cla.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a44c038afea868245e290b262560bc2167ed97ca9e4046087fd96b307761b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthManager::start_proactive_refresh (cognitive 22): AuthManager::start_proactive_refresh has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"852a489a86a86581a2656fcc9375e77ed7427c5059e171a6f86adc6a49c62c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Canvas::blit (cognitive 22): Canvas::blit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd269fc6faa69cfa6b514a254145d351215189a54ed2727e851b2a5d0fdfc67"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamSession::search (cognitive 22): BatchDreamSession::search has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_session.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"010a4f2f5c92895f3ac846277a5d9f408f7426369ad88f4d78c74ee3a418a6d9"}},{"ruleId":"D2","level":"warning","message":{"text":"AcpUpdateTracker::handle_tool_call (cognitive 22): AcpUpdateTracker::handle_tool_call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc1c20bb0953988688f1cb61044ea9aa3efc5b9c4bb3cb5879d040792b25863"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::draw_plugin_cta (cognitive 22): AgentView::draw_plugin_cta has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 4 (5 pts), boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/cta.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef374852c4ee96fb09041336a931b3db6ce2a8beb670ccc88d8b0401867f3e1c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::approve_plan (cognitive 22): AgentView::approve_plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2, 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/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74bb647d6dd94079c09d7392f332337b362b160f708d30aa8fcad5d8865706a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecuteToolCallBlock::header_lines (cognitive 22): ExecuteToolCallBlock::header_lines has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 4 (7 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8813b748d6a00ea2870af2f76ce9e64fd8b1b21894026717c10d07e11c8a2e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"SentMessageToolCallBlock::output (cognitive 22): SentMessageToolCallBlock::output has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/sent_message.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb924150af5e5ce4cca0c470cd681ce39ff6a501af24c89001d50d9411e915d4"}},{"ruleId":"D2","level":"warning","message":{"text":"WebFetchToolCallBlock::output (cognitive 22): WebFetchToolCallBlock::output has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8246e9b2c4888bead37f10b839e2f4ab8f9ac1250eae5814032ec696a4be51"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::modes::set_yolo_mode_inner (cognitive 22): xai_grok_pager::app::dispatch::modes::set_yolo_mode_inner has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0b1c62c9669ed650a9f3570290ad682730b05671454243ab43b4065435a1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::load::dispatch_cycle_session_source_filter (cognitive 22): xai_grok_pager::app::dispatch::session::load::dispatch_cycle_session_source_filter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"e502a639d49cf308cac61174d6ff254e7af4d58cc751b08317c293749d3ce411"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::task_result::drain_clipboard_target (cognitive 22): xai_grok_pager::app::dispatch::task_result::drain_clipboard_target has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d60743dc088533cb9b06a445827c54396266f6ca852ba508dfa3bc5c113fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::plugin_cmd::marketplace_update_with_cache_root (cognitive 22): xai_grok_pager::plugin_cmd::marketplace_update_with_cache_root has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 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/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0c8cd999e22194d8e0c1219112f395cc0f0555bf70f428d906d60c846e99e1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::assemble_diff_line_outputs (cognitive 22): xai_grok_pager::scrollback::blocks::tool::edit::assemble_diff_line_outputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (4 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"69530d837fae06837d122dacb1b97a806795f8dd3a78e738e74fac4fa2663cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::table_geometry::parse_border_row (cognitive 22): xai_grok_pager::scrollback::table_geometry::parse_border_row has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/table_geometry.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bf787a1c307310284ca901258261cfd95eae13c1d675528ff54918f5bb16c1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::slash::analyze_input (cognitive 22): xai_grok_pager::slash::analyze_input has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), match/switch 1 (3 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/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d29c4465d2bb7c553b749a8d1fc410185d256e34c6a29ea2ebdd34c810b5ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::goal_detail::goal_detail_area (cognitive 22): xai_grok_pager::views::goal_detail::goal_detail_area has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15c0e4b3122f6f747f2da7dd6d2b670da1cfee9ee4f6b430d46252d42c7ee38"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::shortcuts_bar::bar_key_segments (cognitive 22): xai_grok_pager::views::shortcuts_bar::bar_key_segments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/shortcuts_bar.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238867e1278d8d30c50c06756f25dccbb2157201e83b4869ca7de32f5f2af97"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::slash_dropdown::build_flat_lines (cognitive 22): xai_grok_pager::views::slash_dropdown::build_flat_lines has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"09adde25184661f3fd770fa0f39dfc09610820781ba4220e2d3968a9ac8781ea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::slash_dropdown::render_dropdown (cognitive 22): xai_grok_pager::views::slash_dropdown::render_dropdown has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"008b0b015531af0663695428eead84d82b956204c6eb827ba52e0c8f2981ac55"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::live::render_prompt_info (cognitive 22): xai_grok_pager_minimal::live::render_prompt_info has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4fe64278b7c080cf66814c643f3d6ec800c7b326d80337c5dd75a9d0016dca"}},{"ruleId":"D2","level":"warning","message":{"text":"Theme::ansi16_chrome_overrides (cognitive 22): Theme::ansi16_chrome_overrides has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22. 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/codegen/xai-grok-pager-render/src/theme/mod.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d407be92ae712e659dd4663c54add2e0f2d5bc4ee750f97d15956196ce88477"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::exec_risk::git_effective_cwd (cognitive 22): xai_grok_permission_rules::exec_risk::git_effective_cwd has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/exec_risk.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"94382dba5b42911397b3aa7107e6ccacfdad55a384c9e918006506be87259a08"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::git_config::present_matches (cognitive 22): xai_grok_sandbox::command::git_config::present_matches has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"29304aca1e5d5d0c66e2e01e76105f73947795b8d216c75d7e5ac1bb2c7f70df"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::run_init_pass (cognitive 22): SessionActor::run_init_pass has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, loops 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70df8dee76a2411914375cca775bfdbc453a1b09111954c0ab8243f74fe90d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::send_update_full (cognitive 22): SessionActor::send_update_full has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (2 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/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae297175505f27ee768167cc4ed330e07c7b0d681851f45bcef41a3f2992588"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::config::apply_sandbox (cognitive 22): xai_grok_shell::config::apply_sandbox has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca54a83edc62960a2e6ba1765eb765838156b4e7665e11eee75c8637ddcd9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::mcp::build_mcp_status (cognitive 22): xai_grok_shell::extensions::mcp::build_mcp_status has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9771fea7765984dfc7a012f130860481522f66b277566a68fec74466103181e9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::session_search::walk_admitted_window (cognitive 22): xai_grok_shell::extensions::session_search::walk_admitted_window has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_search.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"768efb685d5a4c74449c22acc73a163c84807839f4c01c35dca13343a935f7ea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::merge::merge (cognitive 22): xai_grok_shell::session::merge::merge has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 3 (7 pts), loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/merge.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7f33d57cba4cb1ba5f3f22880a5a8644dc92ceaa6a301bfe7f39076399bf4e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::persistence::collect_session_files_recursive_with_artifacts (cognitive 22): xai_grok_shell::session::persistence::collect_session_files_recursive_with_artifacts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebc3415aebbc32ce35344c9f84c41b8866b527af5e3317608e2ab28f22a90c9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::jsonl::copy::for_each_jsonl_line_capped (cognitive 22): xai_grok_shell::session::storage::jsonl::copy::for_each_jsonl_line_capped has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5e0267c869f581b1b57e3e3039b9b3286365e74fb437f7adf9cf7de316e6bd"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::collect_shell_state_dumps (cognitive 22): LocalTerminalActor::collect_shell_state_dumps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2669b4f2715583dbe0f21f673f603bb48f479dd3e139ae783ce7af3cb4e487e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::apply_patch::parser::parse_one_hunk (cognitive 22): xai_grok_tools::implementations::codex::apply_patch::parser::parse_one_hunk has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 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/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c6080366f3d500cfbacaf7c0620237e2bfcacc2d5b71f1045864f8c96ce329"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::search_tool::build_delta_reminder (cognitive 22): xai_grok_tools::implementations::search_tool::build_delta_reminder has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27b895884972c8942a3d527c5631c16238a0792acfdee1185c83bce08a657f5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::web_search::client::extract_citations (cognitive 22): xai_grok_tools::implementations::web_search::client::extract_citations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb26a7bd9be01b982cd18531a3736add820d97ea548836637bf3ee18111047b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::sandbox_gate::decide (cognitive 22): xai_grok_workspace::permission::sandbox_gate::decide has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_gate.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad02c7cb6fdb9d20d8bbe72f50334f02cf2b5c452740742cbe38c46f7bcd0f8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::recovery::run_startup_recovery (cognitive 22): xai_grok_workspace::recovery::run_startup_recovery has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 5 (10 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/recovery.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2252fde84c15b6306442c52480e354ccc6b1422092160d1273e95096b8c33d1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::worktree::create_worktree_from_worktree_streaming (cognitive 22): xai_grok_workspace::worktree::create_worktree_from_worktree_streaming has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (18 pts), match/switch 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"b855ef3a4b1ea64e58616373969869a74c7e5d770591254b4aedad25e6b834ee"}},{"ruleId":"D2","level":"warning","message":{"text":"TextArea::display_width_of_range (cognitive 22): TextArea::display_width_of_range has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97cdb2b181bb08b0ff6702d57be6e3f9f74127c9955345df3e436a8d63c3e72"}},{"ruleId":"D2","level":"warning","message":{"text":"Journal::load (cognitive 22): Journal::load has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-workflow/src/journal.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61d95ec0cb20f293d1c1686705bf342766b4ac3242c860d0b7d7f32f05899bb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::connection::run_reader_phase (cognitive 22): xai_computer_hub_sdk::connection::run_reader_phase has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 1 (6 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c24f3f483218339fc1835b2e39d11590b1f4412c34070109ed009cbd056012"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::remove_file (cognitive 21): ScopeGraphIndex::remove_file has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8642829ac9d50412371facb401ad4b82f981ec67142a2a4baba5391277a506e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::read_from (cognitive 21): ScopeGraphIndex::read_from has cognitive complexity 21 (threshold 15). Drivers by points: loops 11 (15 pts), if/else 4, match/switch 1 (2 pts) (nesting depth added 5). 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/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1545e4310c884efbdb16b0d0a41a6added90c88b2865f92ac39d06f63682f3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::auto_gc::maybe_auto_gc (cognitive 21): xai_fast_worktree::auto_gc::maybe_auto_gc has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, match/switch 4 (6 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/auto_gc.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a302ecf016073dd34d94d179ba27f463c0459e445ca4edaa2b6bcef5fe7810"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::overlay::snapshot::try_remove_from_metadata (cognitive 21): xai_fast_worktree::overlay::snapshot::try_remove_from_metadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9535f66e087b5ac14e8f9c6aa15371f74360c3f098be2062bcbb49121d54d9b8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fsnotify::install::add_subtree_watches (cognitive 21): xai_fsnotify::install::add_subtree_watches has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 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/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"088b1623b1d09f1d3a9f8d060b8838c6a76a297e4bfeca783a1cb711128130e5"}},{"ruleId":"D2","level":"warning","message":{"text":"FuzzyFileMatcher::get_top_k (cognitive 21): FuzzyFileMatcher::get_top_k has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fuzzy-file-search/src/lib.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc58f0250b732660bd1dcc16fb957a80515c7218207a2e46e34e56267e4b47ba"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::discovery::plugin_agents (cognitive 21): xai_grok_agent::discovery::plugin_agents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 pts), match/switch 1 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/discovery.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d4efe6c03e325ac5517540b7b454e0092d4876af7937550b925990f9a60636"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::git_install::discover_plugins_in_dir (cognitive 21): xai_grok_agent::plugins::git_install::discover_plugins_in_dir has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e6d33663ca4abc07334706f29ff14c972777926a2fd2676b7ba256596dd7ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::marketplace::resolve_known_marketplaces_in (cognitive 21): xai_grok_agent::plugins::marketplace::resolve_known_marketplaces_in has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (6 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/marketplace.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50d052c4f447088ab76ecfe12be709ec5e4b61c6ddcbaec49c0ffa8bb346385"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::prompt::user_message::format_rules_section (cognitive 21): xai_grok_agent::prompt::user_message::format_rules_section has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/user_message.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbf3433f895939c263e700b6e452455bf5fe60658e52b5737ab111635cb1a20"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::loader::hook_config_layers_at (cognitive 21): xai_grok_config::loader::hook_config_layers_at has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/loader.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff76ccb5acd686aa3467f9c5c4102e311caa5ad134f6c9455f309880190aaf21"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_hooks::runner::http::is_blocked_ip (cognitive 21): xai_grok_hooks::runner::http::is_blocked_ip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/http.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a5dafc0f21df40ef6e1121b8df8f79ab1c715d8446d481c7a6eb8410a2012f"}},{"ruleId":"D2","level":"warning","message":{"text":"RegistrationStore::load_sync (cognitive 21): RegistrationStore::load_sync has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 4 (8 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-lifecycle/src/persist.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba7ed03c0459e8d0c241df09726ca53f2c8995d1c89d9ee81f1083b6ab5bc49"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_login::oidc::login::run_login_flow_with_config (cognitive 21): xai_grok_login::oidc::login::run_login_flow_with_config has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/oidc/login.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1265505dd227a0478b3e05a2079c8cdc6d96ff209e453921633db967fec1fd14"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_login::oidc::refresh::oidc_token_exchange (cognitive 21): xai_grok_login::oidc::refresh::oidc_token_exchange has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/oidc/refresh.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5544e771ece79087adc1187dd837cb6b6f809512802e368b7008a84357426461"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::wrap_cell_text_joins (cognitive 21): MarkdownParser::wrap_cell_text_joins has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b78521df4ee2105a2462d4999b6e272008711000cac415e252ce17f557b77"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::render_grouped (cognitive 21): xai_grok_markdown::mermaid::render_grouped has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 5, boolean chains 4, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"9156d5e687f1b563cc57fd688279e2e4ba5afe3dccf20d50c0a4f1c65e24e83b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::build_scope (cognitive 21): xai_grok_markdown::mermaid::build_scope has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5726ed633cb8c7b948bd7f1fd7e60ea455b6ac229ea665156a53141fc07836bf"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_elicitation_mouse (cognitive 21): AgentView::handle_elicitation_mouse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/elicitation.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e887f51ab2416c7e6ffe9fd50edae110241962efbf178a4877b9f9055d13d70c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::paint_diagram_affordances (cognitive 21): AgentView::paint_diagram_affordances has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/media.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dee909638c61adc45982cf7e2e90eca3613c9f1fc0b9d8d19592dafc4c59f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModalInput::handle_key (cognitive 21): ModalInput::handle_key has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c959327287b5900741c17c2945acb9aedc7061028f8202f276d069d3e108e81"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::handle_session_created (cognitive 21): xai_grok_pager::app::dispatch::session::lifecycle::handle_session_created has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4 (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/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9724277fad2dbc9bda737110a8a1c8557c7e8db5d059811c30975fb6802b3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::status_blocks::tasks_block_text (cognitive 21): xai_grok_pager::app::status_blocks::tasks_block_text has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (5 pts), loops 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/status_blocks.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eaef5db5924a67771fb194c1229acf87c380e82619320e5b434ca0ce8d5a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::state::groups::project_verb_run (cognitive 21): xai_grok_pager::scrollback::state::groups::project_verb_run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/groups.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f079c57c9bd33cc0b5ef5cffb7dda063ac7d5ee1e7ec1664524da08cd0261320"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::slash::scan_inline_slash_tokens (cognitive 21): xai_grok_pager::slash::scan_inline_slash_tokens has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c9ac2708c4f6f502f8aa6037a705cf4f1a6ba55c6913e04948ee6d0685d8da"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dock::layout::normalize_no_lone_rows (cognitive 21): xai_grok_pager::views::dock::layout::normalize_no_lone_rows has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/layout.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"18142e860d21ffa2582dc7cbf8636522d6284852c10e68bccc7221fcdb5e633a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::classify_hook_source (cognitive 21): xai_grok_pager::views::extensions_modal::classify_hook_source has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a08ee831807025783d1054780aedb9e805359c387ae68e9d8f10a25820dceff"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal::render_cancel_turn_panel (cognitive 21): xai_grok_pager::views::modal::render_cancel_turn_panel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"5109fedb2b8aeedc9601c317b45d48b157d8aa7498d104fbccfb4c215e42ed43"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::tutorial::handle_topic_input (cognitive 21): xai_grok_pager::views::tutorial::handle_topic_input has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 4 (8 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tutorial.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"082374ab2f3e6224a800de36d206e3de52c92a4cfe11d165f2ab51fc3e776866"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollConfig::from_terminal_context (cognitive 21): ScrollConfig::from_terminal_context has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, match/switch 2 (4 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/mouse.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"262b435481e62b6f34a310a184df5475a272905904045c4feacc8706adcf32b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_plugin_marketplace::installer::update_from_marketplace_entry_transactional (cognitive 21): xai_grok_plugin_marketplace::installer::update_from_marketplace_entry_transactional has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"41208d69f37b1aacba1f565fcbc2a42710ef0aaf9eaecaee8f02eacab88fbfd9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_plugin_marketplace::installer::discover_plugins_in_dir (cognitive 21): xai_grok_plugin_marketplace::installer::discover_plugins_in_dir has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd807ba0131b888d569704a2d37d1556179d5da071134376a19d093b70976975"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_plugin_marketplace::scanner::scan_marketplace (cognitive 21): xai_grok_plugin_marketplace::scanner::scan_marketplace has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 3 (7 pts), loops 1 (2 pts) (nesting depth added 13). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acdc642b76e1690b39881ff452d028b336cee34b277e3db5a7597f913609ade"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxPolicy::apply_grant_under (cognitive 21): SandboxPolicy::apply_grant_under has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/policy/apply.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd5cd226842545d859ab26011b8b4147182260d87a0da8ac6bdaa4bd611f93e"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectiveAllowlist::apply_selectability (cognitive 21): EffectiveAllowlist::apply_selectability has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/remote_config/resolution.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ba58c4e1993f5f4e770c05030bde2faf69859ba43ecbbae6795a23b77dad0e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::server::run_client_session (cognitive 21): xai_grok_shell::leader::server::run_client_session has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 3 (8 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0731725924de600d1e61d73fcac37a2a9a432e70bb30d29dbcf7ee082e5f39d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::fs_watch::spawn (cognitive 21): xai_grok_shell::session::fs_watch::spawn has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 6 (14 pts), loops 2 (5 pts), boolean chains 1, if/else 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd77f998f0f6192697086d4fa04a27cbb0d9510fe6ee24caad6c35676e35c554"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::prompt_parser::collect_file_references (cognitive 21): xai_grok_shell::session::prompt_parser::collect_file_references has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/prompt_parser.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd91fa3f7e3dfc9ea2e5d323d94779841b4666251a320b2b7e382164aa13cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::tool_index::split_identifier (cognitive 21): xai_grok_shell::session::tool_index::split_identifier has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/tool_index.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e493d441b59293c3d94abae89627b38a8cadc97fd095cec5d8f429fc9966dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplyPatchTool::run (cognitive 21): ApplyPatchTool::run has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 4 (8 pts), loops 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e118e13808b07f3cd2d277dd07ff761af1231f339b82b9b9062df2067c90372"}},{"ruleId":"D2","level":"warning","message":{"text":"SuppressionTracker::process (cognitive 21): SuppressionTracker::process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 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/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"908666c433699f5facd374534236db3fd3e5e98f21fa01a0db515a0395f48f82"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::computer::local::terminal::drain_remaining_output (cognitive 21): xai_grok_tools::computer::local::terminal::drain_remaining_output has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2925}}}],"partialFingerprints":{"codehealthFindingId/v1":"323c31439ccf10853c24a960e05e139e567dd9eaa74a471a2ec0def0120d7720"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::codex::apply_patch::parser::parse_update_file_chunk (cognitive 21): xai_grok_tools::implementations::codex::apply_patch::parser::parse_update_file_chunk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae501a0f43cc1da442e8af08bf956ec0052304e809e28e6a414a08096a42f281"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::grep_progress_stream (cognitive 21): xai_grok_tools::implementations::grok_build::grep::grep_progress_stream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (6 pts), loops 3 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"511555fd779d5c96aef4d4af12de63425f491688058efc8fe23b4d8e3fb3410d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::search_replace::helpers::find_normalized_match_positions (cognitive 21): xai_grok_tools::implementations::grok_build::search_replace::helpers::find_normalized_match_positions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/helpers.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecc327996f88a9f2015ec9f9b4d1f304843c545b922f1664720996b1490bf86"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build_hashline::grep::inject_anchors (cognitive 21): xai_grok_tools::implementations::grok_build_hashline::grep::inject_anchors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (6 pts), boolean chains 3, 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/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abc893c57b7ce503a5204fa7e20f0a8b4a55684feb9d1b583a88852af7ede0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::base64_images::scan_payload_end (cognitive 21): xai_grok_tools::util::base64_images::scan_payload_end has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 4 (6 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/codegen/xai-grok-tools/src/util/base64_images.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe388076908511296f5b033a13b2bcea8378f1a3804934971fba9e8cc88bfcea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::image_capabilities::load_from_dir (cognitive 21): xai_grok_workspace::image_capabilities::load_from_dir has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/image_capabilities.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"baae293c4cf0e15f8c508179373cfe598f44b2cfa45e917d28401ba12fae82b8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::auto_mode::command_env_risk (cognitive 21): xai_grok_workspace::permission::auto_mode::command_env_risk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"714aa333c119fb84fc3b45b0424e539276ddff4124111b279e157db61a30187b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::grants::ps_dumps_environment (cognitive 21): xai_grok_workspace::permission::grants::ps_dumps_environment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, 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/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e802a88690da65b0c5eca4f853388380c186b301b09713ac07f5d663425ed28"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::sandbox_wire::tied_to_violation (cognitive 21): xai_grok_workspace::permission::sandbox_wire::tied_to_violation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (7 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_wire.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddc86da2b331b49b505a1377d13e20b2eb891567b9d7da929a05932df4a1429"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::git_cli_verb_index (cognitive 21): xai_grok_workspace::session::git::git_cli_verb_index has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, 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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2fda7ab0d461d93da1b10efd80b3066a25f938b16dec8e7a2cda79cbf1b4b0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::worktree::create_worktree_streaming_in (cognitive 21): xai_grok_workspace::worktree::create_worktree_streaming_in has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 4 (5 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a06e7e9faf65b4f51002fd983bfde227423c92816f6f52645e897010488af6"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::reject_hunks_batch (cognitive 21): HunkTrackerActor::reject_hunks_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/actions.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bf11883caa2994496bfd792b7a239d996a13610bdb8f5c39e737421bccd10c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_tty_utils::reap_group (cognitive 21): xai_tty_utils::reap_group has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tty-utils/src/lib.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98e16215eefa3b1fa1e271a860a8bb15f820e223dcfc444e0fe6ee7ecaafb87"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraphIndex::find_definitions (cognitive 20): ScopeGraphIndex::find_definitions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"831c444e9352fef2a56903b807a3ef70995882e4190e28a5a1cdd90f43752cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::api::try_btrfs_remove (cognitive 20): xai_fast_worktree::api::try_btrfs_remove has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"266e18307a2689537558b5491d5eeacdb2f152fa94e5f6ace821ec741cf7c5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_file_utils::queue::cleanup_queue_dir (cognitive 20): xai_file_utils::queue::cleanup_queue_dir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e3e84e399197a8f053c1d1e3eca80444b7d85dacfcb16af8ec7e3f59aeaec"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_file_utils::storage_client::create_read_at_stream (cognitive 20): xai_file_utils::storage_client::create_read_at_stream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (5 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/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"986910548c4501230be584d6eefd1749861e78a19a3a2f1282fe20bccb7dc190"}},{"ruleId":"D2","level":"warning","message":{"text":"Watcher::serve (cognitive 20): Watcher::serve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (6 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9793a192786641e589f69c15c84ee250eefa79d45add8337dd167eec969dae55"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::discovery::merge_subagents (cognitive 20): xai_grok_agent::discovery::merge_subagents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/discovery.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e907b26f254cc1c964a6ba3be2c63bbf7c6d50edee7b24d42751f59a9bbf6259"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_bundle::extract_bundle_archive (cognitive 20): xai_grok_bundle::extract_bundle_archive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-bundle/src/lib.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9327f694b7575e98531c96da052b7a42d322f44aea1d9c99d34026f89ccd1cc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_image::png_structurally_valid (cognitive 20): xai_grok_image::png_structurally_valid has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-image/src/lib.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a92b8d923267885a4322aea17e8d8c0c7aac894413da16ad7bd6b3f8c8a727"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownParser::scan_inline_html_entities (cognitive 20): MarkdownParser::scan_inline_html_entities has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a337cda49c3f2feaf2ccc4d6abc11aadd870700d2443fa8d8b208ef707e14a53"}},{"ruleId":"D2","level":"warning","message":{"text":"V2ConsolidationStore::manual_inbox_notes (cognitive 20): V2ConsolidationStore::manual_inbox_notes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (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/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"332a0b58dd793663d9b454b96f082da9166c6b53807099872c0f640e99cdbe4f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_scrollback_search_key (cognitive 20): AgentView::handle_scrollback_search_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d8f2655d2396d21003aa1e332e8130712ce9ab1c50c1648a817ab9bd219493"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::poll_edit_hl_results (cognitive 20): AgentView::poll_edit_hl_results has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/edit_highlight_worker.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f393ac88841a94c9749c3bba810e1942d6fd59fd769d43499ad32856565e44"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_doc_input (cognitive 20): AgentView::handle_doc_input has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d635214eaec9212709ebe565b435b60bd0a03f749ab22e9704b6b64c6213b22c"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderBlock::accent_color (cognitive 20): RenderBlock::accent_color has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (6 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/block.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f15195211ddcfa7e993829a6cbb872f82205f1e46cb73e310ece72a3bb2bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextInfoBlock::build_lines (cognitive 20): ContextInfoBlock::build_lines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 8 (9 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/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"268f69af613bf10d1f17489978f380f8bdc1cf65099781fe51548b3e0f668af5"}},{"ruleId":"D2","level":"warning","message":{"text":"MemorySearchToolCallBlock::output (cognitive 20): MemorySearchToolCallBlock::output has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b01921765e166a71a310cf53226c525e67bbfd33dced5f58b0e1588bdba940"}},{"ruleId":"D2","level":"warning","message":{"text":"UseToolCallBlock::output (cognitive 20): UseToolCallBlock::output has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d530c4f543e5c2f7e827826734d9302fbea6ff938269387718f16ced92fa376c"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::rebuild_with_fold_anchor (cognitive 20): ScrollbackState::rebuild_with_fold_anchor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ea7a45955dc0387651104be0f7e37442f551dc99562d861d23d52a796067c1"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryRenderer::row_soft_wraps (cognitive 20): EntryRenderer::row_soft_wraps has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, 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/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a0bfa07c1385d7f16a66598a815c9d6cb1407c6f728196734bf7965386b622"}},{"ruleId":"D2","level":"warning","message":{"text":"SlashMru::ensure_loaded (cognitive 20): SlashMru::ensure_loaded has cognitive complexity 20 (threshold 15). Drivers by points: loops 2 (9 pts), if/else 3 (6 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 11). 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/codegen/xai-grok-pager/src/slash/mru.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9f41ed925b16512b0a120da975834dc497f42e0f36d3b08a18f1b65460e907"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceLine::render (cognitive 20): SourceLine::render has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 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/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44b77dfc430010dc5016499bd7b8c48c56d0a590f915209f40bb0c2b12237f0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::auth::handle_mcp_auth_trigger_done (cognitive 20): xai_grok_pager::app::dispatch::auth::handle_mcp_auth_trigger_done has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f066fdcfa69edd25af83b96ac35b0aa70d6aee98b0cb51a98211ca15e9937d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_attach (cognitive 20): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_attach has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba88993d78154e66512edd4558033c63bce1386cd7b6b8f61c25d4031448dc1a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::notes::dispatch_open_feedback_modal (cognitive 20): xai_grok_pager::app::dispatch::notes::dispatch_open_feedback_modal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1a8d3798f826e919ab72fdc95077e3537f7624e5b95f1343f5b83bdae19cc2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_session (cognitive 20): xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_session has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74546009d305ac6ffeb155929315c5e2d8d9a89fc3db86159e3e3d302459c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::diagnostics::doctor_format::format_doctor (cognitive 20): xai_grok_pager::diagnostics::doctor_format::format_doctor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), match/switch 5 (7 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a333da14e05efa00578bf9bb79e5fb5231832e564da29b2941044eba723de793"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::compute_file_scoped_styles (cognitive 20): xai_grok_pager::scrollback::blocks::tool::edit::compute_file_scoped_styles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"654610998a716ba41526d99f49e5975c08855795ab50c342dc3fbc93cf5ec5ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::table_selected_cols_for_line (cognitive 20): xai_grok_pager::scrollback::text_selection::table_selected_cols_for_line has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d63fc97543785ce0a45248bd4357a1e560038f5eb72e71d207a4ff354c46d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_personas_tab_key (cognitive 20): xai_grok_pager::views::agents_modal::handle_personas_tab_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (8 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff9ea5478c1c76cbb13d524e467621b342fbd7c6a6ca003a12e74911e722c7f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::list_pane::render::render_corner_indicators (cognitive 20): xai_grok_pager::views::list_pane::render::render_corner_indicators has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e076280544b73ee629f077f039f3138f9ff12d6121cb8ca2e8973b25a1a40a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::bidi::visual_col_to_logical_col (cognitive 20): xai_grok_pager_render::render::bidi::visual_col_to_logical_col has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (3 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"161f0fca76477653738f3f558d25b17110bfd39c36e037a3db1f4679eab75ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::terminal::probe::write_all_until (cognitive 20): xai_grok_pager_render::terminal::probe::write_all_until has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/probe.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77df7fd6d1767686819192286a4a15d66b61fe7da0a016e47ec834ace20c8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::managed_policy::url_match::decode_unreserved_escapes (cognitive 20): xai_grok_permission_rules::managed_policy::url_match::decode_unreserved_escapes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"675525f6e41563aabe8dad860a836b5ee2d71bf3aea326d02fd3597ec81ca872"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::resolution::parse_toml_permission_section (cognitive 20): xai_grok_permission_rules::resolution::parse_toml_permission_section has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 1 (5 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9e90f94d16ef6d6577a48afca0b49538814e0699fffa4454f2ce3968d1754f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::chat_completions::conversation_item_to_chat_message (cognitive 20): xai_grok_sampling_types::conversation::chat_completions::conversation_item_to_chat_message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (7 pts), loops 1 (3 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation/chat_completions.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0677d4d51bfdef62e95fa28b18b1bb93f649a1d3f56a3c3e8715bec109fd9d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::protected::walk (cognitive 20): xai_grok_sandbox::command::protected::walk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/protected.rs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09d7ed5086c664270f181a59719c170c3d515131a47394f68b3eb3189cac726"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRegistry::settle_attach (cognitive 20): SessionRegistry::settle_attach has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"337d9b418358474ac8838714532bee888a0f4c0f20b236f4e5753bc4b5c89976"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::maybe_refresh_model_metadata_on_resume (cognitive 20): SessionActor::maybe_refresh_model_metadata_on_resume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, match/switch 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_setup.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479acd373c34994b03b818b8ebba7481322dea4a6f437136f9c0d1865eed491"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::app::run_auto_update_checker (cognitive 20): xai_grok_shell::agent::app::run_auto_update_checker has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dd821cb6e5d6b0726760a8767fa1827bc704ca2c5c537a10e553e8d8cf38a9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::remote_config::resolution::resolve_model_catalog (cognitive 20): xai_grok_shell::agent::remote_config::resolution::resolve_model_catalog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/remote_config/resolution.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4c8183c3de9ba005993069952c5de688ed8b7b24f645f1a08ef7f81949eb16"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::mcp_doctor::discover_servers (cognitive 20): xai_grok_shell::mcp_doctor::discover_servers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/mcp_doctor.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"db39eb4480688963466d6b98a5c5fbd3d25985a2937ddcd03f2891ec04fcaaef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::plugin::update_plugins (cognitive 20): xai_grok_shell::plugin::update_plugins has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (9 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/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20bb096233e8b6e1a51a8f4cdf63a99a8850a7d93f055c18259e7033cae550e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::sampling::conversation::fork_filter_chat (cognitive 20): xai_grok_shell::sampling::conversation::fork_filter_chat has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 3 (7 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/sampling/conversation.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e927ece0de18dee781221deefde1b6226bc784be64075c4c28ff8db666651ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::mcp_argument_coercion::walk (cognitive 20): xai_grok_shell::session::acp_session_impl::mcp_argument_coercion::walk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_argument_coercion.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fffdac4cacaed47d4f35265eaec566093ae04eb95aa347e628da2c6bb857fd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::resume_status::format_reminder (cognitive 20): xai_grok_shell::session::resume_status::format_reminder has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 7, match/switch 1 (3 pts) (nesting depth added 7). 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/codegen/xai-grok-shell/src/session/resume_status.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"674f2951b6de479672ca755047665164b442841cf78a93796a73cee70790632e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::parse_prompt_extract_event (cognitive 20): xai_grok_shell::session::storage::parse_prompt_extract_event has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b154ae1cf59bb36cbec49d7d0993fc1fde5309b45ea11a36850ae40357bb523c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::worktree_pool::cleanup_stale_pool_worktrees_inner (cognitive 20): xai_grok_shell::session::worktree_pool::cleanup_stale_pool_worktrees_inner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/worktree_pool.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce232fd018af0d317b9c0a1bddc85687fa39ac26cda85788c5ab641b970b58c9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell_terminal::output_recorder::largest_overlap (cognitive 20): xai_grok_shell_terminal::output_recorder::largest_overlap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/output_recorder.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f49ff6eb742966b2251058b8357d0c101bd293510d9a397b155cbcb7946a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::process_deadlines (cognitive 20): SubagentCoordinator::process_deadlines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 6 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff874e8b839bd7ef46389837b625996a7d5c9fd2ba190d5488fc19749e5ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenClient::generate_with_images (cognitive 20): VideoGenClient::generate_with_images has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3 (6 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/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"16873b82032b6d21ee30649e5d2020bea81f750acc72daa29e033b2817fc860b"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourcesPersistence::writer_loop (cognitive 20): ResourcesPersistence::writer_loop has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/persistence.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e3f9c5846f1f93e9d34dac43eac2c7265a2dc7de3a30f56b789ede8ad4b9df"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_update::auto_update::replace_managed_bins (cognitive 20): xai_grok_update::auto_update::replace_managed_bins has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 1 (4 pts), match/switch 2 (4 pts) (nesting depth added 11). 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/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab5a8b4993863d40bdbf2c2044bd569d3b380e038eb1094b2e60e8f85e0fe3e"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBindConfig::resolve (cognitive 20): WorkspaceBindConfig::resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (4 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/codegen/xai-grok-workspace/src/config.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32565005558f693db1d713df6d1c8740fc884827a31ed2d3350885a2fdee251"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::path_virtualization::rewrite_text_inbound (cognitive 20): xai_grok_workspace::path_virtualization::rewrite_text_inbound has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/path_virtualization.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f88ad19761d00c68e64702adef7ec6573dc6f863ca0e990b2281f07768084f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::get_worktree_info (cognitive 20): xai_grok_workspace::session::git::get_worktree_info has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"20272ed43eb9ecd14462e24a42ae87f5ecb871da5f468e1f036e51e2ac7af1f0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace_types::rewrite_grok_files_mount_dest (cognitive 20): xai_grok_workspace_types::rewrite_grok_files_mount_dest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/lib.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"784705bdbe918ef2139119d5e19640d9ccc8b7d582af52be9b65596cdacdcefb"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal::write_semantic_rows (cognitive 20): Terminal::write_semantic_rows has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 1 (nesting depth added 8). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"6617301659be74ce952348af5edc7015da9d3658cbf7487cb8fd56ba692136f5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::server::execute_call (cognitive 20): xai_computer_hub_sdk::server::execute_call has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 9 (11 pts), if/else 6 (8 pts), loops 1 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4833b3b829510c9be2a8f9f32e0358e0d8d6c21d1597097f2fccd0f01baaa3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::copy::standalone::filter_packed_refs (cognitive 19): xai_fast_worktree::copy::standalone::filter_packed_refs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/standalone.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6eb1d381fe43874272080ed75e9ca7da17098b299554043c8f62bf12667449"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageClient::batch_upload_json (cognitive 19): StorageClient::batch_upload_json has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 4 (7 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"08694792bf72a7e26f120bcae6bcca088dd244d742385e90a476928425dc9485"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_file_utils::queue::upload_worker (cognitive 19): xai_file_utils::queue::upload_worker has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af5e9121e58a79ea2a3d11caf3e3c146672f1aeed580137e085af28d92d348"}},{"ruleId":"D2","level":"warning","message":{"text":"Watcher::arm (cognitive 19): Watcher::arm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 2 (4 pts), match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f1e0f10bdbb02184f7930f7fd63c1b2654fe6fd43e12eeb25c96d64c4aafbe"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::config_override::apply_patches (cognitive 19): xai_grok_config::config_override::apply_patches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 4 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/config_override.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"524a720a8b91a5ddc51fa00ac36f9dc0ffb5e5714dc97e929e274786ca38f672"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::draw_floor_ceiling (cognitive 19): Renderer::draw_floor_ceiling has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a747bf2e3f1805111a754b6f33c75962e16cb4c8b0b1a1b703114e82e1fa53a"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthManager::auth_dispatch (cognitive 19): AuthManager::auth_dispatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 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/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f692295d0cf1dd55c77f7edd748cc8765bae8714984b9b30bf92c04066f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_class_relation (cognitive 19): xai_grok_markdown::mermaid::parse_class_relation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"25243e061fb894bc8704ddd1e25eb0796a66b7ac7620a7bbf7121800e2d34409"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage::gc (cognitive 19): MemoryStorage::gc has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d139875a2a046112ecc081c60b1fb86fa8e3cd533a79ef84aa342a42397eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::mmr::mmr_rerank (cognitive 19): xai_grok_memory::mmr::mmr_rerank has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/mmr.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47adcca6b65909e07dcbf30ecbcf7a57f8a731e93c62b2611562145d485eefe4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::enter_plan_commenting (cognitive 19): AgentView::enter_plan_commenting has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"813d6ac7142d7da6b46fb288797bfd895464d8321bbcaa952ca3ce7cffadb9ff"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::interject_edited_queued (cognitive 19): AgentView::interject_edited_queued has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (3 pts), match/switch 2 (3 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/codegen/xai-grok-pager/src/app/queue_edit.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa40e953d73ce064034da14c3df8b48cb72e850049d611e87c08cfefa0dfb8c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchToolCallBlock::output (cognitive 19): SearchToolCallBlock::output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a616e9e39f0ff3e75f6efd91f1fe31f511fd2d4feefee6358b00383ff8843172"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::expand_all_groups (cognitive 19): ScrollbackState::expand_all_groups has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0394822b79ef9b617867322934103987c4f71afcdbd3cf48e0d39badb74cc55"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::scroll_lines (cognitive 19): ListPaneState::scroll_lines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d88130837c8f1ef9e678cf2d6721e81794b952c0b3006d20829ea17b6b386e"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::rechip_orphan_image_placeholders (cognitive 19): PromptWidget::rechip_orphan_image_placeholders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/image_state.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"186f842c511c5da9b137bfc0decbc6666609b5f868102eba09f72a1397affc98"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksPane::render_agent_overlay (cognitive 19): TasksPane::render_agent_overlay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18 (19 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"742f468f955f5f134ce9339ae87fb4a96db84eff6707540538b4efc4817a709a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::agent_view::render_dropdown_chrome (cognitive 19): xai_grok_pager::app::agent_view::render_dropdown_chrome has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce37a90bb9ca85f652a25634f0fa0967b325e95b4b3a834f3cef59c502be2dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_overlay_cycle (cognitive 19): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_overlay_cycle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47a4e01a1f99cf348ad5199d12e20353b505a69a366c4c7fcf4c453bb998850"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::flush_held_local_queue_into_wait (cognitive 19): xai_grok_pager::app::dispatch::queue::flush_held_local_queue_into_wait has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a535cf172cf4af05233a59aeedec50f352886a92a01064b5d1ca9765568bc68"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::disk_usage_cmd::display::print_report (cognitive 19): xai_grok_pager::disk_usage_cmd::display::print_report has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/disk_usage_cmd/display.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"757408c15adce540ede77e479e6d0f12c3b683369a9183323fd22a2e42ee69b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::fs_size::walk (cognitive 19): xai_grok_pager::fs_size::walk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/fs_size.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb06f5c123bf2ae99304549952241cfb1ae9449ee3aa4b653eb546ff8ed007e4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::state::groups::scan_truncations (cognitive 19): xai_grok_pager::scrollback::state::groups::scan_truncations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/groups.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3370bcd7f13f2ed5eed55ced142530e721c4adccc5668bf2409d9854b974f26"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::slash::commands::fork::parse_fork_args (cognitive 19): xai_grok_pager::slash::commands::fork::parse_fork_args has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/fork.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ef8e6ba3873903ceb4045dea390a6af2ed1789a6421521875662085c2fafbd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::agents_modal::handle_agents_key (cognitive 19): xai_grok_pager::views::agents_modal::handle_agents_key has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"b799c53df9115935ce4989498c65d36dce0964ff998d260be25c86d7d15cc3b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dock::paint_row (cognitive 19): xai_grok_pager::views::dock::paint_row has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-pager/src/views/dock/mod.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca12cf34214999d3131c481cd6fb3160798e7da1f668c6355562e3e2e08787b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dock::layout::grant_rows (cognitive 19): xai_grok_pager::views::dock::layout::grant_rows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/layout.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc54301895993046767629a7a69309673d03d54d3e1ba049df2a44866b33eaea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::file_search::line_viewer::render_comment_close_buttons (cognitive 19): xai_grok_pager::views::file_search::line_viewer::render_comment_close_buttons has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"333c980e5f0bb11f962183943ef21a5c4681c5daeb4cb692e8b2df79c7f7ba43"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::import_claude_modal::render_import_claude_modal (cognitive 19): xai_grok_pager::views::import_claude_modal::render_import_claude_modal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6804f47ed20f57651db16750d52026589380b233c879c11c448aedbc4c7d2be0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal_window::word_wrap (cognitive 19): xai_grok_pager::views::modal_window::word_wrap has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"a813605081eae813446ded9f7965f7c57a74bc186feb7813db30ba998ff8a23c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::char_wrap_spans (cognitive 19): xai_grok_pager::views::permission_view::char_wrap_spans has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3484e5ec0573fe24b8779eb97e720bf92ad3beec6354fdfde7d74bc3d626f8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::slash_dropdown::build_item_lines (cognitive 19): xai_grok_pager::views::slash_dropdown::build_item_lines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66ed41ec7c656d03b100a66a1b59dd1c7f8881d4371828352d1a520c7201160"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::usage_modal::usage_limit_lines (cognitive 19): xai_grok_pager::views::usage_modal::usage_limit_lines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 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/codegen/xai-grok-pager/src/views/usage_modal.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b08a4b40f6056fe0f0cdbcaf4c915e70b12556a227bdd9ff6b3b87b35483605"}},{"ruleId":"D2","level":"warning","message":{"text":"RawAppearanceConfig::to_toml_with_comments (cognitive 19): RawAppearanceConfig::to_toml_with_comments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (19 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/config.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5d01d6a61780be1c79447cd0fae8b3252aca01024bf2fa6c9d7fd7ce7b3df7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::preview_overlay::render_content_lines (cognitive 19): xai_grok_pager_render::render::preview_overlay::render_content_lines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/preview_overlay.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0242c68e3a567fd11f704101175c8901942975ae971b362fdbb057e666c283"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledPolicy::evaluate_rules_with_base (cognitive 19): CompiledPolicy::evaluate_rules_with_base has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (8 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/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5da41d5563a825c6106e83e122a7ef73de79658e09e0d67b3ef3021446fcafc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::managed_policy::apply_policy_source (cognitive 19): xai_grok_permission_rules::managed_policy::apply_policy_source has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26b66a7f9d9d97c07f56a7c81394cb8fd40e710b8328742b47d393692565d69"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_plugin_marketplace::config::load_extra_sources_from_settings_in (cognitive 19): xai_grok_plugin_marketplace::config::load_extra_sources_from_settings_in has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 2 (5 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/config.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7877a717bb7d06bef1ad9a3d67da62d5fe11543f3dde59b81232209d74e81cf9"}},{"ruleId":"D2","level":"warning","message":{"text":"SamplingClient::new (cognitive 19): SamplingClient::new has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48871d9fa9e8b859be14c9379767b4297c2754698218fa1dd8c33c16ae93ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"SamplingClient::create_response_stream_inner (cognitive 19): SamplingClient::create_response_stream_inner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c77f599b78e7f4f4da73abc98e9380470f75248508be465e51b09b6fe1eff25"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampler::retry::classify_error (cognitive 19): xai_grok_sampler::retry::classify_error has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/retry.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1d76e0cb515d5c33d6869d6c1f9469503cae5c47106aa58dbc49bc5abe5a88"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::read_deny_verify::unescape_mountinfo_field (cognitive 19): xai_grok_sandbox::read_deny_verify::unescape_mountinfo_field has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/read_deny_verify.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"07676a025de3739feb69d4cc9a9e2eb34a5e2eff7875c08fa2f68f3d49d8f7b5"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::replay_session_updates (cognitive 19): MvpAgent::replay_session_updates has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c2769d31ba6ded6658276a16465d13eaaa7ee6c4c0711cccf523c3580ec57d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelOverrideConfig::resolve (cognitive 19): ModelOverrideConfig::resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc5222301178c8f1079d595302a7989e6fd463976c771d5d799a3dd7f5e28bb"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::prepare_goal_continuation (cognitive 19): SessionActor::prepare_goal_continuation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1942dd1e74c9896d7fb43fe0163a71e62835582cb5db1f2b074a625b4abb6e28"}},{"ruleId":"D2","level":"warning","message":{"text":"DoomLoopTurnTally::detection_summary (cognitive 19): DoomLoopTurnTally::detection_summary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/doom_loop_telemetry.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e822da5379ce6d3e60a9e686ce2a364465751fcebc1ee976e065d106b50e6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::session_updates::handle (cognitive 19): xai_grok_shell::extensions::session_updates::handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c31e3ecccd24915bf6280bd4813cba8cafd7475ee54c14fd0631ebe2d19139"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::file_provider::expand_vars (cognitive 19): xai_grok_shell::extensions::suggest::file_provider::expand_vars has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/file_provider.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"653a0af50ecfb2c5260f13b9997d6aee7b16f4c4b73bbee95fa05ff65a2aadb5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::client::register (cognitive 19): xai_grok_shell::leader::client::register has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 4 (8 pts), loops 2 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/client.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e722bd869fe88e17bae3948e3bed8aabc1593d6e6e857a9604e5b5634fb986db"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::slash_commands::parse_skill_references_with_catalog (cognitive 19): xai_grok_shell::session::slash_commands::parse_skill_references_with_catalog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/slash_commands.rs"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"61277e38281f5e41eaee8201f0687620613d5c4a56053cb4b16d22c0884bdeaa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::slash_commands::resolve_human_intent (cognitive 19): xai_grok_shell::session::slash_commands::resolve_human_intent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/slash_commands.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbf19654211f9bda73bea4ef005921fa07bd5555ad85342448b63f45c0bcde1"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::finish_child (cognitive 19): SubagentCoordinator::finish_child has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, match/switch 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbee961d7d1ca122b1320aa3c29f14da27e93ac10507aef7b7f2e04c8a30dbd"}},{"ruleId":"D2","level":"warning","message":{"text":"PullDiagnostics::resolve (cognitive 19): PullDiagnostics::resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/pull.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"012f26e1e0a6139cad7a65d26e152246b2041b051efe189d3a9fbd8c78fe095a"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillDiscoveryReminder::collect_reminders (cognitive 19): SkillDiscoveryReminder::collect_reminders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/reminders/skill_discovery.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19f5365f02e1594f0b32b6d40d2d2c016b596d12561fd8977428fe91c0bfa90"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager::suggest_skill_path (cognitive 19): SkillManager::suggest_skill_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 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/codegen/xai-grok-tools/src/types/skill_discovery_tracker/skill_path_suggestion.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e09723726ce53acf72b50301fa05927f70f811e7809416654291b134343698"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::remap::remap_schema_properties (cognitive 19): xai_grok_tools::util::remap::remap_schema_properties has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 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/codegen/xai-grok-tools/src/util/remap.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b453fbbf6dceaaa3b3775293b906d131d806c3bbeba6f8ec3be367a0363df62"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_voice::pipeline::forward_pcm (cognitive 19): xai_grok_voice::pipeline::forward_pcm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (8 pts), loops 3 (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/codegen/xai-grok-voice/src/pipeline.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"433109625ced385e8174daf7e5c8d2c6aca99d2ee54f30dfd32b9ed4503a88ae"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::collect_diff_stats (cognitive 19): xai_grok_workspace::session::git::collect_diff_stats has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"352423b4767ecf5eb23f23245c57375bfe8b21e8c99d67ef1ea99135a4187939"}},{"ruleId":"D2","level":"warning","message":{"text":"HunkTrackerActor::set_mode (cognitive 19): HunkTrackerActor::set_mode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (6 pts), boolean chains 3 (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/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"248ae95fade054ce295c697734c7b01f4daebf9944111478b9f7549f62161981"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_ratatui_textarea::textarea::truncate_line_display (cognitive 19): xai_ratatui_textarea::textarea::truncate_line_display has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":3411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf587d48ae023bb90652236458db31a374a5464c75db5e5eb7af96891e7a789"}},{"ruleId":"D2","level":"warning","message":{"text":"ptyctl_cli::commands::client::screen (cognitive 18): ptyctl_cli::commands::client::screen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl-cli/src/commands/client.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bce3609f8728fcef3c70ae3b475e789b39c9b40e37cbb26ddcc2d0a1f420f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_chat_state::actor::request_builder::prune_conversation (cognitive 18): xai_chat_state::actor::request_builder::prune_conversation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/request_builder.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5783510857d1c3e068d5817b17c4b592a6c4d1f110953d98fc804b37c8e3aec"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeGraph::find_tightest_local_scope (cognitive 18): ScopeGraph::find_tightest_local_scope has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"992b25d5d0d939d461cb9ddda7f6aac86d281f88343f7cd8e003898aea17d90c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_crash_handler::handler::win::crash_handler (cognitive 18): xai_crash_handler::handler::win::crash_handler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a524f9cacbfd7391ff759841166064edd86ef7f0ae515be537670681f7e2bd3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::copy::gitdir::copy_git_dir_with_workers (cognitive 18): xai_fast_worktree::copy::gitdir::copy_git_dir_with_workers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/gitdir.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac4e69943ff979a62d51e48d52dff3144112f883dff74af690cb7be9e53b917"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::git::safety::working_tree::find_working_tree_content (cognitive 18): xai_fast_worktree::git::safety::working_tree::find_working_tree_content has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (11 pts), if/else 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/working_tree.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9149906183f8b287e7a91300e6bfd68676944d0c7b085deeaee5d74ad61d53"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fsnotify::source::event_loop (cognitive 18): xai_fsnotify::source::event_loop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/source.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8115ca0d816f242fd4ce4505c5567e821c9362cc73bde115477bbbed30c00d6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::marketplace::resolve (cognitive 18): xai_grok_agent::plugins::marketplace::resolve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/marketplace.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15f19cae8dd04dee1d4816e07dd53187efccc53b05dee4484987715dcdd552b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::prompt::skills::collect_skill_config_dirs_from_sources (cognitive 18): xai_grok_agent::prompt::skills::collect_skill_config_dirs_from_sources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/skills.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1654a647bf2d3cc937737ce6e10bef78f7ca5c70957f16d37d500fa5f57a4acb"}},{"ruleId":"D2","level":"warning","message":{"text":"UserMcpConfig::toml_definitions (cognitive 18): UserMcpConfig::toml_definitions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (5 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/codegen/xai-grok-config/src/mcp_servers/server_list.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0f90dfc152eb17c1562fbeaa8c44728ecf00d52e662fae247ad50e93f1b62c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_external_agent_migration::hooks_cla::refresh_existing_hook_timeout (cognitive 18): xai_grok_external_agent_migration::hooks_cla::refresh_existing_hook_timeout has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-external-agent-migration/src/hooks_cla.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce379984097fecf3a910b2cad3ad3e5d648b87e18f62f8e9b2ccc77cc2d4c909"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_foreign_sessions::claude::collect_candidates (cognitive 18): xai_grok_foreign_sessions::claude::collect_candidates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 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/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c731410bdfa42af4eda4cd20b6b908f5955bf2dfc78619244a2bb02873e00184"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::draw_gun (cognitive 18): Renderer::draw_gun has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"da40ce2efdcde939b252c586887125ac37917168db8b01b7517cf77f412ba643"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_hooks::dispatcher::dispatch_sequential_gate (cognitive 18): xai_grok_hooks::dispatcher::dispatch_sequential_gate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c81c3638fa9259fd9bad40f45d02b5d1fa5f07902fd15774eb51e4b15247f04"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedMarkdown::apply_transforms (cognitive 18): ParsedMarkdown::apply_transforms has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f957a8d6dd4915673a8a18a87308bc16247cb959cff0ab1152ca697ccbccec"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex_delimiters::scan_fence_close (cognitive 18): xai_grok_markdown::latex_delimiters::scan_fence_close has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6effe1e504519649be70f85ad9795779e85ca3dc5d7474573c836f95858dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"McpClient::ensure_initialized (cognitive 18): McpClient::ensure_initialized has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":3639}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf52557fc4274925bad882ee7d4712f7803828c7deeed47fa120df36f47200"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamStore::sync_queue (cognitive 18): BatchDreamStore::sync_queue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0b23343439ce63a55a9e77842cd82da3e1a7702e2c719bf8d91ade5843182c"}},{"ruleId":"D2","level":"warning","message":{"text":"V2ConsolidationStore::claim_with_visibility (cognitive 18): V2ConsolidationStore::claim_with_visibility has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4a74554580931f438780b848f2bd5731f2e5e7f3f3931dc26bc140116ef7ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::v2::collect_entries_from (cognitive 18): xai_grok_memory::v2::collect_entries_from has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca95a1680113757043fcdd65544bd51f12387997f5cfcbfeb9b3906c567c02a5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::resolve_elicitation_accept (cognitive 18): AgentView::resolve_elicitation_accept has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (18 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/codegen/xai-grok-pager/src/app/agent_view/elicitation.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"84354370023efb37ad16ead3db65fbb880a106c021482c402217161e7c20fb0a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::enter_queue_edit (cognitive 18): AgentView::enter_queue_edit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/queue_edit.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"78977ce00bbe1b54f54da5e496de0f449501755bc09ca665c08b66698945e7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceMembership::next_effect (cognitive 18): WorkspaceMembership::next_effect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/workspace_membership.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff594f8b6bee08c0ff84a10f3171242cb815ec910035d1c3d2d5494025453c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::update_dirty_entry_heights (cognitive 18): ScrollbackState::update_dirty_entry_heights 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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"225eddf1850fbc1e325d44d2ad488954d24479492b137cacc45585fd7e9408b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::prev_response (cognitive 18): ScrollbackState::prev_response 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. This shape REPEATS in the file: one other method here (ScrollbackState::next_response) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b56e350229bcf9ec19e97e711a8dcfcd474f4828cdc186e00fc62b1f871372"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::next_response (cognitive 18): ScrollbackState::next_response 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. This shape REPEATS in the file: one other method here (ScrollbackState::prev_response) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd8d430e9bdb56bcdbbd9e3a6974c8ddadd37427338bc32c62a8dba018d7bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistry::rebuild_triggers (cognitive 18): CommandRegistry::rebuild_triggers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/registry.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f7430f457516ac14937d8bd2689f075be9fdc111c5cab15523b0d725a48701"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptWidget::sync_images_with_textarea (cognitive 18): PromptWidget::sync_images_with_textarea has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 4 (5 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85cb0491f19a7b1c91409155e45957f231944bc44da480daf4675f7131d7a9a"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskEntry::from_bg_task (cognitive 18): TaskEntry::from_bg_task has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5231b35594f8bd078e17ac328623a01dbd556fad4fd3719b85ac84c4db66aae3"}},{"ruleId":"D2","level":"warning","message":{"text":"WelcomeLayout::compute_inner (cognitive 18): WelcomeLayout::compute_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d3b9db98e9e277f93ecd80a000bbe3807dbb044809f2d8303c13b36999dd8b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsViewState::handle_scroll (cognitive 18): WorkflowsViewState::handle_scroll has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e9a0c6577efbe6e7e5bebc5a7188a1fc8cfcfc558bbbf0151877205319600a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_overlay_stop (cognitive 18): xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_overlay_stop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be27bfd5b0258a3c39a467630a55e8176edb1f9e643e5a4410228410c850e2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::event_loop::process_effects (cognitive 18): xai_grok_pager::app::event_loop::process_effects has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3952}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b848770bee401044b5ba4d544b09568e3c9813cf54c2488a8ecfb64a8e7a02a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::mermaid_worker::spawn_worker (cognitive 18): xai_grok_pager::app::mermaid_worker::spawn_worker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mermaid_worker.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aa8f4c81968fb6d2f70f594267c2921891f73b3fa4e9d18ae9b664c3115a51"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::disk_usage_cmd::collect_report_in (cognitive 18): xai_grok_pager::disk_usage_cmd::collect_report_in has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/disk_usage_cmd/mod.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4974024105352633aaa38b3eac5b32e8b79f2e4d6c4fa830a52d67aa26af88f7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::tool::edit::render_content_spans (cognitive 18): xai_grok_pager::scrollback::blocks::tool::edit::render_content_spans has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (5 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bc3a7e6d80af0b4ffa18873dca4f4d5075aa64ece8f9bfd52ba0089cf8510"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::peek::compute_peek_fields (cognitive 18): xai_grok_pager::views::dashboard::peek::compute_peek_fields has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b107401aaa4b5956b5e4eb2311b780c910b0f08f3cf7cb15bff601acd84f6a2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::state::resolve_dir_prefix (cognitive 18): xai_grok_pager::views::dashboard::state::resolve_dir_prefix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"0924dd747443d75f53e0f42a5e72bdfd15002e4d07887be1cddfb93c40994e29"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::full_view::trim_trailing_pads (cognitive 18): xai_grok_pager_minimal::full_view::trim_trailing_pads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/full_view.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaff5478d56441eb544e27c0d5b24752d815fbc7117eb893663755c1543231a1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::overlay::render_question (cognitive 18): xai_grok_pager_minimal::overlay::render_question has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/overlay.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"982f0a4214297a44cb9df5703d7ba14e22f6a7d1b0ec15950d93d7d673343b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::bidi::visual_line_with_level (cognitive 18): xai_grok_pager_render::render::bidi::visual_line_with_level has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"154a11548c1ca17fe872773706b03cc4cecf63d2bb3be019e83ba791182ac559"}},{"ruleId":"D2","level":"warning","message":{"text":"FailedResponseCapture::take_items (cognitive 18): FailedResponseCapture::take_items has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, 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/codegen/xai-grok-sampler/src/doom_loop_recovery.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd8e2aa9eb3154c472865b0a175de4d8e0b20388f84116ede70b5cef7562c00"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::upgrade_legacy_reasoning (cognitive 18): xai_grok_sampling_types::conversation::upgrade_legacy_reasoning has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01f985db10e3da28a4cb42196d4b75c6128b8e9dde05a9c4f473fb76ffe1587"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::conversation_truncate_progressive (cognitive 18): xai_grok_sampling_types::conversation::conversation_truncate_progressive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"2495d8930192a7d90b3f84d79cb14a6c31bff163d3a83ccf4ccd8804a86b252c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHooksPath::visit (cognitive 18): ConfigHooksPath::visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"a159a1ca24e7ecaf0e4b369dc39930e7b0bc5637c6bf604517f3174055b3a7d4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::bwrap_deny_plan (cognitive 18): xai_grok_sandbox::bwrap_deny_plan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/lib.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe82fe91d81d39f6ad1d31e50c7c214a3fd23da192a218dbe2985262d536ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_session_search::bootstrap::bootstrap_with_lease_inner (cognitive 18): xai_grok_session_search::bootstrap::bootstrap_with_lease_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/bootstrap.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a2b126e08a8bf592cfbf6f22c016a8ec00936319e4f726c766febee5c34fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::find_orphaned_background_tasks (cognitive 18): MvpAgent::find_orphaned_background_tasks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 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/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce08fc2a3093ce2e2ea5084491042bfce8f208e3f7a3327489bd8b8b372e570"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::resume_goal (cognitive 18): SessionActor::resume_goal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1443bd1af4134e202f2393556de4f1af0359dca049c5c74f151453048090b0"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::notification_blocks (cognitive 18): SessionActor::notification_blocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (6 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"6215203acfb41dad55d10d3100309d0d85195be8f66a60aed1f7fcd607954958"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::promote_queued_as_interjections (cognitive 18): SessionActor::promote_queued_as_interjections has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b561d0decf92b2b8a5f8ff396d1460a9cbcefba58dbc17dd1a73dcbde9867e"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorageAdapter::list_sessions_recent_sync (cognitive 18): JsonlStorageAdapter::list_sessions_recent_sync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdc2abf7256dcb9a6fed34957edae3593565784871a22d38083da48609df068"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::mcp_doctor::print_report (cognitive 18): xai_grok_shell::mcp_doctor::print_report has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/mcp_doctor.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7cb22ad0a9a84af50e5a40978d92aeae862782b0c879505c49d79c5f2294a9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::helpers::prompt_suggest::build_transcript (cognitive 18): xai_grok_shell::session::helpers::prompt_suggest::build_transcript has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/prompt_suggest.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6b04c1514ecd1f223f25634eb28d7e314d07da90b0af9c5e528cd198bedf44"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::prompt_parser::parse_prompt_with_skills (cognitive 18): xai_grok_shell::session::prompt_parser::parse_prompt_with_skills has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/prompt_parser.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6c2797582125fa994d44f04ae3cd4971fc5dea75b8fac78fbf38eb61d9ee12"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::slash_commands::build_skill_information_for_refs (cognitive 18): xai_grok_shell::session::slash_commands::build_skill_information_for_refs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/slash_commands.rs"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"4054aa2aa0b619541d75e953a437cc9ca95bbe39eb227eba38fbcb038011479a"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentPersona::render_io_summary (cognitive 18): SubagentPersona::render_io_summary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-subagent-resolution/src/config.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6be8d432c1f289660ee0260ec9fd9587cd860f3a4ef415f48732892861188f"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalTerminalActor::notify_completion_waiters (cognitive 18): LocalTerminalActor::notify_completion_waiters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae6e3c18bae1e5566d725fb6fa9c9efd87cc899afcc9192f3c3b3a463c3abd5"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::resolve_address_send (cognitive 18): SubagentCoordinator::resolve_address_send has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"88720e506a7553e6394d9638a31d3b1ff354b0c959661f5300895570145882b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::handle_query (cognitive 18): SubagentCoordinator::handle_query has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/query.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"861919e57b9269dfb6abefd1595155d43ef46e596e2e037d2cdd83a686daaefb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::bash::parse_heredoc_start (cognitive 18): xai_grok_tools::implementations::grok_build::bash::parse_heredoc_start has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c4fc75830534de5c94bde11eabe68ef1e51c32a6954b10df9a03d2d4e54e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::monitor::tool::run_monitor_pipeline (cognitive 18): xai_grok_tools::implementations::grok_build::monitor::tool::run_monitor_pipeline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/tool.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b09f3f10744bc491935480f7d8570a91f171cc413c5e6c466aabaf215eedd97"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::lsp::restart::restart_lsp_with_retries (cognitive 18): xai_grok_tools::implementations::lsp::restart::restart_lsp_with_retries has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/restart.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4445980c1311f6e4d125469072d4aa78cbca041e0b30949ef03ff846dad03e5"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::skills::discovery::parse_skill_files (cognitive 18): xai_grok_tools::implementations::skills::discovery::parse_skill_files has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"46433ad699675b1718fcaddc2d8f158d2dc75d35820ee13139c09011e2717f2f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::file_system::client_fs::write_file (cognitive 18): xai_grok_workspace::file_system::client_fs::write_file has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/client_fs.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c88123638f187f400019615d65fff39e49429d92dbabdeef457a59d1797efc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::hub_gate::settle (cognitive 18): xai_grok_workspace::permission::hub_gate::settle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/hub_gate.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d70f42705a48d2e69e5eee078ad0721270d1562b0d3199774aefc5f2c81319a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::state::cleanup_stale_permission_state (cognitive 18): xai_grok_workspace::permission::state::cleanup_stale_permission_state has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/state.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a161a8c2aef15ea0b6a70535abb11413dbc3fa2e8ea437b8b0fe35f9b88320"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::git_cli_pin_scan_cwd (cognitive 18): xai_grok_workspace::session::git::git_cli_pin_scan_cwd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba13cde53667c7a128b3ca7f99e4bdee44459ef72adf3a9d44f5abd78c40df4e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::commit (cognitive 18): xai_grok_workspace::session::git::commit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":2967}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d01ec73d1742355a149ff66e92300c93d9c1b7440e2e1ce761dd90e590cfda"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_tool_types::schema_utils::resolve_ref_type (cognitive 18): xai_tool_types::schema_utils::resolve_ref_type has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-types/src/schema_utils.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7240aa7b3bd462e9642372efc3442aeba70e29e9890f9f1c95dcc0f0578d205f"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal::native_copy_text (cognitive 17): Terminal::native_copy_text has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 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/codegen/ptyctl/src/term.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d050486d21a1416d43f5f49cae902f4cc36665dd09296897cf3e15b5f6b3d7da"}},{"ruleId":"D2","level":"warning","message":{"text":"ptyctl::server::handle_ws_connection (cognitive 17): ptyctl::server::handle_ws_connection has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 2 (6 pts), loops 2 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/server.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e260aeb1fadce14004a374c36ea0f2d40ec8f3827a0412a4c027ad7686e67f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatStateActor::handle_command (cognitive 17): ChatStateActor::handle_command has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 3 (5 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f13dfe20bbfab68d9de8bc43859c37c44dcbda153ee0217b876522a08c2c8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::bin::pool_perf_bench::compute_summary (cognitive 17): xai_fast_worktree::bin::pool_perf_bench::compute_summary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e53cc406369e9960dbd04801eba273921f03be320cf5bb8540487d3f64b2ec"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::discovery::scan_two_level_dir (cognitive 17): xai_fast_worktree::discovery::scan_two_level_dir has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 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/codegen/xai-fast-worktree/src/discovery.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"017762c9c0b1d404e88801e1a1d6ae4d9f9c69944a3f0ed4a6cdb5b214cef21b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_file_utils::storage_client::upload_part_direct (cognitive 17): xai_file_utils::storage_client::upload_part_direct has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 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/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2937a60870633d512ffc112a2567e237d7842507ee3de0e543a1125dc3660be"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_agent::plugins::registry::plugin_mcp_server_names (cognitive 17): xai_grok_agent::plugins::registry::plugin_mcp_server_names has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb53f3cbd1dbd048b96242f0692097e0a1cab1edbbb9e22d048ad2b86350d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_cloud_config::managed_config::store::apply_fetched (cognitive 17): xai_grok_cloud_config::managed_config::store::apply_fetched has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d323ea5c829a5e6666dc6b9ebe8bdc25f3836f41692f072c8bb1958418060ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer::render_game (cognitive 17): Renderer::render_game has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"92734eb0070a775db7f09aefee05aec3e570c33f58dd94e69e4a93411e0673a4"}},{"ruleId":"D2","level":"warning","message":{"text":"FireSim::draw (cognitive 17): FireSim::draw 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/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfa7f838cfd4df49b666d65de263c72ba4899cafc2c5f703a3e33abc5e179a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Map::los (cognitive 17): Map::los has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/game.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c473ce34700770959141675a567dfbdb8ff22c8673281c04dcef272d8e14ad"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_graph (cognitive 17): xai_grok_markdown::mermaid::parse_graph has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6264ccee376c64dbd827e25b78bb9ac1f2f72755be5ace73d0a48ae2ce5d78d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::mermaid::parse_transition (cognitive 17): xai_grok_markdown::mermaid::parse_transition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 3 (6 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9511522c8ba91aaf2b38f5534432b8caf3476b0be86f16f53fcf82ee794c61"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::parse::find_substring (cognitive 17): xai_grok_markdown::parse::find_substring has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"482e62a459cfc7b6278fdbb4635f3395fde30010cf1a374298c7cd4c82d9bc81"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::v2_capture::safe_session_name (cognitive 17): xai_grok_memory::v2_capture::safe_session_name has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c707bfcbd3598a4a14a146abc948b4526ab7a9f3db42c4a4ec6188d3db45d58"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::card_esc (cognitive 17): AgentView::card_esc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/key_owner.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ef9261bb3cde9c5d991add8cd7c8fc741a6a1095a392adf2ffc995f125f608"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::build_inline_media_escapes (cognitive 17): AgentView::build_inline_media_escapes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/media.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"be948a787c3de9c975776c1efe8b5ddd4fc37ecd5f50c98fc7eb8827b1450354"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::activate_dock_item (cognitive 17): AgentView::activate_dock_item has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5fc4aa9da1d85e77d6448bea1c82406a43899004979afa2d20afdefad759d7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::finish_block_drag (cognitive 17): AgentView::finish_block_drag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"270c98b33784dd714d5be54f95ec9ae42f7fa7d0e78f7908d7fb2d6366a094d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadToolCallBlock::collapsed_line (cognitive 17): ReadToolCallBlock::collapsed_line has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e0fc498c241de7e3b3badb987ca5bc1c27cfca652d9f0a6ab9a74585fef4ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadToolCallBlock::render_content_lines (cognitive 17): ReadToolCallBlock::render_content_lines has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 5 (6 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90a5a3e4fda1aa919f6c24528917531e52d9e5c181ddf5bea6e9305a0d9ad84"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchToolCallBlock::header_line (cognitive 17): WebSearchToolCallBlock::header_line has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a92aeae3d62dab7b0912fc93f19470b991720f56ca7859be5240150b8fd4545"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::extend_layout_cache_with_new_entry (cognitive 17): ScrollbackState::extend_layout_cache_with_new_entry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a63f2ada12ad2af9e3c7524dc1402aa216d45ab6387d6b536b78dd060cf495d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::prev_turn (cognitive 17): ScrollbackState::prev_turn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29e60dcb8f5ac22378222534cc2ad66f31fdf15a3f10615a9677b08821a9a76"}},{"ruleId":"D2","level":"warning","message":{"text":"SlashController::refresh_mid_text_slash_args (cognitive 17): SlashController::refresh_mid_text_slash_args has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"122fa0b25395a8a744c8cc548eb0ebd3068e92963d608fc0dfa0c6ab5255de0a"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardState::handle_location_picker_mouse (cognitive 17): DashboardState::handle_location_picker_mouse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3832}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3162d2857a3cee9410dbf9d3d5a7f52c3d0f2645603c42b786a74c90deecb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"LineViewerState::interleave_comments (cognitive 17): LineViewerState::interleave_comments has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (9 pts), if/else 2 (6 pts), boolean chains 2 (nesting depth added 7). 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/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0e96915c80ef935f757ffea8c4d3470a80befc4b6fea5b74a4609939d0857f"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPane::render_item_framework (cognitive 17): ListPane::render_item_framework has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a37cf07362b3af96713c4d64575fb52aefc613f29ee199b64958cfbd2d598a"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::copy_selected (cognitive 17): ListPaneState::copy_selected has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41631f4feb4517163bc9d75e6519b6593d806b2d98bef0bd16734161f3dd9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::select_nearest_at_y (cognitive 17): ListPaneState::select_nearest_at_y has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb05e642a0a23995dfb3ec39a9b015dda710bc1d0c428499c1b8b044a576918"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPaneState::handle_nav_key (cognitive 17): ListPaneState::handle_nav_key has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35ca9028e52090c91f2a5263ad60a4c4c2dd49295f2cd8a597113737263dede"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::background::route_bg_task_stdout (cognitive 17): xai_grok_pager::app::acp_handler::background::route_bg_task_stdout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d5ad2a45642df005a07201de9fa406a32731bc711492039e068989c6b5280b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::session_notification::detect_plan_mode_change_replayed (cognitive 17): xai_grok_pager::app::acp_handler::session_notification::detect_plan_mode_change_replayed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"5940ebb30aad78187232d3d33709a36b30285fe4feb970692bf876b3a80f3553"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::cta::handle_plugin_cta_catalog_loaded (cognitive 17): xai_grok_pager::app::dispatch::cta::handle_plugin_cta_catalog_loaded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/cta.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a075130fe598bea472e27177353a3aa58e09516c98d2efa55de8791a6b560e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::dashboard::stop_top_level_activity (cognitive 17): xai_grok_pager::app::dispatch::dashboard::stop_top_level_activity has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (4 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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"4286fca6642c6cd47c033374db9e51516c562bb5a71c223c2f4912c26e5ef59f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::prompt::dispatch_revise_plan (cognitive 17): xai_grok_pager::app::dispatch::prompt::dispatch_revise_plan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"03351bf123392d798bd6f1186766c323471936ea28ebc76dcd9dac8238ca0f65"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::handle_worktree_session_created (cognitive 17): xai_grok_pager::app::dispatch::session::lifecycle::handle_worktree_session_created has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f0203ca4a83362621ebee4b6e924bb70386a9cd0617cb733f8cc14ea8886a8"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::session_startup::session_startup_intent_from_flags (cognitive 17): xai_grok_pager::app::session_startup::session_startup_intent_from_flags has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d444396b8e662d8056192ce249c88f4bb167e066d9f0ea980b5ab77820edea"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::session_startup::resolve_local_workspace_config (cognitive 17): xai_grok_pager::app::session_startup::resolve_local_workspace_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63edd47ddb25d29ba676a4deb0e6004ec3e5d0632a72c17e3912beeea0b7e74"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::session_startup::materialize_startup_for_cwd (cognitive 17): xai_grok_pager::app::session_startup::materialize_startup_for_cwd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"68136c7c59bdac7480d3890c8138ae43daf6f84cd92ec99ab7e4509f89f5b050"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::headless::track_background_lifecycle (cognitive 17): xai_grok_pager::headless::track_background_lifecycle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca43c9fef8c8af6425228ff68fc559e2e54cc4f9630b77c81460646a1fe590fc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::state::verb_group::run_step (cognitive 17): xai_grok_pager::scrollback::state::verb_group::run_step has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/verb_group.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35e2a5363980dffaff048b37be0da6843abb37736c92670d30b55dd043b2e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::slash::commands::export::list_path_completions (cognitive 17): xai_grok_pager::slash::commands::export::list_path_completions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/export.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"067f917dac583abfb843f7044a298f7cf6f6a571f6b3440d4a0a7bd06da16a86"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dashboard::chrome::render_header (cognitive 17): xai_grok_pager::views::dashboard::chrome::render_header has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/chrome.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b4d7c9a69fa8fcb3a88d62c69109ab25c0c6f6badc56ba50586dbb120ceb52"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::dock::render (cognitive 17): xai_grok_pager::views::dock::render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 2 (5 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/codegen/xai-grok-pager/src/views/dock/mod.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"893ca08359fd7803a770579ba17b644c540bd9b6a4e9124f5f542157ee38ec9f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::elicitation_view::render::field_row (cognitive 17): xai_grok_pager::views::elicitation_view::render::field_row has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c862b48ea5ee693c849cf2a9a34cd9b044896d96d843a4cfcf330d5f0daa3f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::build_mcp_servers_picker_rows (cognitive 17): xai_grok_pager::views::extensions_modal::build_mcp_servers_picker_rows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"73370d5783a40ef305c19d13294748640506115d3b680fb1947fb779c7ee6f55"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::modal::render_modal_overlay (cognitive 17): xai_grok_pager::views::modal::render_modal_overlay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a71be5b77e7e1b323d5a15cb5947c3b6c413a10db9bea10f18fd7fae2c241a3"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::permission_view::build_permission_option_line (cognitive 17): xai_grok_pager::views::permission_view::build_permission_option_line has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a55d742d8386f76c68d45b29bac498455ab9da34ec3c65edee42d34e86614e"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::persona_detail::word_wrap_lines (cognitive 17): xai_grok_pager::views::persona_detail::word_wrap_lines has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bf8f83606c0207ef3214a231382f6ad906986c004c9c94c25c51fcc5df417a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::prompt_widget::wrap_voice_interim (cognitive 17): xai_grok_pager::views::prompt_widget::wrap_voice_interim has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea57c26d21bf688acd242686fcbb4206c4e40ce4256d4bdd8e9a876ad7d31817"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::timeline::render_tick_hover_popup (cognitive 17): xai_grok_pager::views::timeline::render_tick_hover_popup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/timeline.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96b157783d4e98bdca9ed5eab1953d73d4ef80a59d646ef0025251a128da499"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::welcome::workspace_mode::prepare_welcome_workspace_for_new_session (cognitive 17): xai_grok_pager::views::welcome::workspace_mode::prepare_welcome_workspace_for_new_session has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/workspace_mode.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4810d3408b0c974ca5f3e08594053cf5eab6f94f8ca1cbbb05a9b31ea3c9b59"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_bin::kill_leaders (cognitive 17): xai_grok_pager_bin::kill_leaders has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94a57029929c467ed2206863e809c311566ce74fc61db12e7166f2cd99430ef"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::commit::expand_pending (cognitive 17): xai_grok_pager_minimal::commit::expand_pending has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/commit.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b4d8975371b390470cfdfb96e71ac41c5053637b475032fceff8c1fd616df1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::clipboard::trust::resolve_copy_decision (cognitive 17): xai_grok_pager_render::clipboard::trust::resolve_copy_decision has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/trust.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f200267ddd96fd258cda735f983c3764786c880de00e335e26b0ad066c40ea73"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::bidi::reorder_body (cognitive 17): xai_grok_pager_render::render::bidi::reorder_body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fb78108fb6c9e28791c0ac2e88b10ca754b63f21ac18996c31e5b8e8f4b1bf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::line_utils::fit_line_to_width (cognitive 17): xai_grok_pager_render::render::line_utils::fit_line_to_width has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/line_utils.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7be5b6c4930569e51dbf0e81c602c26fe267e8d9df5495a48d682d2907cc69"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::managed_policy::url_match::warn_on_unmatchable_allow_url (cognitive 17): xai_grok_permission_rules::managed_policy::url_match::warn_on_unmatchable_allow_url has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6fdce2da2e7b0e85d1b8b977fc346b974355fd0968c0b81346a6a606d4b050"}},{"ruleId":"D2","level":"warning","message":{"text":"SamplingClient::post (cognitive 17): SamplingClient::post has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ceba8e76ade451cc761d7ec2005f1ffb8e363b51f550351b1d5ee434bf0cba2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::violation::propose::propose (cognitive 17): xai_grok_sandbox::command::violation::propose::propose has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/violation/propose.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b29cc7034cdb4cd1ad6b3fcb4b824239756c3066608c31786309c8bbdc7aea"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivity::flush_all_sessions (cognitive 17): AgentActivity::flush_all_sessions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/activity.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4df8a1c8272230ee40cbef573dce9723b95bd4ed83950e8dd830c8872d814d"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::handle_evict_sessions (cognitive 17): MvpAgent::handle_evict_sessions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":2523}}}],"partialFingerprints":{"codehealthFindingId/v1":"23236ddaeba1ef3ffd863a4cfb8786d814c8979964527ece71c87e9b22d87be4"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::resolve_agent_definition (cognitive 17): MvpAgent::resolve_agent_definition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":3906}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09dc85c23a1f0003ec39e44c3b2ad070ad17a13caf79106a8195a30cebead29"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::spawn_heap_profile_monitor (cognitive 17): MvpAgent::spawn_heap_profile_monitor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/heap_profile.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c48e40535729089425f3f9701db0530ff9bc1ec0a68adf8a733cefc85184dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRegistry::resolve_identity_stamp (cognitive 17): SessionRegistry::resolve_identity_stamp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"79500e0961feba91ec476f39d655a136d637bc3fa40e889de8d1168c199e13c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::retry_auth_required_servers (cognitive 17): SessionActor::retry_auth_required_servers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1322d44a7cd4ae26d0c5abae15effc133774ad59d2831aaf69225900d608eccf"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::run_dream_inner (cognitive 17): SessionActor::run_dream_inner has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8 (9 pts), if/else 5 (8 pts) (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6b7d647175a4fd775b4bf97d4df9b4e4d3eb64d238823c59b485d9c7c1c440"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowManager::cancel_all_and_drain (cognitive 17): WorkflowManager::cancel_all_and_drain has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3, 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/codegen/xai-grok-shell/src/session/workflow/manager.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6c5eb2607ded093ee5bee8ba7a8d71036e7b0e1d169ab29761a6ba6410f388"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::fs::handle (cognitive 17): xai_grok_shell::extensions::fs::handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/fs.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d535fab686e5fc7ec6dd40569d5234e1742ecf08762036f582cf36342a9da3cb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::suggest::path_provider::scan_path_from (cognitive 17): xai_grok_shell::extensions::suggest::path_provider::scan_path_from has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/path_provider.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ed6d8f497a5e42038c13ac5ceafffd63bd859192266bc7815aebf00b159218"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::leader::discover_leaders_in (cognitive 17): xai_grok_shell::leader::discover_leaders_in has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 4 (7 pts), loops 2 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9268870a30b98870a8e84ac4a0c8b0a27791b3e89d7a1c67272e53bbb3c7a86b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_subagent_resolution::context::normalize_forked_context (cognitive 17): xai_grok_subagent_resolution::context::normalize_forked_context has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (8 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-subagent-resolution/src/context.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05908163ff98637edfe2482e22403e793333ea6494500dea3e9459351e0964f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFileTool::execute (cognitive 17): ReadFileTool::execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 2 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb01231b959def74e5fb41cb66afc2dcdfa53cd656f3c98d80f071c8622f0ffe"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::card::finalize_grep (cognitive 17): xai_grok_tools::implementations::grok_build::grep::card::finalize_grep has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 1 (2 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"794d7f0918146a508aacf84fc6712aa66f82313796f8bc8455ce136b36264e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::grep::ripgrep::rg_from_path_or_runfiles (cognitive 17): xai_grok_tools::implementations::grok_build::grep::ripgrep::rg_from_path_or_runfiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/ripgrep.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0dc1262b2a6fb4689cf8f508c323ceb7242aa39130ff279750cd614170cbf4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::types::params_validation::value_at_path (cognitive 17): xai_grok_tools::types::params_validation::value_at_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/params_validation.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0360ded63e523a6c3e575a0fb2c340b0c947f60df2674b9b34b5bc7d4c797be0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::command_display::peel_cd_prefix (cognitive 17): xai_grok_tools::util::command_display::peel_cd_prefix has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/command_display.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4ef14b5b169b0c2fc72759a472db207818ede74d52d0ca22d56483e09a2871"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::git_detect::strip_invocation_prefixes (cognitive 17): xai_grok_tools::util::git_detect::strip_invocation_prefixes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, 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/codegen/xai-grok-tools/src/util/git_detect.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b740bf02b253c4e0ee84ac1023b8c6d2e732d0d9c87aa071dc54a33bd08b3777"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceHandle::rewind_to (cognitive 17): WorkspaceHandle::rewind_to has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/checkpoint.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afff3585aff7294448ad06d24cfb92ac99b66d3ec8460692029d2a68f149e30"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::envrc::load_envrc_via_bash (cognitive 17): xai_grok_workspace::envrc::load_envrc_via_bash has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (5 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/envrc.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65db845ecb070e0a7300d12e4ab5c35820c67a7c4b437b1a040c2a04159b4f1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::mcp_claim::plan_claims (cognitive 17): xai_grok_workspace::mcp_claim::plan_claims has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (6 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/mcp_claim.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"845b4755b11d4e1c207de4a38a3ad6f9773449681ddbd58903b16d4fb0baa9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::sandbox_wire::decode_reply (cognitive 17): xai_grok_workspace::permission::sandbox_wire::decode_reply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (8 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_wire.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd71c85ae5f69337540ebe73553b05a7e89f8e9b2297e3f9480eeb87c7fffbb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::restore_fetch::read_stderr_capped (cognitive 17): xai_grok_workspace::restore_fetch::read_stderr_capped has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/restore_fetch.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"72260af7bcd3d62536cde1eca5aa0f46d471abbdb96853fbacc2b4eb9ebbfcfc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::relocate_pre_virt_files (cognitive 17): xai_grok_workspace::session::relocate_pre_virt_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/mod.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84daa428733fe4797dc3c489a671fca5ad2e0fc33c57936f140f4c3b33f89fb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::checkpoint_store::load_capped_from_disk (cognitive 17): xai_grok_workspace::session::checkpoint_store::load_capped_from_disk has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 3 (7 pts), loops 2 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/checkpoint_store.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f71670f7c872f8fd5400efe5a6aed7f850452bb022416484e6c73d4b472bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_ratatui_inline::resize::resize_viewport_height (cognitive 17): xai_ratatui_inline::resize::resize_viewport_height has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/resize.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"70df0678a7a97990a2cc3ba0731186df8c8174476320fa01a1f07b9ec43baf9e"}},{"ruleId":"D2","level":"warning","message":{"text":"XaiProtoBuilder::emit_rerun_if_changed (cognitive 16): XaiProtoBuilder::emit_rerun_if_changed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/build/xai-proto-build/src/lib.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d04ae4b282970a0a887b7f376775b34bb8f8067263ac7d37af5772a46c6052c"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexManager::spawn (cognitive 16): IndexManager::spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff5c104ebafe4bcb978863e73bf976ac4281eb6af5d6b0b31dd277c1d497959"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::bin::pool_perf_bench::main (cognitive 16): xai_fast_worktree::bin::pool_perf_bench::main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b2fbd867a02cf55ab9a44e76b7620a96c4547a65b1351ee4dc72ca9b94de31"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_fast_worktree::bin::worktree_lifecycle_bench::run_controller_inner (cognitive 16): xai_fast_worktree::bin::worktree_lifecycle_bench::run_controller_inner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"417c262fa661c4766a0b9244e896072dd1f941721bb5f3777fc9f90b9127fdd7"}},{"ruleId":"D2","level":"warning","message":{"text":"Watcher::event_sink (cognitive 16): Watcher::event_sink has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"200708b8b3aebaf78c8f83ebdde0e6cfbf4d981dc440aa346d62e0ebccade9bd"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_config::fs_atomic::read_followable_link_target (cognitive 16): xai_grok_config::fs_atomic::read_followable_link_target has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"503d14f610c9c1a5ab9a850a27f439d0093599c7318f79cea69239c83b658adc"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryConfig::resolve_settings (cognitive 16): MemoryConfig::resolve_settings has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (8 pts), boolean chains 6, if/else 2 (nesting depth added 2). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config-types/src/memory.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b17871c1fe593cb25c39cd3ec8928de0349636e7bef311e2784fa862d68df6"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_egress_proxy::tls::inspect_records (cognitive 16): xai_grok_egress_proxy::tls::inspect_records has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 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/codegen/xai-grok-egress-proxy/src/tls.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3ad53de65a28931d8e2bba12f37908e996783a2b6c3791a06e01ede0a2d55c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_file_lock::lock::lock_file_with (cognitive 16): xai_grok_file_lock::lock::lock_file_with has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 4 (7 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-file-lock/src/lock.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a04280ad66894133debdbbc3458e754177fa311580ff0ae3249feb1d20570d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_foreign_sessions::claude::projects::scoped_project_dirs (cognitive 16): xai_grok_foreign_sessions::claude::projects::scoped_project_dirs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude/projects.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"09baa377d7b7f0ce9220e5ffa1551a3dfb14d707105fd9191ef0015b5796819b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_hooks::discovery::load_hooks_from_directory (cognitive 16): xai_grok_hooks::discovery::load_hooks_from_directory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), match/switch 3 (5 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/discovery.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"667cddfbfd91d5117085101811897969e182b49f30b5f4193d35f21d0b50b048"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_http::send_with_retry_escaping_pool (cognitive 16): xai_grok_http::send_with_retry_escaping_pool has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-http/src/lib.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ed5eb3597c13987d420863ed08f1ba5792601ea50b8546abc4de28ab7ed87"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_markdown::latex::environments::matrix_delims (cognitive 16): xai_grok_markdown::latex::environments::matrix_delims has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"0168273dea2c7605dd9bf961a9e343cab4ad762e290b226798b9e64de65a8100"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchDreamSession::check (cognitive 16): BatchDreamSession::check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_plan.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f526a385131cb982eaddc75e8deeb61c6008a0a08ca85ccb04b160836ed1036f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_memory::batch_dream_outline::scan_lines (cognitive 16): xai_grok_memory::batch_dream_outline::scan_lines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_outline.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"109195b071ca654d4f618706703bece1c2fc40075cd5fae53c5337b5f8cc4668"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionRegistry::lookup_with_mode (cognitive 16): ActionRegistry::lookup_with_mode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/actions/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"090c2b496654485ec53ded3cffc62ba9809eb0b4f9d2ce6178d546473e9a9deb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_cancel_turn_mouse (cognitive 16): AgentView::handle_cancel_turn_mouse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b4fccf5e2207e70a23586c740d7db2e4bc5abff4c70a618e122b7059b1e18c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::handle_dock_key (cognitive 16): AgentView::handle_dock_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f65f38041af50a704f90d77786758adf1d7457be80eda439194913d0990a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView::complete_clipboard_attachment_paste (cognitive 16): AgentView::complete_clipboard_attachment_paste has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"257f4af9ad02c8ec6eb33c13e04293d1d4c1922d233236a34d5798d4d0cf2116"}},{"ruleId":"D2","level":"warning","message":{"text":"AppView::apply_queue_changed (cognitive 16): AppView::apply_queue_changed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"34df22b0cb53f1f6e167465814a2930a87790da377ed45cd770b93d5d88107c7"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentLifecycleState::reduce_spawn (cognitive 16): SubagentLifecycleState::reduce_spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"968b98174c2bcc157c616e4fae11b7f71c4788f3cfeab615893b0cca4861826b"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentLifecycleState::reduce_finish (cognitive 16): SubagentLifecycleState::reduce_finish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d682dfb94c99b44b5932389d326d9ac152980088a66abaf36a46d7061b5174"}},{"ruleId":"D2","level":"warning","message":{"text":"XtversionFilter::filter (cognitive 16): XtversionFilter::filter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/xt_filter.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b9254388eac98c6f19bb8fac3948f2114efea1dcbf179343a550b8199a01f3"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationService::on_tick (cognitive 16): NotificationService::on_tick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/notifications/mod.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"132d4257b84e50a1bdff4452b3bc2441d4df49cd660a39742a39d7956cc47de4"}},{"ruleId":"D2","level":"warning","message":{"text":"EditToolCallBlock::header_line (cognitive 16): EditToolCallBlock::header_line has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc0c705d01691179c083c41205c61534c6710be10c147b6719feb5a7cca4a39"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecuteToolCallBlock::push_command_soft_wrap (cognitive 16): ExecuteToolCallBlock::push_command_soft_wrap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f4147155428641fa0f03431f71598696bf50cd35b8a06c45581cd3cb1832f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollbackState::replace_tool_block (cognitive 16): ScrollbackState::replace_tool_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"43946fb26dcbed22a9da82e25ec8da72305965cf89cfcb0fdfe88dfa1a3b75fe"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockViewerPane::process_pending_copy (cognitive 16): BlockViewerPane::process_pending_copy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc7331f694a14a4c32c34cae892f2003103b32b41b2825652a81791e3002cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionsModalState::is_group_expanded (cognitive 16): ExtensionsModalState::is_group_expanded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71623e2cf69564f7d119083f2d6d29348bbb0a140c715092ce9ad4ae891513c"}},{"ruleId":"D2","level":"warning","message":{"text":"QueuePane::sync_from_merged (cognitive 16): QueuePane::sync_from_merged has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, loops 2, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b3978fe6195a963d39edfa64e0059d929700410b41a22ad53b8f24234e6c40"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksPane::render (cognitive 16): TasksPane::render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7b1c50ccf6ba31d3528f87e47fed83dfb3f9c50a4a1a85bb55a341ffbb51a5"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksPane::render_bg_task_overlay (cognitive 16): TasksPane::render_bg_task_overlay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"82de3fc004ab0a2bb1dfdeaf52d71cf7d1e12c4c407353b7745e2409726737fe"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::acp_handler::permissions::build_permission_display (cognitive 16): xai_grok_pager::app::acp_handler::permissions::build_permission_display has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/permissions.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1912b6ce112aa9737b62e1543f819dc26d6cbd0ab2a1842473c88d23ce44b578"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::inline_feedback::select_feedback_images (cognitive 16): xai_grok_pager::app::dispatch::inline_feedback::select_feedback_images has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/inline_feedback.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ef2aa6d8c754ba450c27b5d2ea5956654a316fdb6a89882757b2f19d56169a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::queue::release_queued_prompt_from (cognitive 16): xai_grok_pager::app::dispatch::queue::release_queued_prompt_from has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 4, match/switch 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece89e1b1d024233979e37b37800b31a465f75298f2e8d9d08087270c8996541"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::restore_orphan_create_draft_to_welcome (cognitive 16): xai_grok_pager::app::dispatch::session::lifecycle::restore_orphan_create_draft_to_welcome has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (4 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/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"309eda301c54c427a983c1539522baebc09e7046dbab4d489974218b37361a99"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::dispatch::session::lifecycle::handle_session_failed (cognitive 16): xai_grok_pager::app::dispatch::session::lifecycle::handle_session_failed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87e795eb17da70e2c9bc2ae320509cfa1183d3893e7b61b742f9fc626b10070"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::effects::helpers::extract_first_user_prompt (cognitive 16): xai_grok_pager::app::effects::helpers::extract_first_user_prompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"7851d139508a0132acce396a9e1e39adb803181cd7bd36b95e832ac01a60bdad"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::external_editor::finish (cognitive 16): xai_grok_pager::app::external_editor::finish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/external_editor.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6d33a4a632e83486ed7f0beafadeff9f0d22afce4b8328e2d6aac3ca0dd5f4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::mermaid_worker::sweep_session_cache (cognitive 16): xai_grok_pager::app::mermaid_worker::sweep_session_cache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mermaid_worker.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a1a8ab5616b62014a061c89e82cf98f083923c87b5951f60fa597cff704766"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::app::status_line::command::run_command (cognitive 16): xai_grok_pager::app::status_line::command::run_command has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (6 pts), if/else 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into 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/codegen/xai-grok-pager/src/app/status_line/command.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a31d92541ce3fc469b3a7e173f2b5f4572455733cd2db96f02cc713b617089"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::disk_usage_cmd::collect_worktrees (cognitive 16): xai_grok_pager::disk_usage_cmd::collect_worktrees has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (5 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/disk_usage_cmd/mod.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b41940523ef923dc08ecd8285f631cb23c7d5509ee31132a16c35aae417d8b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::docs::extract_user_guide_docs (cognitive 16): xai_grok_pager::docs::extract_user_guide_docs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/docs.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8634f844ce4497a02f1922f4df1815c18046719bb4d1d9afa9884ea55f2b64"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::memory_cmd::run_clear (cognitive 16): xai_grok_pager::memory_cmd::run_clear has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 4 (6 pts), match/switch 1 (2 pts), 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/codegen/xai-grok-pager/src/memory_cmd.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3abe55ced3e6f9fc26fefb3a07eaaabc61ddabe7f8e4151e31d25027fc4ceeb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::plugin_cmd::cmd_install_marketplace (cognitive 16): xai_grok_pager::plugin_cmd::cmd_install_marketplace has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 3 (5 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cf569828ce4105f89c65ecaca513f223147169db2522210027a4aed83b4a04"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::blocks::quote_bar::split_spans_at (cognitive 16): xai_grok_pager::scrollback::blocks::quote_bar::split_spans_at has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/quote_bar.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb0d82effdacf5729b7eea460f93427feed19ca63ce7c0e5da1db694ba31190"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::export::render_blocks_to_markdown (cognitive 16): xai_grok_pager::scrollback::export::render_blocks_to_markdown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/export.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a0254fa21917071c39c4974f23c1de11820e5ba53eba1826011de31faa0aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::scrollback::text_selection::render_block_drag_overlay (cognitive 16): xai_grok_pager::scrollback::text_selection::render_block_drag_overlay has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 2 (7 pts), boolean chains 1 (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/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce3e04e4bc3498d199182826e01f9bbf9f2e21ac34109988b508c267194173b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::sessions_cmd::run (cognitive 16): xai_grok_pager::sessions_cmd::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/sessions_cmd.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fe93b3662ceb4c8c57a44f299682d3461f49935879104f1c2847796fbb2b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::credit_bar::usage_warning_for_session (cognitive 16): xai_grok_pager::views::credit_bar::usage_warning_for_session has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/credit_bar.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc682873899e8557b47d40b67b2fafc9126bebf1070e3581f5069afc264543af"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::drag_select::paint_text_drag (cognitive 16): xai_grok_pager::views::drag_select::paint_text_drag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/drag_select.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a24439fa99a0490d885fc6786490aa5ef570906064cc9f5166307cf85665734"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::extensions_modal::selected_item_enabled_at (cognitive 16): xai_grok_pager::views::extensions_modal::selected_item_enabled_at has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 3 (7 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa727f9dc8361592fa95048f44c18b27e52b4bf9158790f3e465ddd6ca6113"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::import_claude_modal::push_grouped_items (cognitive 16): xai_grok_pager::views::import_claude_modal::push_grouped_items has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54e0e7e35ab828df149113c8cbafa084ab9fb822cf55cf6cd56a135d6577e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::persona_detail::handle_browse_key (cognitive 16): xai_grok_pager::views::persona_detail::handle_browse_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b4bfc398fac7b0e80216f05eede11ea32e27b71385a0cea629842c246fdc5b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::question_view::render_question_view (cognitive 16): xai_grok_pager::views::question_view::render_question_view has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9606c99fb280e682e4041b33ca6d8e749204b3abfb380fe2debf4307e447c99"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::rewind::handle_rewind_key (cognitive 16): xai_grok_pager::views::rewind::handle_rewind_key has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 3 (5 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/rewind.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c818e334a00491a010e5ab22f1706146304be3d0844dec6418a449c03b1551b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::slash_dropdown::build_highlighted_spans (cognitive 16): xai_grok_pager::views::slash_dropdown::build_highlighted_spans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fff23962813807d5a7be9333b14f52b2f56e31445b2c469c78c140022a63543"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager::views::tasks_pane::highlight_bash_command (cognitive 16): xai_grok_pager::views::tasks_pane::highlight_bash_command has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac265f29a407eea0ee8fc221d65fb3843e4763149b8dc7a4ebe734c98844260"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::live::draw_tail (cognitive 16): xai_grok_pager_minimal::live::draw_tail has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"474e11e829525ca29b7043e84cd476da1a5d4b2e2691c2b42d9523c765c04cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_minimal::reprint::reprint_committed (cognitive 16): xai_grok_pager_minimal::reprint::reprint_committed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/reprint.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc80656eb2c025021aafaeab9a47af264485dceadc859c5f846717502e36ff2"}},{"ruleId":"D2","level":"warning","message":{"text":"MouseScrollState::on_scroll_event_at (cognitive 16): MouseScrollState::on_scroll_event_at has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/mouse.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"d462f4e9f08e3cbbb4279ab294d00a25931da922ff9f9eabae97245a61d6b0b4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::color::blend_area (cognitive 16): xai_grok_pager_render::render::color::blend_area has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/color.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9883242445036a3e93662a3bd2e5cc2239d5e97a77eaee09b66cb4b09189dae4"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::render::wrapping::word_wrap_line_with_joiners (cognitive 16): xai_grok_pager_render::render::wrapping::word_wrap_line_with_joiners has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffda6a049692b05914a83f251c92eac24c9c9f41c8fd01622fb195814cb6e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_pager_render::terminal::image::place_inline_image (cognitive 16): xai_grok_pager_render::terminal::image::place_inline_image has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/image.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bafc86b099bc79db9e56155695cdd0b18be7cfddd25f606d767627ad657e79e"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledPolicy::bash_chain_fully_allowed (cognitive 16): CompiledPolicy::bash_chain_fully_allowed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy/bash_commands.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7b75111f45e6fb32c65c954af52d81c0ce67789c97ce467696caddf2d02840"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_permission_rules::bash_command_splitting::strip_command_prefix (cognitive 16): xai_grok_permission_rules::bash_command_splitting::strip_command_prefix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"3123021306cf98e5ab07c2ed0cd862d6ac328ee7059b017662ae53f5e50e59ce"}},{"ruleId":"D2","level":"warning","message":{"text":"MarketplaceRelativePath::parse (cognitive 16): MarketplaceRelativePath::parse has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (8 pts), loops 3 (5 pts), if/else 3 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/types.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf694576641d89005a377ab93215b89d8012cc5e060771fa938c11660ec6e46"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::repair_dangling_tool_calls_with (cognitive 16): xai_grok_sampling_types::conversation::repair_dangling_tool_calls_with has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 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/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd92f9476b97df1d8a53dc420b7ed0a010e48f7f8e61270d881111917ef627ad"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sampling_types::conversation::responses::response_to_conversation_items (cognitive 16): xai_grok_sampling_types::conversation::responses::response_to_conversation_items has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation/responses.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8343ba3a7a5e58b55dcf8ad3a388567ea2814628c2abf1fe395cc6f6e86df26"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::git_config::config_value (cognitive 16): xai_grok_sandbox::command::git_config::config_value has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"002641da1b95b2a199ec10b1c361beabff15058c48fcb51395e03aeee1021146"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::command::violation::coarse::words_with_offsets (cognitive 16): xai_grok_sandbox::command::violation::coarse::words_with_offsets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/violation/coarse.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c5a47984f84e25ca5c985aafe4aa132152c80d2b6e4540418e81d2ee061a94"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_sandbox::hook_write_deny::revalidate_plan (cognitive 16): xai_grok_sandbox::hook_write_deny::revalidate_plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/hook_write_deny.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a718b43055016a66ac3c807566e64a6c9c3025dce78e26dfea691cfe036949"}},{"ruleId":"D2","level":"warning","message":{"text":"MvpAgent::add_local_workspace_mid_session (cognitive 16): MvpAgent::add_local_workspace_mid_session has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841081d257c19121e74b37cb64a97337ac06c086970116540bb874f6e1f3ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigFileWatcher::start (cognitive 16): ConfigFileWatcher::start has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/watcher.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8270c36b23181cc3e4101af71f7aec93fd3e9df9a0f16b0d0625bb8ab2f8ab51"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::wait_for_mcp_handshakes_until (cognitive 16): SessionActor::wait_for_mcp_handshakes_until has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_snapshot.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0652e656af2ed10b02bf25420588a2c47f796f6340df13a2ac6fcbf70632c56"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::reconstruct_full_config (cognitive 16): SessionActor::reconstruct_full_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"915ea3d6773aea79eb6741d5d7b0c1a73ce7e6be7a13961a83dd4d59bf86085d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionActor::inject_plan_mode_reminders (cognitive 16): SessionActor::inject_plan_mode_reminders has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 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/codegen/xai-grok-shell/src/session/acp_session_impl/session_mode.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f4ecb22682b9abb12b1638f5ee5707bfc2d780a3e2b230877b53a3b5e00cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanGuard::restore_core (cognitive 16): PlanGuard::restore_core has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (5 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_strategist.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf76bce3b11d1f5804891c93c1c9c2d60c8f5fc09053c610e0d0d95b29ebb03"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::agent::remote_config::resolution::resolve_default_model (cognitive 16): xai_grok_shell::agent::remote_config::resolution::resolve_default_model has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/remote_config/resolution.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"77830340289dc6ee4aad8ffe48c5757dec727214163dc75a2b1e0442ede74b75"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::bin::chat-history-downgrade::extract_reasoning_text (cognitive 16): xai_grok_shell::bin::chat-history-downgrade::extract_reasoning_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/bin/chat-history-downgrade.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3038f52690c983b8b5056d27248090522c10ad0f76e711a05aa03059f1a988e7"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::marketplace::purge_default_skills_installs_impl (cognitive 16): xai_grok_shell::extensions::marketplace::purge_default_skills_installs_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/marketplace.rs"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e184b293a6b385d5ac71356662ab0a1d103bf822f3ae9c86c8360ad2f7c92e1"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::extensions::notification::project_result_usage (cognitive 16): xai_grok_shell::extensions::notification::project_result_usage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/notification.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"636fefbf41b88d97ccb7800305de78285e8fb45e22e6becacc2faba6bf5bb24d"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::laziness_classifier::build_classifier_turns (cognitive 16): xai_grok_shell::session::acp_session_impl::laziness_classifier::build_classifier_turns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), boolean chains 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/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf174151c4691133ebd91f4714ca40a8b2bd56db02797502a188e63c0b97b4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::acp_session_impl::laziness_classifier::laziness_window_start (cognitive 16): xai_grok_shell::session::acp_session_impl::laziness_classifier::laziness_window_start has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb058e116d756e33f5ec1502063f864b4e70d0a62aad4ae1ac94fff487b64f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::goal_classifier::parse_goal_kind (cognitive 16): xai_grok_shell::session::goal_classifier::parse_goal_kind has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), match/switch 1 (3 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/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a7792ab08fff80c374645adf9301aa55274d23f3e931d2c0b46808143772d9"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::image_describe::strip_template_context_tags (cognitive 16): xai_grok_shell::session::image_describe::strip_template_context_tags has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), match/switch 2 (6 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/codegen/xai-grok-shell/src/session/image_describe.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"daeb50e131dd6defcdfdebcf3f73cfb51d3942155fc67e6494ebc21b9b5bfacf"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::storage::chat_rebuild::rebuild_chat_history (cognitive 16): xai_grok_shell::session::storage::chat_rebuild::rebuild_chat_history has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcee1631bba2d175ff3fcf94126a11653a69f1f01336f9ede18b1c4b8510f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_shell::session::workflow::schema_contract::validate_contract_output (cognitive 16): xai_grok_shell::session::workflow::schema_contract::validate_contract_output has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/schema_contract.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b7cda326134854815a3c59b807980533febb90ca6ab7b64f81e0a168a66191"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_subagent_resolution::context::strip_xml_block (cognitive 16): xai_grok_subagent_resolution::context::strip_xml_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-subagent-resolution/src/context.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"af061df980a11886de4d7c03e557165438e700d9eca196ac500a53d6a60f53fb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_subagent_resolution::context::render_item_to_background (cognitive 16): xai_grok_subagent_resolution::context::render_item_to_background has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-subagent-resolution/src/context.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"872b41e61ccc63e9f41a3a32296b9b51d369a34ba0cd00f84bd049749f1bbc35"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_telemetry::client::track (cognitive 16): xai_grok_telemetry::client::track has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/client.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd8771f95805bb3b95808a486859fc2070ef1f4ef207e5672dc36b46f56ee1d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentCoordinator::handle_spawn (cognitive 16): SubagentCoordinator::handle_spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/spawn.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca289aa16c4763d857fe8e739d9aaddeaf0aca9870b63f2f871bb49d9c3e696"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::cursor_rules_on_read::scan_scope_dir (cognitive 16): xai_grok_tools::implementations::cursor_rules_on_read::scan_scope_dir has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/cursor_rules_on_read.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ad512a72ef26de1ac2ff56ddc4e9b5b981e048ee31b3222e63cf59732d4b73"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::search_replace::run_search_replace (cognitive 16): xai_grok_tools::implementations::grok_build::search_replace::run_search_replace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 3 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9324970ea965a09cdd19dbd300b7898de276fdcbd121e4edfc1fd79e096db939"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::implementations::grok_build::task_output::resolve_tasks (cognitive 16): xai_grok_tools::implementations::grok_build::task_output::resolve_tasks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 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/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"165ee871c9e8ec755d8b703338901f62538d7718cdcccf31eff98592053e8364"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_tools::util::base64_images::scan_and_extract (cognitive 16): xai_grok_tools::util::base64_images::scan_and_extract has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/base64_images.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"965b00c46aafeaa468937e987ada0421382edaf1319db53bd21608a72a017d68"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingSttSession::connect (cognitive 16): StreamingSttSession::connect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/stt/streaming.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc035993c55d47a960279badf5184e2f47be5e7b5bd61e73f35d294e813741c"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_voice::pipeline::run_voice_pipeline (cognitive 16): xai_grok_voice::pipeline::run_voice_pipeline has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/pipeline.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f8a75d447b62044066cb8f77272f49c8dbdbc4f2a7a4f0b71410c21f36f421"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_voice::probe::run_streaming_probe (cognitive 16): xai_grok_voice::probe::run_streaming_probe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/probe.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2056c5b3c76a00a15016c01975150406f12a8a495a2849e5821ce268b19e49"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndex::from_walk_with_options (cognitive 16): FileIndex::from_walk_with_options has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/index.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4533b6e369c445626f231a5ede9c81cfa214c901313e47eb14c4016ac9ccb38"}},{"ruleId":"D2","level":"warning","message":{"text":"HubHandle::fmt (cognitive 16): HubHandle::fmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9274ab59099ca593d21e088111717880460ef2fe0fd5f720e6c793476e03c8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::file_system::client_fs::remove_orphaned_staging (cognitive 16): xai_grok_workspace::file_system::client_fs::remove_orphaned_staging has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/client_fs.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"5802066dadcb13c1e4e64eb6edcc1a4b634f6760c6136fca895bd07d0eb377cc"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::permission::auto_mode::bash_command_is_routine (cognitive 16): xai_grok_workspace::permission::auto_mode::bash_command_is_routine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. 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/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"930f55e932dff5ca4233ed484b1169986172df8c1f3e7ec3ff06333ce1b45084"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::session::git::diffs_ungated (cognitive 16): xai_grok_workspace::session::git::diffs_ungated has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 5 (7 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a343873666eada4a5d39e08bb37b7465e93b024ec640f5d1de1cca98450982b"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_workspace::worktree::create_worktree_from_worktree_sync (cognitive 16): xai_grok_workspace::worktree::create_worktree_from_worktree_sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0f061d368c99c9286c87a951807cd2264ebb08a28d96e9a06d037be6951a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_hunk_tracker::loc::handle_event (cognitive 16): xai_hunk_tracker::loc::handle_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/loc/mod.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7036179eaf912e003b2878bb3dc16fb9f5cbacf27f0cd24a572f9fc33983018f"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_ratatui_inline::terminal::emit_frame_with_links (cognitive 16): xai_ratatui_inline::terminal::emit_frame_with_links has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b199e1e656462a8cfe8d242138c5e4d0bfc44af9679edbabcc6737c9e57b5eb"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_computer_hub_sdk::metric_donate::convert_text_exposition (cognitive 16): xai_computer_hub_sdk::metric_donate::convert_text_exposition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/metric_donate.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"861ec0bc74c73437d402a5c9dc2469a04d7250d99430f390a12d0701da2a5700"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/connection.rs: FileTooLong \u2014 1640 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 1140 over it, 3.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e8e9373afb4261ad155a38199f751f67a15cf3e56c1fd2dea75ed80b8e52ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/server.rs: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 916 over it, 2.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c228587ba6879ccc63ec36d547a2c84414702047777ea55a24b8b4ffadd5b17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/harness.rs: FileTooLong \u2014 1372 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 872 over it, 2.74\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a62afc5ab577b99745ba9eb2f686ca1829357ded1a2c8d1ba411fef39131ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/feedback_types.rs: FileTooLong \u2014 1067 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 567 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadb44c112edeb71e07dd6d5518743dd11a7b232536d04bc01f5cd1a011e5bde"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: SessionSignalsUpdate: TooManyFields \u2014 61 stored fields. The bar is 30 stored fields; this is 31 over it, 2.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"52835078bcc262b3afe3899a7a96d5554098f2834c2bd9dec7d23d0bfc75fc33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolServer.run: MethodTooLong \u2014 run runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ee0dcd6707426534ab9fa26b9954c305ea27f3836f4709845cb9efff6b9bcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_computer_hub_sdk::connection::run_writer: FunctionTooLong \u2014 xai_computer_hub_sdk::connection::run_writer runs 198 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc63a1605540454724b4d9fc2e452097a7af422d44aaa395332cc9468f606af3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HubConnection.connect: MethodTooLong \u2014 connect runs 186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a5aee3a690643121b83a67449057622916889a5db280129c11edf8ef57a3fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/task.rs: FileTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 412 over it, 1.82\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-types/src/task.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"527f5d2a8bc4ea926009b474beb9abe79ac4862d39cdbce94f90e5c817b61e7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_computer_hub_core::bot_tools::grok_bot_tool_arguments_schema: FunctionTooLong \u2014 xai_computer_hub_core::bot_tools::grok_bot_tool_arguments_schema runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-core/src/bot_tools.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4ac4e74949f73d91c4a7a247c11800e36be68ec642455a09acb4e447e85fcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_computer_hub_sdk::connection::run_reader_actor: FunctionTooLong \u2014 xai_computer_hub_sdk::connection::run_reader_actor runs 175 significant 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 75 over it, 1.75\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/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0447954243b569d7a6f251c452fa627e217cb936a4a090bc43b25e48c13f285"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: SessionTurnDelta: TooManyFields \u2014 52 stored fields. The bar is 30 stored fields; this is 22 over it, 1.73\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ec1bda804835c1785db13dd6ec51b030d93850169a43268a7b13d78dc10f8e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolHarness: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b43897f82309393f1cbd9c960541b403ae93e729328453d505b8fbac73894d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ToolServer: ClassTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 32 methods, 5 blocks, lines 681-1963. The bar is 400 significant lines; this is 224 over it, 1.56\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"def22e3fa89e279887cc4cd3542d3bd7ff1aefe66f1e87e0fd3d7cbe369d9e41"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer: FunctionTooLong \u2014 xai_grok_compaction::intra_compaction::fit::fit_turns_for_summarizer runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/intra_compaction/fit.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5fce6a695938fe92ea6b34804668d42dac2ed4f5be90857a3a3c8a676772e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_computer_hub_sdk::server::execute_call: FunctionTooLong \u2014 xai_computer_hub_sdk::server::execute_call runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c84cd1b6b1c8574de61bd45b50738c006bb07984de23691cdf6d3c2932a2df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ToolHarness: ClassTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 47 methods, 5 blocks, lines 601-2209. The bar is 400 significant lines; this is 202 over it, 1.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bd73cda71c34f0bc02d760673ec0e664eab586ac1477ea49c5c8ca75b99b86"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: FeedbackSubmission: TooManyFields \u2014 40 stored fields beside 3 methods. The bar is 30 stored fields; this is 10 over it, 1.33\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"792933c679289fb9469b2c5162e3012c4215b3f0a2e1f70689e4fe40d7722265"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xai_computer_hub_sdk::metrics::inner: TooManyFunctions \u2014 39 free functions. The bar is 30 free functions; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/metrics.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa38aa68cdcb9fcc74294f05e733551acbfa68f834e911187b8c7069006f4ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/frames.rs: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 141 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-protocol/src/frames.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd90d56daf1984e85a750cea0729fe46a55bd03e596b3c964edcc06437d0180"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/bot_relay.rs: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-protocol/src/bot_relay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05742562706100e6913f87c44791ee6fbc609cc1ed0b4dc9bc9072920b35bf37"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolErrorWire.from: MethodTooLong \u2014 from runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-runtime/src/error.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dd72cc92477b8022bf3bfc6623195fa979068281e5c1956e5cb8f2feb81b9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: SessionSignals: TooManyFields \u2014 35 stored fields. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff8ac19a19e618cc8e5ea5f952d3e565a4b64955acbb692d7aef7a9343c0ad9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolServerBuilder: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"39580c77caa82631f3e1bb578ca3b66513bcf23089560b53b4aa0363dd74c0ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: HubConnectionInner: TooManyFields \u2014 33 stored fields beside 7 methods. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87ffd585ad5ce83cd2cdbcb2e2be7fbaf02e918287b6250d837c028ef2637f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolServer: TooManyMethods \u2014 32 methods, declared across 4 files: src/server.rs (29), src/log_donate.rs (1), src/metric_donate.rs (1), src/trace_donate.rs (1). The bar is 30 methods; this is 2 over it, 1.07\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/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"554ea5c95aceae4983a22cd81149bd353ea3c178746b18af6b458cbceed368b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xai_grok_compaction::inter_compaction::compact::sample_compaction_chunked: FunctionTooLong \u2014 xai_grok_compaction::inter_compaction::compact::sample_compaction_chunked runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/inter_compaction/compact.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f054d7d78c00b1366bca462f2c249d57da393bafc34373f0a30a14a4c077854b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 30 shared lines): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1125-1342 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:140-300 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1075-1213 \u2014 These 3 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc0c8849d2f2d243cc3b903bfcf2aeb42104c487c43d368d0e346ccdfadc94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (93 shared lines): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1907-2259 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2265-2467 \u2014 These two members are variants of one another: 93 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c520c687d43162b9979ff747e9904c6e896c95b094a4aa8e3bd187943c6d849"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:637-1052 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1160-1429 \u2014 These two members are variants of one another: 86 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1f55429b0b98838a29cf9bc38198787b29e63da54cf41bed1a76e8960b3247"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): crates/codegen/xai-grok-hooks/src/dispatcher.rs:735-834 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:849-939 \u2014 These two members are variants of one another: 67 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6512843f0425f76f05782fb1cdfb2062daf400559ff8bfded24978d3ee9f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:53-135 | crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:55-137 \u2014 These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/grokday.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a3612863ff35f8871a76225aba90de7a86e6fd9cea93356654c728328f602a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:776-901 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:940-1155 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"654c14d08c8c14df33f4a3fa24bfe6d5492cdfd657becb1d03178daa27d59ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:305-448 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:461-554 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"368c3b34764c093df70d4778a755b544d8f47b61bcc68164dbbde6e7273365bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): crates/codegen/xai-codebase-graph/src/manager/builder.rs:400-469 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:580-649 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/manager/builder.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c646e6d3fe09136a3762cdfadd7e47c3cc74e2b0675d248593d1f1533ab590f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): crates/codegen/xai-file-utils/src/storage_client.rs:699-795 | crates/codegen/xai-file-utils/src/storage_client.rs:803-912 \u2014 These two members are variants of one another: 40 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d953d4bec9bd88f37d4a69d42ffb2e522b08c02ce0eb71bab51fe1a13da5b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): crates/codegen/xai-grok-shell/src/extensions/consent.rs:21-94 | crates/codegen/xai-grok-shell/src/extensions/privacy.rs:20-90 \u2014 These two members are variants of one another: 32 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/consent.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a87b37e93de8e4fea3d3e8a32116b3929ccfc4bac482196d9a7fef06a530b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:559-589 | crates/codegen/xai-grok-shell/src/extensions/bundle.rs:261-290 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15b7f8328b97ddc8647dd7a0f564eec0672bb8a71f5327c0010f814611c9f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:3-51 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:53-90 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b7341f4a6205587f9d9323e0bc33e6da0ccbd5fc4385c19226fc8d99d731a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:228-275 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:418-488 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9598db8b600b01a3a3d957a310dbbcbc97d1105c032a5022186087be7a467c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:81-123 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:125-159 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:194-225 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:165-1637 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:103-128 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:132-166 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:156-177 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:317-336 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:693-711 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:735-764 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cdb8f104160f8ea381ffacdb22cd1d33bf8ed0f0cf04f89a3f5eaac12c3c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:243-255 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:315-328 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:258-270 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:233-245 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:279-291 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:320-332 \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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e76b429c7d75b8291620d7b818049abe23dd6ffab5582aceb9b1069fc91900c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs:189-384 | crates/codegen/xai-grok-pager/src/views/modal.rs:876-963 | crates/codegen/xai-grok-pager/src/views/overlay_list.rs:89-156 | crates/codegen/xai-grok-pager/src/views/permission_view.rs:432-714 | crates/codegen/xai-grok-pager/src/views/question_view.rs:1541-1689 | crates/codegen/xai-grok-pager/src/views/rewind.rs:321-546 \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/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"81696637951c8c41fd478c04ed198acdd90cf5201001f71edab5fe2908683bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/codegen/xai-grok-sampler/src/client.rs:924-971 | crates/codegen/xai-grok-sampler/src/client.rs:1065-1225 | crates/codegen/xai-grok-sampler/src/client.rs:1280-1384 | crates/codegen/xai-grok-sampler/src/client.rs:1423-1615 | crates/codegen/xai-grok-sampler/src/client.rs:1648-1742 | crates/codegen/xai-grok-sampler/src/client.rs:1775-1940 \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/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee8aacf33b7ccb5e96ef55c42919f2c13ae815adf3e9c76855bcf4c3f554124"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/codegen/xai-grok-shell/src/remote/client.rs:81-111 | crates/codegen/xai-grok-shell/src/remote/client.rs:468-490 | crates/codegen/xai-grok-shell/src/remote/client.rs:497-514 | crates/codegen/xai-grok-shell/src/remote/client.rs:516-532 | crates/codegen/xai-grok-shell/src/remote/client.rs:560-571 | crates/codegen/xai-grok-shell/src/remote/client.rs:573-585 \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/codegen/xai-grok-shell/src/remote/client.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"743a2198f1fe0ec8d32e9a1ac02918d579f6fb024768c5a50ad4338e0b7127e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:135-241 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:175-256 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:145-231 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:181-277 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:211-318 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"94554313dbcd8f3744b832e5c7e8cce0dad08ca5cbe35d57dde689741e2aedcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:134-210 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:213-240 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:249-289 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:294-329 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fb22fb604d23c82a66e0515326aea07946cc2d2badfe20f6843232262d35f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-file-utils/src/queue.rs:1356-1398 | crates/codegen/xai-file-utils/src/queue.rs:1408-1454 | crates/codegen/xai-file-utils/src/queue.rs:1463-1493 | crates/codegen/xai-file-utils/src/queue.rs:1496-1529 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c12f1612a5d81cd6d6075bc31443bc40ecab4042ba0f90b5fc86ccc654f03f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-file-utils/src/storage_client.rs:1034-1124 | crates/codegen/xai-file-utils/src/storage_client.rs:1134-1235 | crates/codegen/xai-file-utils/src/storage_client.rs:1574-1629 | crates/codegen/xai-file-utils/src/storage_client.rs:1639-1683 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6b57ae0d52c712870e3b38652299f7fd0718e76c4ba046b6f6b8c4d25e93d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:92-106 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:108-125 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:127-138 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:140-147 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bead6d8084694b390e387d7adbeed50969008f806cb960b66f2b33b8901ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-markdown/src/mermaid.rs:2351-2490 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2499-2633 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2870-2961 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3643-3903 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c663c0e665d5a89a6aa96151f0c2fce3adc5a17896b58ea68105d3c55c808ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-markdown/src/mermaid.rs:3103-3134 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3178-3206 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3208-3235 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3237-3260 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfdcaa255a0b936d47464dbd588eb41f0eab3ad82804142e5704084fa3741e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:1134-1338 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:650-1329 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:36-108 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:163-269 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b5751032105e40a169267fd9b843cb121138d7c23a12f9bcf79a7c5438d3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:73-119 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:117-159 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:100-123 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:93-147 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"27989ac415dacc59741f75f8fd80aec9b405dd65965a08a6ad080e96279433af"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1183-1242 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1251-1368 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1377-1501 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1510-1570 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7f654a9e6913de716c025e3a041969577b055077b64025b19e3a52383fab92"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-sampler/src/actor/request_task.rs:922-945 | crates/codegen/xai-grok-sampling-types/src/error.rs:382-408 | crates/codegen/xai-grok-sampling-types/src/error.rs:454-490 | crates/codegen/xai-grok-sampling-types/src/error.rs:493-513 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc31f3d19410e684813df42e2f712ca69ebf966792a6fc12ab22ef44b0d28aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-sampler/src/client.rs:2012-2043 | crates/codegen/xai-grok-sampler/src/client.rs:2049-2079 | crates/codegen/xai-grok-sampler/src/client.rs:2088-2115 | crates/codegen/xai-grok-sampler/src/client.rs:2121-2147 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb959f54ec71807b079c06acaa26d603f19a18a486f27dffbd223c5a4aea6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:109-154 | crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:123-145 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:394-416 | crates/codegen/xai-grok-shell/src/remote/workspaces_client.rs:78-136 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"163d913e6983ad8f4b169bfc73331aee18350b672c17f03936d33d42785b8a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:488-533 | crates/codegen/xai-grok-shell/src/session/goal_planner.rs:280-337 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:161-206 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:146-192 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"3443372e6b50cd2c5e4c0baf2e80cfdec3c206b8f2886448a9f949edbda15e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:100-112 | crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs:219-232 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:821-833 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:58-70 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"da915117614f166482f0bdcdcb37497545495f54a100cec23f15b2c62825dc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:297-408 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:528-780 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:277-360 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:371-508 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58bfafe5a13c09727ba8cae1984905e12195157302633636f7483e07c041689"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1430-1440 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1448-1458 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1466-1475 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1483-1491 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"765c48da7b3a8c0a9a702e2ed071f0cac2fe246134f7c3205007b4e1e7c000d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/common/xai-computer-hub-sdk/src/harness.rs:456-543 | crates/common/xai-computer-hub-sdk/src/harness.rs:887-902 | crates/common/xai-computer-hub-sdk/src/harness.rs:916-932 | crates/common/xai-computer-hub-sdk/src/harness.rs:949-968 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"c883105b7e5d221ba9baec0cd954a3fe4cdab3c6544009901ab48129c8898154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1388-1495 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1529-1633 \u2014 These two members are one piece of code written twice and then edited apart: 105 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e413bf28bd5e248d752c594549be850b51861e22d3f68d706610d3afecb94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (101 corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_planner.rs:361-461 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:244-371 \u2014 These two members are one piece of code written twice and then edited apart: 101 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_planner.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa4741f23798a4bb0efc80bb1a31dca3f1b61c526859619346440c2087dd48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1192-1291 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1344-1443 \u2014 These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"716ea215068c07292d26562f44b195d68209442203fde72fae93a843f16e8b38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1510-1618 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1623-1704 \u2014 These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6a731e7bfd91091bd7a00fccc3e58dae171f46ab15b20cc4e8bcd7a9dd9d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): crates/codegen/xai-hunk-tracker/src/actor/git.rs:304-394 | crates/codegen/xai-hunk-tracker/src/actor/git.rs:402-480 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"825ebdb1681e5cafe3435ca19b700df7dc2c8fc3822f9922da1db1417917e4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): crates/codegen/xai-grok-config/src/deserialize.rs:6-62 | crates/codegen/xai-grok-config/src/display_refresh.rs:80-125 | crates/codegen/xai-grok-config/src/remote_settings.rs:167-212 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/deserialize.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6893b1eb459eb5b098dc83a979e7b9b2acef289943c32cbfa9227a117fc1c576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2384-2464 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2494-2571 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"913671ea8f05a28319f3ce5b8f4ed62149e81985900679601fc3576e309649ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs:24-67 | crates/codegen/xai-grok-pager-render/src/render/video_overlay.rs:23-74 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9049c8ac1f1a0eae0f1836c34ac7ed2c6d058f04019612c82f3f90d2850c685"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/codegen/xai-grok-pager-render/src/input/key.rs:140-194 | crates/codegen/xai-grok-pager-render/src/input/key.rs:197-235 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/key.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb0cc0a092169cd8284618829a75ad0cd062b2c113f2f77c294c17cf1bd4e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:44-98 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:111-183 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9eb779c04a645d1fa55928ca89dc40263306a27009a39f6b08b0a086ce6432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): crates/codegen/xai-acp-lib/src/gateway.rs:170-228 | crates/codegen/xai-acp-lib/src/gateway.rs:232-307 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a860cc65fe698b7f9aec606acc3c91bd4abafe5af988d66b416982040263a78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:57-118 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:3187-3253 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b950292d2dbc94f723c0734d0235669b45e6d32e232da9d0841362efc2d1793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:870-920 | crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:975-1017 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66925b766de6aa00c633c3ec6aed86a24cc57f2d3e44510d4dd6f34d68cd13f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/codegen/xai-grok-login/src/manager.rs:863-908 | crates/codegen/xai-grok-login/src/manager.rs:910-953 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b44cf66bf2ec6bdd4f0258c5cae933bc2bf409ee283f128844f28c03818439"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): crates/codegen/xai-chat-state/src/compaction_utils.rs:716-779 | crates/common/xai-grok-compaction/src/code_compaction/summary.rs:19-82 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"52916682270075ee0b5b5511735d838c3ba506d2d1531d3fee61fe59ba16a0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:2375-2437 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:2439-2501 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5002e925b789e4ada56e8f602255c25a3703be570d5363326cbc3ab910c09009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:572-608 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:610-646 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf45a160e54a1b44b1656e4e2926d86be8e7933f2eb4eb9fa3eda5291462150"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/common/xai-computer-hub-sdk/src/harness.rs:1130-1173 | crates/common/xai-computer-hub-sdk/src/harness.rs:1194-1237 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"20349b0e60df34daf183291d3ddbaf69fcd16d55fb49562d795e1880b6ffad42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2338-2379 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2388-2442 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"66571245e40cc5ba038d63728c25a3b38462fa96e50f02b1938b0eb7ec36e39b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crates/codegen/xai-grok-pager-diff/src/lib.rs:383-431 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:1222-1278 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2b0db6d7168c5a540d4418db2020d8b5f8de4e199b660fe91be199ed904272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-grok-shell/src/config/mod.rs:103-142 | crates/codegen/xai-grok-shell/src/config/mod.rs:143-191 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef4599cbfbc05e36629d5c8442d9f0a4bf294e5eb40defade17f25ef9219b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs:522-562 | crates/codegen/xai-grok-pager/src/scrollback/blocks/system.rs:21-65 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"9515bd47655669beee41368ff925a2a2b95c25026b3dbce0aaf13eceddf2a52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-grok-shell/src/session/workflow/store.rs:307-354 | crates/codegen/xai-workflow/src/journal.rs:259-298 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/store.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c0a595daa2978780dadd8e6ee0f6628fc9ef26f3af94a1e7996c1ce862a1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1630-1675 | crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1711-1759 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e9ce51244f4b80fd82302ba3b7cb2330ad211be1ea53b32c37f9db4506da93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2089-2165 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2297-2368 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6df04bac04b886f38918b51e883467ebcf256c8d145c1edf15acf975bd08047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1596-1643 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1650-1692 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"6741798d1df60354201e890861067fe6a8138e1f8a79f1f277ae4da28b5a4d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:432-469 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:514-546 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7ca6e5c91e2085c271f72259be48f08895d474628add3ad4ff5f858a9f0c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/codegen/xai-grok-shell/src/session/fs_watch.rs:179-217 | crates/codegen/xai-grok-workspace/src/fs_notify.rs:181-239 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"074b6f74acb0d75f889328d5dc0e09fa4f67a1573cbe792666e60379b3a5f308"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): crates/codegen/xai-grok-pager-render/src/theme/oscura.rs:51-135 | crates/codegen/xai-grok-pager-render/src/theme/rosepine.rs:32-114 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/oscura.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fc17749e6e765ebbb66df9487fb5b823231e11d8bedb53f193b8ae22592493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): crates/codegen/xai-codebase-graph/src/index_manager.rs:1005-1047 | crates/codegen/xai-codebase-graph/src/navigation.rs:136-181 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2524ad32a59bcc4f2c917f75be08fe640b4d45206d4a471314c10b47e57585"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:526-563 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1603-1655 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe398369ddb023d5c67cb850af63d535daf9eff3553df1c4eea1383dea8d2239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-workspace/src/session/git.rs:2822-2845 | crates/codegen/xai-grok-workspace/src/session/git.rs:2847-2870 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8e1d30fabf6da3f679ef444a5087190af5e2bd84f519830f8ae68021667f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs:114-150 | crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs:156-191 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f527008a714968ad84df78b3c2fa7d4119751b0318c0dced25c9adb1c42151b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codegen/xai-grok-egress-proxy/src/http.rs:148-184 | crates/codegen/xai-grok-egress-proxy/src/request.rs:16-47 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/http.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"317060e731de344d546785269336021f7eb497af8b7616a8fcfba37c043aa6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:1448-1496 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:1499-1548 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b434a36925864a6dc526f6322316597d22fd41b3c599e6120a5b03a6800bf2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:520-573 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:582-620 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ed78884d03a11217d9363c6fa355493a2f87d9b4c3dc0470d03ce818eca1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): crates/codegen/xai-file-utils/src/storage_client.rs:1416-1466 | crates/codegen/xai-file-utils/src/storage_client.rs:1476-1534 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7d39444dbcf6d6abe606f06823bf43c183ab18ecb11295be7f09547bd5b896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:273-324 | crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:326-378 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb25a17e67396ed96c73342ffa8e6f857b4f8dbbfc53e3b7d8f9a92991a5294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1024-1063 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1066-1108 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1faf600b2b80c5ab222aacb12175ed802c2d151e608c56e1c0a705d339c87f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codegen/xai-grok-markdown/src/colors.rs:255-286 | crates/codegen/xai-grok-pager-render/src/render/color.rs:12-53 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f2201c3bd9ed8f19ea60cd1f677e62c7d0fb6515f47cccbeadd2bab0ba0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:259-298 | crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:309-352 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/code_graph.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae503a7cd32648874c429d1b18a5301221b877f5dffc155403ca02d4cb2caea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:307-361 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:697-767 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8c384e81fee9462f4df07bd54ed004770f8be38db7236555b9ec03ac6034b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-ratatui-inline/src/terminal.rs:1055-1080 | crates/codegen/xai-ratatui-inline/src/terminal.rs:1093-1121 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd3b27da6ff3207c949cbbc70e3171756403a1a7d2733954ff3f0a5b5cc76d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2153-2190 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2192-2227 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c564f22f6a55f42a28d59d378a6f4b37e97907016f62fb8b2c359592b82fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:320-366 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:138-177 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"382627d4e050e1415d9b6c6ae1c09ebe23b38e6d19f9509ef92f81858c1a6345"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/codegen/xai-grok-telemetry/src/external/providers.rs:398-439 | crates/codegen/xai-grok-telemetry/src/external/providers.rs:450-490 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/providers.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4075583a848c25023afcd8db7a0d79881422a076ff8646d462672b75697fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:63-104 | crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs:68-104 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f835832b4d6dd612e48b792bd215ac34cca7aa8fd4afc2c7e83a8f83b79eea3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-agent/src/prompt/context.rs:31-60 | crates/codegen/xai-grok-agent/src/prompt/user_message.rs:141-169 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/prompt/context.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"be84f7dc29c159cb3754e323b2166ad5bbfb5f61de173e8b3b88e01e2ef14199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs:219-272 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:3175-3223 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f1df843652847e503b11e636780100a07c7fbf2e268e397965d4ae98e3aada"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 67\u002B corresponding lines): crates/codegen/xai-file-utils/src/gcs.rs:96-171 | crates/codegen/xai-file-utils/src/gcs.rs:274-340 | crates/codegen/xai-file-utils/src/gcs.rs:352-419 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 67 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f866dc2e1d8b5956fcfa6fc8107a59bfe759c2705299252ba4970dcec7be7717"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-workspace/src/path_virtualization.rs:240-270 | crates/codegen/xai-grok-workspace/src/path_virtualization.rs:273-312 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/path_virtualization.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec77c01dfba543c0e19ef65d3766292eadb4d56db17accf0985ce93652dac656"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): crates/codegen/xai-grok-foreign-sessions/src/claude.rs:144-185 | crates/codegen/xai-grok-foreign-sessions/src/claude.rs:280-331 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb420b64fa341ce0bf0ccc7ba3c0b0039ba5a7fad4f9f97c99b008a45ad0473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:587-632 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:322-361 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f88722e34da7b245bb69879a8668618c4d5d517751635267681cee4cc2cf311"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:197-246 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:249-304 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:817-870 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6aa20febc5404710b8b57b353ff0fbe62b55bb003ddb373c8f048d60a61e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crates/codegen/xai-grok-shell/src/agent/config.rs:3769-3813 | crates/codegen/xai-grok-shell/src/agent/config.rs:4761-4821 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b864af8e16a11d5ad7d50c95446023540ddb1ce32670c632dc0080b96f6af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:453-490 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:493-523 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8b54a94d6ffd69f1b6a3cd2afd92b7c4d44a250a7c3a99f38407a41fb92570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-tools/src/types/resources.rs:226-248 | crates/codegen/xai-grok-tools/src/types/resources.rs:261-283 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/resources.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ba963fde2fc83575572a3773067d0e957024b757ef9b38de952407917a57eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/codegen/xai-grok-pager/src/app/workspace_membership.rs:819-857 | crates/codegen/xai-grok-pager/src/app/workspace_membership.rs:863-906 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/workspace_membership.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb46ae0527a2ede43e3acb61753cb868279b868e92d5e962576febd561cda2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:116-157 | crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:164-206 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7c40c8b20dea0748e4e0210409ffa15359d2f2e8d8033f5d3894aab7fda0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1053-1095 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1099-1137 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31a16bda14c4f7ca24c8ef3311e30a614f1a9b7dbcbc20c0cdad16c1a02adcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:392-430 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:485-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c2ae370b93c1b9d6321e79ffeb5ada0767c96f3396daf97cf4ec24c52c5f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-feedback/src/draft_store.rs:326-356 | crates/codegen/xai-grok-feedback/src/draft_store.rs:361-392 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/draft_store.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841ffab48b2b89f001b43cfab02031686e1b815663ff36a226d5105b41766c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 47\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:91-138 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:189-237 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:246-292 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:526-582 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"942ab47f16f7a17ef27469e7b274e56966c6169d23682643a19e727ee944d3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs:168-200 | crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs:210-263 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c205ab32fbdcdb0cd6924173dba96bb689042c7a1d43a34ed53a986e799421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/marketplace.rs:259-303 | crates/codegen/xai-grok-shell/src/extensions/marketplace.rs:352-398 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/marketplace.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9d93731bcb3f301759c5855efdfbdee06b8c5e25074b499e259c86673e6442"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:598-627 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:637-665 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f85fee210d1ee0058258b9cfb827d3c3508642a3e3c92d8ee2eebfcb74ccf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-markdown/src/colors.rs:224-252 | crates/codegen/xai-grok-pager-render/src/syntax.rs:56-86 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"132044c142b6695a71476bdce3ab2bf44d703e363d95a890657a5da85eeef15d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-grok-tools/src/types/schema.rs:45-69 | crates/common/xai-tool-types/src/serde_lenient.rs:137-169 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5ad40365715f4c35342dd1c00f853d62a2108ba74045ae8840fff91286773c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/common/xai-computer-hub-sdk/src/log_donate.rs:210-242 | crates/common/xai-computer-hub-sdk/src/metric_donate.rs:270-301 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e741479def811199ff416b6e67f420597400c64769df4e382cbdd52b4215b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1395-1431 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1492-1530 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1602-1639 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"934353286548e33585efb8ab9d6367bd8fc6ef1ee3bf3d952d9cd9975161bbf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-compaction-transcript/src/lib.rs:324-352 | crates/codegen/xai-compaction-transcript/src/lib.rs:355-396 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-compaction-transcript/src/lib.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed50ec0734063e3d729110b0f74247edfeb2d081959240759b9a75c19a988e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs:174-204 | crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs:205-227 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c07e159eeff1f816caafc2ebb4a3f3faa4881b4c9528d88ad7623bfdc602b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-config/src/cache_file.rs:68-95 | crates/codegen/xai-grok-update/src/auto_update.rs:2046-2075 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/cache_file.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d85b51d5938070c1e7ffede4d90eb7dfa349036bef40bcce1a34e4400926413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): crates/codegen/xai-grok-agent/src/config.rs:259-289 | crates/codegen/xai-grok-agent/src/config.rs:388-416 | crates/codegen/xai-grok-agent/src/config.rs:466-494 | crates/codegen/xai-grok-agent/src/config.rs:496-521 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91121fe56de9609ebcc50d0ad5f46444a0b5597af2c15fa732f5059f5a39de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:254-290 | crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:294-325 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d8ec5167b5ad8601d0cd811d6b3485028d8b574f1c6029027adb4f2f23ba10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:512-545 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:550-583 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2b1e7a9a6e1fe111467c1bb12dded65deac403cf8d0fb081c597e0463fa2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/codegen/xai-grok-telemetry/src/spans/instrumentation.rs:200-236 | crates/codegen/xai-grok-telemetry/src/spans/instrumentation.rs:264-304 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/spans/instrumentation.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"708f16bdcd6765091313de1409a4667041cdadc0806504c9d8e2803f4cac1755"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-login/src/credential_provider.rs:166-193 | crates/codegen/xai-grok-login/src/credential_provider.rs:357-384 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/credential_provider.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"88701c821b138f224bb5a85b95a165f56dce3060818a69ff7ca6cba12cd04c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/verb_group.rs:370-386 | crates/codegen/xai-grok-pager/src/tool_usage.rs:346-362 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/verb_group.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b0c1ade89536985b930e64cba46d7432d05ffb6840dbfc9cd23b6c5d812516"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/file_system.rs:110-148 | crates/codegen/xai-grok-workspace/src/file_system/client_fs.rs:134-181 | crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs:161-199 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/file_system.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29160ac6fb94d9f7e8fa7a6829ea4c4734b54754e074abc59e67f3406efe737"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:715-759 | crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:773-819 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82484f199a8027b72c5cd7301149aff70b87921b5359329b9b55580d4bddf36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codegen/xai-grok-hooks/src/trust.rs:160-192 | crates/codegen/xai-grok-shell/src/config/mod.rs:1859-1888 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/trust.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c84f2878abc607299a64b9d524d392e2100060e29a92023259cc9334aa5761f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-tools/src/util/truncate.rs:249-276 | crates/codegen/xai-grok-tools/src/util/truncate.rs:281-316 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/truncate.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8cc72ac3562758e825525fb7af7933c40f026a646c23b8b3ab778ffadb528a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:759-777 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:779-799 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"51765f74e0cf55377748cb0941b21c5c46e17a5635e0a0bcc8ee2cd0d2a3593e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:931-961 | crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:965-992 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_tracker.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7365131c72f93f35f0d4f5627b2e4ebcb332278cdb09bb8731ea8677e73ad87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-shell-terminal/src/pty_session.rs:712-740 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:375-409 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/pty_session.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d47a09a92433a8ed112410ad2147f55679d9d09b88bb2150eb8e40807a053ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:242-274 | crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:276-305 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52d049faf2f505e8831d14afb35c139227f9d079724d8b18369fc13e84bd27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:322-343 | crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:347-376 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fead9fecf989d66d2f4fedb8ef8178f6de2685e6db527371d87cb58a3fe10273"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-memory/src/index.rs:510-532 | crates/codegen/xai-grok-memory/src/index.rs:731-756 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/index.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d941cd8dc8327f2d38279ac9a410dac83afa657baaebda4c4af03fcbcc160d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:1557-1585 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:1589-1613 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e3e8ca05b9459a2a1a7b73d47e788447ac6a9602395eb6fad70485ac79a8b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): crates/codegen/xai-codebase-graph/src/index_manager.rs:939-971 | crates/codegen/xai-codebase-graph/src/navigation.rs:215-246 | crates/codegen/xai-codebase-graph/src/navigation.rs:275-305 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f9174445b5616d5b1010657f60eacad8f4e984812a3e38da81ee6eafef1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/env.rs:30-63 | crates/codegen/xai-grok-test-support/src/env.rs:125-157 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/env.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1f88680243395e17ee272b70d605672c4d88c807e6e5350bac8ab7652e8e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-shell/src/session/fork_status.rs:50-70 | crates/codegen/xai-grok-shell/src/session/resume_status.rs:93-116 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fork_status.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9609bec688d507011fa0f61a5538d5b33b100842a8b50b525fdca7341b25b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/helpers.rs:89-109 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/helpers.rs:261-281 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/helpers.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"df98fbacaf60f31e7aafb57dfad18acc912185ba96a19a69e689f3aedf1e44ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/storage.rs:130-157 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/artifact.rs:103-131 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/storage.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe204881ae4f7d2992a04fa1ff1bd4f148cd9d51763d7b2f370dfe4d542dc756"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:319-349 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:516-549 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:554-578 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:581-611 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe093ecd38f3a5eabce4d54c39ba825db845c8636cd5ee67c9da247dfdfafd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-ratatui-textarea/src/wrapping.rs:12-40 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:48-68 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/wrapping.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93381a58afe9f0e4b5e8ef314d17b0fc9da24c9b1e7572666354d8335680506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 36\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:436-474 | crates/codegen/xai-grok-shell/src/session/goal_planner.rs:232-268 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:113-148 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:97-133 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"de49474f7fc03a6c36e4367581a0ffe91d0dcc30f2077403932e6d3fb85090b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/codegen/xai-grok-workspace/src/handle.rs:2673-2706 | crates/codegen/xai-grok-workspace/src/handle.rs:2709-2745 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":2673}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73e5b9eed5dcea0de8c91acc9485f2cb8b7759967d998a440bcfcf93893ff7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-file-utils/src/gcs.rs:428-448 | crates/codegen/xai-file-utils/src/gcs.rs:544-571 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a8f113e2e7689d07676ace720ae1ca9fe54edcb557daad2fd4057616c56da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/codegen/xai-grok-config/src/fs_atomic.rs:760-795 | crates/codegen/xai-grok-config/src/fs_atomic.rs:859-899 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"772ce00e58b5353f74ed02105141449d9f0e5e8a88db08381dbc57ba9985eef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crates/codegen/xai-grok-gboom/src/assets.rs:131-154 | crates/codegen/xai-grok-gboom/src/assets.rs:157-182 | crates/codegen/xai-grok-gboom/src/assets.rs:186-210 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/assets.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae9d2ff59ce0825615cbec967112a92e21691ac422e3955f699cc540277eac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-otel/src/config.rs:28-52 | crates/codegen/xai-grok-telemetry/src/external/providers.rs:134-154 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/config.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"449f14f9898dd29ddf3848cc7f20db623299df8b2bc6cc501dfdf7a5ac59dee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crates/codegen/xai-grok-pager/src/headless/ext_protocol.rs:123-171 | crates/codegen/xai-grok-pager/src/headless/ext_protocol.rs:173-219 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/ext_protocol.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3c2c5b4c3f7c000cb423e4fcecdd0b268d2d6de8eada400a48a40e0c9b05ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:390-423 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:440-471 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed687296c07056fdab94f3a46e0f7ef3f0d197e931abdfe7ccd054c86466717"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:816-839 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:849-866 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2cf9c67fa5565fd41d92a4f85f9200236b3428cb1898ace9167b5ac6ec30ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-memory/src/v2_capture.rs:1901-1924 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1853-1870 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"e162bfad39b1cccade4b14b3e0321bb4d8d56459b04aca632af3b6712efd00f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:103-131 | crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:184-212 | crates/codegen/xai-grok-shell/src/extensions/suggest/path_provider.rs:100-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e91b660b5927eaf38d90e8729f74966a3857442ad26687b9adf9ba0d9e9dcee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codegen/xai-fast-worktree/src/worktree/plan.rs:72-108 | crates/codegen/xai-grok-workspace/src/worktree/create_root.rs:158-189 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/plan.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2624694fafdcbc5bf1e202fd49c4034733a2321e7bd093abcdbfd930a32c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codegen/xai-ratatui-textarea/src/editor.rs:647-677 | crates/codegen/xai-ratatui-textarea/src/editor.rs:684-713 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/editor.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceb0736cb423480f5c818c42519b32b66eecc18029e994957e2817984739c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/common/xai-computer-hub-sdk/src/log_donate.rs:390-412 | crates/common/xai-computer-hub-sdk/src/metric_donate.rs:377-407 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"271b7557bd2b8f66af1e14f898ac9193562bbcfa7a25516d8fae53be4e6ee770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-gboom/src/lib.rs:332-366 | crates/codegen/xai-grok-gboom/src/lib.rs:368-388 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/lib.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc478122c45cdacc827b674b941049625e1c3f317d4bdec22fe13e573682a689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-telemetry/src/external/providers.rs:500-530 | crates/codegen/xai-grok-telemetry/src/external/providers.rs:537-568 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/providers.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1598e93e0361fbd00489f4a981378699a89648ea98d8511dc16160d4ba5d057f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-config/src/global_hook_sources.rs:146-163 | crates/codegen/xai-grok-config/src/global_hook_sources.rs:216-237 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/global_hook_sources.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"597c1f9820fc4e2ffe862f21fb7e918ea2f52a5e16bb12e234b2f920c1b04392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/lib.rs:370-398 | crates/codegen/xai-grok-pager-pty-harness/src/lib.rs:409-444 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/lib.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ad10f71fdd3f3a050ad7db8172f059f7e8e299bc922be8cf6725865364efe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1248-1281 | crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1283-1304 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2f34aed6d4793b69342c2971d9895277034782265b42bcb2d4585cc128ffbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-shell/src/config/mod.rs:1547-1566 | crates/codegen/xai-grok-shell/src/config/mod.rs:1667-1691 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3cb62a9d35d2cb1f0276f401f62c036713c5ccd89e402da29b2fc1fe84c53c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2701-2733 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2771-2798 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":2701}}}],"partialFingerprints":{"codehealthFindingId/v1":"9434e53f523eaadf5de50b48cc50948c388efa2b3e313924b23382b465dc9bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:835-868 | crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:921-946 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6be0f37e59752e085a8487347e9b8417e5700aa024d9cc319139bbd02642ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-secrets/src/sanitizer.rs:228-250 | crates/codegen/xai-grok-telemetry/src/sentry.rs:167-191 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-secrets/src/sanitizer.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3fc46e8d02876f1df5e004f440ae0b61a0a774f505d3be690cad27dcf110c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:590-621 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:633-666 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:677-706 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d03875d233445529343a0c8faaefbee313cc3222a8f92d272355148342d2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:317-340 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:363-387 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86e79cce24b688310056ada3d64fc4aa03479dfc5bc3d98dae12aacb5ba2540"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:356-383 | crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:390-428 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fa1d9c2b8e691b6f433fee1f222f85f9b45e62b31b1bdceded34c93e3ae518"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:104-139 | crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:143-175 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf00d7f18e76642055b0e9f94ba74c5e8174775eb779639b12a3b0f383d19cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-codebase-graph/src/interner.rs:108-133 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:264-291 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89510c51b55560eb947843f7549164a6b222b2c3148921470f34c0228744bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-shell/src/session/usage_file.rs:116-136 | crates/codegen/xai-grok-shell/src/session/usage_file.rs:153-173 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/usage_file.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b60c7151b0bde74f44d5177dccd5975b1f7506fc2d9cf42c2575fa9eaf3079c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codegen/xai-grok-workspace/src/discovery.rs:28-59 | crates/codegen/xai-grok-workspace/src/discovery.rs:63-92 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/discovery.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48c8eacfabe44b786581112fa91beda022990712a81623daa8dcb57f9e3d537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:694-718 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:728-743 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20e0f20ae4d2972b0125b5e57051936aa48aae06be2e9a35e35320afffba3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/common/xai-computer-hub-sdk/src/harness.rs:801-823 | crates/common/xai-computer-hub-sdk/src/harness.rs:1042-1063 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f01c5fd5fc64bb78147a94cb8811f33b5e39869277a3b04d52239f22596b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-grok-pager/src/views/queue_pane.rs:106-134 | crates/codegen/xai-grok-pager/src/views/queue_pane.rs:142-167 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6f3fdacf6b93214344c4b9471eb09ea778ec55670c2726bd3246e59f3fe5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1574-1598 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1605-1632 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"760767aa3d3049ce395abe6e38d173f1e8d5cc41ad65c0b4a24193552dc09804"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-workspace/src/path_virtualization.rs:336-355 | crates/codegen/xai-grok-workspace/src/path_virtualization.rs:367-392 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/path_virtualization.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3e3ec54b6923226e625584357c8bfcd7aa77388e5972555fb615f1c2060708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-memory/src/storage_v2.rs:134-150 | crates/codegen/xai-grok-memory/src/storage_v2.rs:152-166 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a651c0c722acca0404da4f3b77a9e54ffd89b7d42a2c92399e8643a2907272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:649-672 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:674-696 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:702-721 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f88209639885748287d8421317cb32b01e6ca0d8b392e604c3c086dd972a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:1354-1379 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:1567-1586 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb068719bcba7eea00cd349a3c213a36100e10c521d5626d74588dec2dc3e8e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-shell/src/session/mcp_restart.rs:199-240 | crates/codegen/xai-grok-shell/src/session/mcp_restart.rs:390-420 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/mcp_restart.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"215a6408adadf75e536ecb04a7b9d2c11dc5205fe6f6f7ab68649d8b7a62d893"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-tools/src/types/config_source.rs:42-56 | crates/codegen/xai-grok-tools/src/types/config_source.rs:59-73 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/config_source.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4aeab55b45e81c75ef0efbb3c992e8021b0c8b8156dbbb6a9d82103af1148b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2171-2196 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2261-2288 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e0990d2db76b3e6c9d8d00f855e57641ba6b03ceaa6eda0188d06eb7217b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-sampling-types/src/conversation.rs:1762-1790 | crates/codegen/xai-grok-sampling-types/src/conversation.rs:1819-1857 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdfd852858d494eb5ed39c390cb4675527c20816e08d70ff852f6d870ae4325"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:261-285 | crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:325-350 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f367614e31895dcdf724b179b3863c6403183a9039770e18ba31eee000941a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-acp-lib/src/message.rs:200-214 | crates/codegen/xai-acp-lib/src/message.rs:419-432 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/message.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21f949a0688394719ee8d55665191fa3dd1bae83455bfe7a1465cbb90b32e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:48-85 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:42-72 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7c74fe7f0617b48c8981a008e2d49f9feda5278f9a9e2355e8865615015714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:214-231 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs:121-136 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6867eae4a349a00c96a3f5ad6c244cdd44a0b1971c6813cd6876d3b88e8c92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:854-880 | crates/codegen/xai-grok-pager/src/views/persona_detail.rs:875-902 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1574618b6c4ed53ffdd57ced64b4053931b9f1871069b64ff97e2f724c68d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-agent-lifecycle/src/local/registry.rs:47-67 | crates/codegen/xai-agent-lifecycle/src/send/registry.rs:43-63 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-agent-lifecycle/src/local/registry.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ded4863c7b2cbeeb1ffb5aa0d110d8c64c4c703a0da9dfa53fe9c554e4e1939"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:454-473 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:275-293 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7e60e2ea9adfd399be3130bce200a78cfa62b55cd1c8ffd139bb01e963939f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:703-723 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:800-823 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb27f206ba79af119d113aee509ab3984bd7d3e3d8307abbf9208d69401fee36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:82-102 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:366-386 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0956978bad396ffc16e08095af5f924ff79191756f7205343f4110c182bd7a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_task.rs:276-306 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_task.rs:308-338 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_task.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a8c8724bf96b719f40f35de4638465a919ad86f47648874e3f06ab3b78bb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs:81-114 | crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs:218-258 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a513f1b0d4907b8704a4e29d22d3a4294e42e036cb888e3854bf0adc91d83515"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:1282-1303 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:1312-1328 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a711a85f7a069ab439587d30218d9d963c81c9a0900376b40c6a5e5d16d51b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:357-383 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:489-515 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c460868e1db3930f9ac2683197444207e688ed2614c51b6ba9f014663df204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:475-491 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:552-567 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea67940a5e43f06cbb29aafaf0272a65001d70877cd8bbc01a9d057d0bf5880e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/scenarios/large_codeblock.rs:16-37 | crates/codegen/xai-grok-pager-pty-harness/src/scenarios/mixed_interaction.rs:17-44 | crates/codegen/xai-grok-pager-pty-harness/src/scenarios/scroll_stress.rs:16-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scenarios/large_codeblock.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0328bf76e6b6885eec140c23655594b19c2d3c020bb2213a6bcf3b10f5beb34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs:783-800 | crates/codegen/xai-grok-pager/src/views/session_title.rs:104-119 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"58159d5480b57951c80d5567dc3191e3fe17609be08051172aca912c61524f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:101-119 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:138-156 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:170-186 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cf6a681fba9bacef06c4f72c1c90a14ce5fc1d6bd84a9e5c70cb57928ea1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/codegen/xai-chat-state/src/compaction_utils.rs:1023-1050 | crates/codegen/xai-chat-state/src/compaction_utils.rs:1091-1117 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2712da0b5da7db7ab99e2a45c130ded2fd5bcb01ec8444b33a5fc633690ae42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-hooks/src/runner/http.rs:297-319 | crates/codegen/xai-grok-hooks/src/runner/http.rs:360-386 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/http.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adcf6fcdfbc92f05c74f6bf54fdc0af0a3677d1a4b8ae2ea127b8c948c2d010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:588-607 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:609-627 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"491c27585306e3f6c11526eb2d969ba7da1c6706b1bceea3d0e7643da0cdc4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:3925-3942 | crates/codegen/xai-workflow/src/journal.rs:336-353 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce69c91153ff6dc1c24fef648fd028faa40624bcc27066435bb3a42251aa2750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1466-1490 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1573-1597 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"8550e66759818ab1314b53ec56e2cf6f2d86e874573d37e5fe82875cb1a8c132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:258-284 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:294-318 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb0897c8a240ab881d00de67f10ffdd7d4cc4e39b591441c139daeb00c89b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs:459-481 | crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs:484-513 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d1181f93058f7bb2eef35909ea862a001d4289ef76d3d0f4fa45065022da8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hook_dispatch.rs:284-302 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hook_dispatch.rs:418-433 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hook_dispatch.rs:450-468 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hook_dispatch.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef554676ce0f4534a8ad95602296daba557660f32882ae874ef03369fef8673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crates/common/xai-computer-hub-sdk/src/server.rs:1435-1464 | crates/common/xai-computer-hub-sdk/src/server.rs:1470-1499 | crates/common/xai-computer-hub-sdk/src/server.rs:1506-1524 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"5567cc6d551f755bdba3f80446bf68032918b675d996615d148f986d961a7ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/codegen/xai-grok-memory/src/v2_capture.rs:1576-1601 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1716-1741 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f69cd1e88fdac3db77137818f60ae2fd2ce9a25027158227dde9e6d1fb7c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs:19-36 | crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs:40-64 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8065a59b8d2f8f718c53318a0ca6eb40a7c517a63916bdb63f7eda3a3f934e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:66-86 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:671-690 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:738-757 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1104-1127 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9963f24b4c09b257b4bff9b3266e67f80b714d516ea5113e5bc2ab0bf3cb4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-permission-rules/src/shell_access.rs:722-746 | crates/codegen/xai-grok-permission-rules/src/shell_access.rs:1022-1044 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/shell_access.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f04dad1559bdeb424fa4021cb9e20fe6459a694d9bbe3ef635cf36eb0c897f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-grok-shell/src/agent/config.rs:2068-2089 | crates/codegen/xai-grok-shell/src/agent/config.rs:2109-2132 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a241c72d4be60a86ee2050b77731aea28538e813a4ee061e6157a5d7cc70606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:157-176 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3422-3437 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7222912437824fafd5c74d197a3224e409ac7ee3e83225aea452d9606e2dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:202-217 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:323-346 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:358-383 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:2062-2083 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:2091-2109 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:2122-2145 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"991a9f29478b02199b481bbddd3cbacfe3b550bfb2a689b2f741f078eea17c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:396-411 | crates/codegen/xai-grok-shell/src/config/reloader.rs:460-475 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"190db5e412c1ce895d2836507549cbb93bcaea0f07a95be81ee519026ab07d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-pager/src/app/foreign_sessions.rs:72-96 | crates/codegen/xai-grok-pager/src/app/foreign_sessions.rs:102-122 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/foreign_sessions.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88bd9b5f11eff076b6438eb0e803017d8023c9960eb160a30bb052f64b0be9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-pager/src/headless.rs:631-651 | crates/codegen/xai-grok-pager/src/headless.rs:661-692 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"261449308adf986a3b1e548541948cb33aa3dd5811c183318c99a8656c0e56f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/codegen/xai-grok-login/src/external_auth.rs:12-41 | crates/codegen/xai-grok-login/src/model.rs:218-246 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/external_auth.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9078214ffccca9e2781c7fe480b2cf10113922aee45afb74342115ad9cff4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-chat-state/src/compaction_utils.rs:384-401 | crates/codegen/xai-chat-state/src/compaction_utils.rs:407-426 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c0ce5be32d8a8ed6be842d64caf61cd056400d0ebfad13e4b8e78a257f3f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-agent/src/config.rs:176-195 | crates/codegen/xai-grok-agent/src/config.rs:290-310 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3af9f5b4805c6819aa00f7ce6ea9f89c3110b36e719beca4d1c3e79720cfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:753-771 | crates/codegen/xai-grok-workspace/src/session/mod.rs:239-258 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fc351b65497fa39d18c89fad422bcd403467abc320f46b4887a503ee5caf84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-config/src/managed_text/transaction.rs:327-345 | crates/codegen/xai-grok-config/src/managed_text/transaction.rs:392-416 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_text/transaction.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f76b23043977a53233d6bc9d915ddb7363b48d3c1d176d5374b50c55de10f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:1212-1226 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1228-1242 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"671a6137b11b347934770896128026a87a9ae3c0e30f7b8d093e88e61e4d0d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager/src/slash/mod.rs:865-879 | crates/codegen/xai-grok-pager/src/slash/mod.rs:883-897 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"086b3311d9db1fca7e8d9b8afb1d8486ed54e4f2a2ba00ad95521d112a98c04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:468-483 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:490-504 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"1669ca5041cba2bc1215ec08320701758fd9a8e92fcd18c8e72105138de296d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-crash-handler/src/lib.rs:135-159 | crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs:504-520 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/lib.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56663d5dd5f745a52272ad93913eac149692d4e826c3ea3949a32177ada16fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-pager/src/views/queue_pane.rs:459-486 | crates/codegen/xai-grok-pager/src/views/todo_pane.rs:189-212 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f24d772ea89df3c512d33528ddb9187bbea4a4b6494be52d2a462bf79716c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:828-843 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:846-864 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"544830cb3c268c0a7ba2e8931889b3620c61d5f8b1bc0634a674259b20abb984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-chat-state/src/compaction_utils.rs:783-798 | crates/common/xai-grok-compaction/src/code_compaction/summary.rs:94-106 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd645ca973aa02eec45a77548cd5b6588721b02615b8a0e396e59f7c631f989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/app/worktree_session.rs:106-121 | crates/codegen/xai-grok-pager/src/app/worktree_session.rs:128-145 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/worktree_session.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9d650b3a614d752157588ce329c01e2ccf78c2b2296117118ba4e14693cb10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs:52-81 | crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs:85-108 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"768910f64a253f9226c3e824222ca5dc6564e3dc2d09d13dbf9e50421cfd07f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/codegen/xai-grok-markdown/src/colors.rs:46-78 | crates/codegen/xai-grok-pager-render/src/theme/color_support.rs:92-127 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"29de5e29b25b5682ada6c548624963579407702481805630ca4ee85bc228d077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:912-925 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:965-983 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"9827f74ac040514eef390af498b9775943a716654f1c0b83ceb60442b7d07b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:362-381 | crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs:14-32 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"7616cf10ed0e12f2155d4d086258d69c23ffc83a1874417a4b4e16925d467e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-mcp/src/credentials.rs:342-353 | crates/codegen/xai-grok-mcp/src/credentials.rs:355-369 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/credentials.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"655742ceb948fba980e98b87af41c5b491d06db9901e908483493752166fd43e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-telemetry/src/logs/debug_log.rs:252-271 | crates/codegen/xai-grok-telemetry/src/logs/debug_log.rs:274-291 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/debug_log.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"019537799e5cff10ee26b2d415be86e5b8ee533071358ab6fa5ce4ee50bdbd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:202-221 | crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:227-245 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/conversations_client.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd976bfc535bdae8fb804508f025dcc36e476085e28656bb5883991cdff379ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-fast-worktree/src/copy/standalone.rs:484-499 | crates/codegen/xai-grok-hooks/src/trust.rs:12-24 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/copy/standalone.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b0082d1313d735202af8f344f47d467871e0edc86e0278ba18b37770db12df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-cloud-config/src/settings_fetch.rs:68-87 | crates/codegen/xai-grok-shell/src/remote/agent.rs:51-78 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/settings_fetch.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc4fdfea05d4978c579d770e6e90af3a25a3dff12623d0c933af3d3bc23b888"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-foreign-sessions/src/claude.rs:253-272 | crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:47-68 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17cfa3d2e46d0ab919dd793d8b31b20871077155dd7ee2a434dde59b922e093"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-memory/src/v2.rs:1170-1198 | crates/codegen/xai-grok-memory/src/v2.rs:1200-1222 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"636d2844619ebad3aeb4df5ef3bf0d7a95c4f1ad2952bd8eaae4c506bcb8ec0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/common/xai-tool-protocol/src/frames.rs:1350-1366 | crates/common/xai-tool-protocol/src/frames.rs:1370-1386 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-protocol/src/frames.rs"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0e2041398ba5ebe60b9598400f96b66cd5b18a4cd9fe5c463765904f052f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:154-171 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:230-247 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:278-295 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8f0c0e57c66b4c8a1ff5f965bea8cf95305aca72b71f4c346be4706e61090d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/codegen/xai-grok-sampler/src/client.rs:1041-1056 | crates/codegen/xai-grok-sampler/src/client.rs:1397-1412 | crates/codegen/xai-grok-sampler/src/client.rs:1751-1766 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e693ad94f2a03dae03193564b283c022c533890c530a3d69787ca83135a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:312-324 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:342-353 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be632bb1b3869768843afa40e0c32dd0992e28a0ac0f3d5ce38328cb061a520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-memory/src/batch_dream_commit.rs:616-632 | crates/codegen/xai-grok-memory/src/batch_dream_commit.rs:679-695 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"427331627f0a39683b5b43bd1bbc969d3f10cdb6d56155a7826001fa50a4ab69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:427-449 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:454-474 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:477-496 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:498-520 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:603-628 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed337d0696a8641ffbdc99a3ac7ca1a0497522688ce57a4857740bbdf7d47864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-permission-rules/src/worktree.rs:23-42 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:946-967 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/worktree.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad810fa759067f2f01ab1d0dbf92f581b6655749877f92b58e076dfcd8862e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager/src/app/app_view.rs:2936-2950 | crates/codegen/xai-grok-pager/src/app/app_view.rs:2956-2971 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2936}}}],"partialFingerprints":{"codehealthFindingId/v1":"38813ca4814871daeb90f580c0ed81ff10a5809452dd01729f82c6e8cd4e6f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codegen/xai-grok-pager/src/app/app_view.rs:5063-5087 | crates/codegen/xai-grok-pager/src/app/app_view.rs:5110-5132 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5063}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb24b2879c1b8f22a43d3a6684833f0c5a84abb164ec3e50e3d4e1e726149f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-pager/src/app/event_loop.rs:711-729 | crates/codegen/xai-grok-pager/src/app/external_editor.rs:244-260 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a7fa4cbd06a01c531a8e9d7eecc99b24d028ad7dadfb5cf888893d0fbf7297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-permission-rules/src/types.rs:162-174 | crates/codegen/xai-grok-shell/src/config/mod.rs:962-972 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/types.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efe1412283fb47a3fcfc688019e8a3fd5b2d5c99f91579c00ca88ee53b1b8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:185-196 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:215-231 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"97abec022d93a1b70ed39fd6e4878c2ff729c17288b3e4a48fd04b0b698d3e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager/src/views/dock/mod.rs:369-384 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:474-488 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/mod.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe24c26b1447cfa231aa409f4db2471031533e6cd2f960ef1914b99287cb803"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:106-118 | crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs:106-118 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6120dc79773a6e7fcec78e9a2335b0227f349f3300b8462c641c911982343bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (90 corresponding lines): crates/codegen/xai-codebase-graph/src/languages/javascript.rs:5-94 | crates/codegen/xai-codebase-graph/src/languages/ts.rs:3-241 \u2014 These two members are one piece of code written twice and then edited apart: 90 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/languages/javascript.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2d0885036415673f57d3599295686f6dad01848bd6af76266724ab50234b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager-render/src/appearance/cache.rs:426-440 | crates/codegen/xai-grok-pager-render/src/appearance/cache.rs:487-505 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/cache.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f34a76abe4108971ae9a395b8c70a0c8588e1c8e533699921d1a960083cb79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:360-375 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:377-392 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"389c87e180e90cb45128bc3ec45490fb668c231ec08fad7adbd5db5725ed52d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-memory/src/storage_v2.rs:187-200 | crates/codegen/xai-grok-memory/src/v2.rs:312-330 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d706560e7dabc1aa7277960eb9b5c49a156115b43c05566987669ac68c2aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/codegen/xai-grok-memory/src/v2_capture.rs:640-661 | crates/codegen/xai-grok-memory/src/v2_capture.rs:663-686 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1044-1073 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7fb6a39134a62a82943d75440a12392cb4c5d99a023696e26d71e61c8b0f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/color.rs:176-191 | crates/codegen/xai-grok-pager-render/src/render/color.rs:199-213 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/color.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"477afc748e67e4a66533c1be323877cdebc18c988a989690339c363c4af3cc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-shell/src/config/mod.rs:277-296 | crates/codegen/xai-grok-shell/src/config/mod.rs:761-781 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c2bd96a0257a9426e98acab5e62507e3045b9205046fa5779dbf133ec8a207"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/registry.rs:453-463 | crates/codegen/xai-grok-agent/src/plugins/registry.rs:465-481 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c74c31fab38eceec23054e997ae868a5cb7115ec9628558be9f1f03648e8c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:438-455 | crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:458-475 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"6177b52538349474cb1145792e544f535abd2d15882586ed7eb00fcdc593f49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:43-63 | crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:68-91 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47da0f77e31e05b4d880fb01d48a720c5cb76ff44e5c416e7f0bc01badb2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:530-559 | crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:757-778 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df045a5c7570026f83467fa0b17798ef92461e58ec100f45071c73d622f2bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-feedback/src/draft_store.rs:829-847 | crates/codegen/xai-grok-memory/src/archive.rs:16-29 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/draft_store.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"439a305003e410a5d8a78123f2423c25099971e12f37862519f1271ae4cef0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-pager/src/git_info.rs:284-302 | crates/codegen/xai-grok-workspace/src/session/git.rs:644-656 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/git_info.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1eadea62f622e78d51f11840934e8b61caa78eabbc3fb4f1f961b476d4dac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/codegen/xai-grok-sampling-types/src/types.rs:113-139 | crates/codegen/xai-grok-sampling-types/src/types.rs:141-167 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/types.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67189d34c94c44f9380b693b9991675fb299ac72351e36a51b44fe101aba0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:500-513 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:450-463 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"47182d20150ce9e77ce555470308951b721a1a1c91402660b5a7ef900d5b9860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell/src/session/export.rs:34-49 | crates/codegen/xai-grok-shell/src/session/export.rs:53-68 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/export.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8677cfd6fef4f7721c2f8903ccdb7a811732e53b76ee73f924e3a0556af3ebdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1841-1854 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1856-1869 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1871-1884 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a97174ab2e03bd8cc7a4670b2bff907267cb299589be841f1f690f9c420d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-workspace/src/handle.rs:1906-1916 | crates/codegen/xai-grok-workspace/src/handle.rs:1923-1933 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3278b18e1467b7167033aef3bb19f5058c1f1a27ba958b1ec1c30ad4f935af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1238-1254 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1261-1276 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0c762feb597b71f62620a70acc2240963af85de7fe939a167715180c1700bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/subagent_message.rs:68-89 | crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:128-151 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/subagent_message.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a3c2aff7e916c0911d946f6e12d5591e02daf64c918a9e4f1fde9aeaa4754b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-workspace/src/file_system/acp_fs.rs:55-63 | crates/codegen/xai-grok-workspace/src/file_system/acp_fs.rs:76-84 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/acp_fs.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14db5b0aa5c0b5cb981cb14af122cd2386b05aad131c38bd5b7a8e250599c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1319-1327 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1329-1337 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e72dcf78a87d83e3538f4f811075a0801a7d046836cd22ef3d9d9222b5e502"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-permission-rules/src/managed_policy/parse.rs:21-48 | crates/codegen/xai-grok-permission-rules/src/managed_policy/parse.rs:287-310 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/parse.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"483002acfe6344675881481a1f5b3b0705adf480ee6e9d7b4f872f3812cc3747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1953-1972 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:226-246 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dd09c1ac7430bea89127430e1fc47cc258abb50b68a03e0d4e5b83b7ad88bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-lifecycle/src/persist.rs:176-188 | crates/codegen/xai-grok-mcp/src/bearer_token_file.rs:93-105 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-lifecycle/src/persist.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde9eb155ac0c180129eb8e3fe93a6e83613ab4c26dd705eed06db45c90f6dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/scenarios/idle_cost.rs:12-28 | crates/codegen/xai-grok-pager-pty-harness/src/scenarios/streaming_render.rs:14-36 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scenarios/idle_cost.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d6adde9dd47de4eff7fff726fb848cd012e7e3d5beae60533395cb5d6e82fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-compaction-transcript/src/lib.rs:156-167 | crates/codegen/xai-grok-pager-render/src/util.rs:242-252 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-compaction-transcript/src/lib.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55e83d9fa4d5ba29095cdbf1bf508104f5e3e0354805d44cd0ab83fbdc2878f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-fast-worktree/src/git/checkout.rs:33-51 | crates/codegen/xai-fast-worktree/src/git/checkout.rs:75-92 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/checkout.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d800ae373f09c5bd67c30b2498b7ddee71061cedec1683a145bb6026178a89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-secrets/src/sanitizer.rs:254-268 | crates/codegen/xai-grok-telemetry/src/sentry.rs:134-151 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-secrets/src/sanitizer.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"749aa2941f5f8f8786857aaaf09c8fd14869b54a4cbecd6d62268f7163349b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:134-150 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:87-102 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc526ad8680e233d8fcdf69c427f77de659fe39b858d0f24b408152dd45d3bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-config/src/managed_text/format.rs:203-217 | crates/codegen/xai-grok-config/src/managed_text/format.rs:220-232 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_text/format.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7a3e2dc8079bafe3cda449fa50f515ffd9d9fb84b8c2692a45bfa64958ded4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:325-340 | crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:345-358 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d13ab8e2b8c92861d0c5c13d907e780eb3cf7711d7dd644a116563063ce773"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:673-688 | crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:694-712 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a5e1a606b4d08ca3e03e83bb5a4a6621229a255fe2135952ee214fd7d4d732"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/entry.rs:150-167 | crates/codegen/xai-grok-pager/src/scrollback/entry.rs:179-196 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/entry.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4180bf42ce7e9d78dc95dd658d6c305658311ef4e5a1d6e5da57fa49a8a3df99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:927-937 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:939-951 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:985-995 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:997-1009 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bda9f383a3824fd57a7f467f313039d330c0f3580c3b48facc886ea394a157e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs:201-219 | crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs:281-300 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f771b2291bab2531db5de387bca26960124129a5dde650aa65c625a81570a3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:1257-1275 | crates/codegen/xai-grok-shell/src/session/telemetry/mod.rs:33-54 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bfb3623b2abde57315f22ad64151407bd4d2880dc2b290ca6ae33d764ccde6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/fs.rs:125-137 | crates/codegen/xai-grok-shell/src/extensions/search.rs:49-64 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/fs.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ad9a97eb56acf3c2daa099e1ce54a44dc61d267f6735e220ea1673bd0d6d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1911-1918 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1923-1930 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1935-1942 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7152b9d764b50862667806cc66f4eaf629479bfcbf73e6626d9dd5964cef57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-shell/src/tools/config.rs:301-320 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/config.rs:94-110 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/config.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4935e3014ff782361d5b0adfadc9b776a3f6344764f3849c4a0c41c48e86c525"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-file-utils/src/s3.rs:203-215 | crates/codegen/xai-file-utils/src/s3.rs:224-235 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/s3.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efb7a2487d756f40be4a252d90ea60086a7e2aa1da8152531d691619225a7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-external-agent-migration/src/hooks_cla.rs:165-179 | crates/codegen/xai-grok-external-agent-migration/src/rewrite.rs:92-104 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-external-agent-migration/src/hooks_cla.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d606653b0df8375daa8b5354b508f08fae06f9eb766f9c1b9e84760edef64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/plugin_cmd.rs:610-625 | crates/codegen/xai-grok-pager/src/plugin_cmd.rs:627-642 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3302a13f750be2f7650c99c3716d404a7926ef6a83fe645786c48d14e9f7095"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:183-201 | crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:209-226 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ba95249c8a7a5363959d1b075f56083aec34b8b8e93e3d08e2507f352da54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:770-781 | crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs:453-463 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d56ffef6900632bbf43a6bf9b2092c6bb29550093af059ca9b716ad5c95ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1263-1273 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1281-1291 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9719c253187b70afc19762bfb7918afaf3cc9526387a0f6c31014d7e4cf0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-lifecycle/src/token.rs:19-33 | crates/codegen/xai-grok-lifecycle/src/token.rs:55-67 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-lifecycle/src/token.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b10f83daab1bc5882f259084efc7ba6fe9fb19b93f99100e1dbc93c02165148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): crates/codegen/xai-grok-shell/src/extensions/memory.rs:258-270 | crates/codegen/xai-grok-shell/src/extensions/memory.rs:272-284 | crates/codegen/xai-grok-shell/src/extensions/memory.rs:321-334 | crates/codegen/xai-grok-shell/src/extensions/memory.rs:359-370 | crates/codegen/xai-grok-shell/src/extensions/memory.rs:372-383 | crates/codegen/xai-grok-shell/src/extensions/rewind.rs:86-98 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/memory.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76658e8c1a30ff162a4b041c44ddb497cfedc693c2f107d3b7f9aac75387af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-shell/src/leader/server.rs:433-446 | crates/codegen/xai-grok-shell/src/leader/server.rs:450-463 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5fc65d5d58b9cad27465a2a8f48b566ac1e7326d4ac24cfa97ca4441b1bcbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/session/chat_persistence.rs:28-46 | crates/codegen/xai-grok-shell/src/session/chat_persistence.rs:57-75 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/chat_persistence.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3a8beb40d0557f661d8118f731f27e9153144b4a88f8b2ecfd4aa1db85a6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs:60-72 | crates/codegen/xai-grok-tools/src/types/tool_metadata.rs:113-124 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"576172fd8e940c6bcbf6931453ed2194f25624ee3664407a9f1be2bf9db334c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1228-1235 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1243-1255 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa7e5073897a3cd7f118cd54621a670ae82a4b46195bd72b9e234cdb98207aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2939-2951 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2953-2965 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2939}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92197774cf6583ff193b15695a30a6178e6eb61b39784fafe610a0fa956bbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-chat-state/src/compaction_utils.rs:834-845 | crates/common/xai-grok-compaction/src/history/filter.rs:149-159 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3f3ea4cae6f87768d6358f21e453a84f8cabf4a0366f4559567e6f838d091d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-sampler/src/client.rs:850-868 | crates/codegen/xai-grok-sampler/src/client.rs:1946-1964 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb6f86bd1a5b9a4b4e6430f63f611fae826fe270d08eefc7baf0a15d0e2351e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:143-160 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs:550-565 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc9bda7c44871f6dbcc309e3f9ab7dac45a038fe853203e90d359a6502894f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): crates/codegen/xai-grok-shell/src/upload/manifest.rs:174-195 | crates/codegen/xai-grok-shell/src/upload/trace.rs:696-722 | crates/codegen/xai-grok-shell/src/upload/trace.rs:730-756 | crates/codegen/xai-grok-shell/src/upload/trace.rs:861-887 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/upload/manifest.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8747faaf9b701aff3454f9600bbf701906dce111e38b95ff3a6f1665cdadc02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-telemetry/src/client.rs:428-448 | crates/codegen/xai-grok-telemetry/src/client.rs:461-482 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/client.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e0228425651ee866e9a43be0604d832866b76c082cbb13a107d3ea4ff01759"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-workspace/src/permission/grants.rs:229-248 | crates/codegen/xai-grok-workspace/src/permission/grants.rs:329-357 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5045a1584d3fab197906a6be8577fbd10e7071ccf517afd901cd97deddb2e1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-ratatui-textarea/src/editor.rs:982-993 | crates/codegen/xai-ratatui-textarea/src/editor.rs:995-1006 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/editor.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cc6a910ea6edc2651acc842bc8f4d6aaacc8030779a20a336323c5b0023ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-codebase-graph/src/index_manager.rs:915-930 | crates/codegen/xai-codebase-graph/src/navigation.rs:190-204 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d74b9adfdd125b5c1a5a7ef6979bcf0a4fed900ba94d8ff0c6a5ce2f9c7e5b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-login/src/manager.rs:1981-1988 | crates/codegen/xai-grok-workspace/src/sandbox/mod.rs:300-307 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"9844d30f98d2cb81abe4d0d86dcfb7686c9dcb122befdedeaaf4ffc9eaa8e2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs:355-373 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2017-2035 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d40ef21fb3e64ce724286ab213ea0c04ccb2f022106d3ce3d55549553dc0866"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:2238-2262 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:2264-2288 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f1fc8ec8a1b9873e2c2119c3c8795eedb26fc0cb7160fa1a25bf0f240de10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/ptyctl/src/server.rs:188-197 | crates/codegen/ptyctl/src/server.rs:202-211 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/server.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba92d52c004c927778b5891461f60938e7bd0ff09289e9fc413055a0f53f5221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codegen/xai-file-utils/src/gcs.rs:614-640 | crates/codegen/xai-file-utils/src/gcs.rs:654-675 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8c08bb17999689dfe5eb1e061e08197ae6f2c09649c87ffe516a7a9f92bb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-memory/src/storage_v2.rs:168-185 | crates/codegen/xai-grok-memory/src/v2.rs:292-310 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"2466eed75a1fe1122fef6d0f1a4dce7f6ce00a949cf1f90b6ab48970643ac0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/markdown_content.rs:167-180 | crates/codegen/xai-grok-pager/src/tracing.rs:102-118 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/markdown_content.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3475017eb0f7eec565ad37555ffb631ae3e1c9abe1b151aeec269292be011068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/leader/client.rs:244-256 | crates/codegen/xai-grok-shell/src/leader/client.rs:267-280 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/client.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f0684d2e81ffc435f0bbe7e626660853409244cf035d426f77e65e0e6e1833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs:138-160 | crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs:170-190 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc1272bc1b97e3d9b4a5e61995cfdc338137159d282a8b9f5d7bdd9f54ae142"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:758-767 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:775-784 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:792-801 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fa102725b374c5364cb75c1d4df076376cc8e64ebd9ce33aed2d7a8e24abd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/event_loop.rs:3455-3468 | crates/codegen/xai-grok-pager/src/app/event_loop.rs:3474-3497 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3455}}}],"partialFingerprints":{"codehealthFindingId/v1":"00735cd51fb1c17c6c537bbd3ffdf61092ed342eae9f5235d760c9bfc22b6ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:2277-2290 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:2298-2315 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"15844326fdb7e1c45afa8a4a495f7c444bd056756e987244631db291d0afcd67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:290-303 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:432-442 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf24329bd634a2ff96e30a981fce3a8af686ecc40080241a9a808e853d73a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-egress-proxy/src/http.rs:186-196 | crates/codegen/xai-grok-egress-proxy/src/request.rs:49-59 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/http.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad06a2a41d21672cfcfcd22bacd4fd176327ce83a25fd1956d440fe87ab106f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/bg_task.rs:195-209 | crates/codegen/xai-grok-pager/src/scrollback/blocks/subagent.rs:262-280 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/bg_task.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9059d18431b9234997916895da37203cbf4d27e68c1b6c82dfd43c018aab5f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:1553-1565 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:1570-1582 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e85c8530512594c041ffb02e81d12cf16676a334dc176f15604450d4a3b58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:141-153 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:255-267 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af9a149951e30fa6dbf972b47efb78e1f74dd0961458f422ef0299925a2e79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:114-125 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:178-188 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fcb91e055d9c76fdaf18a722973b5b017c80c1a8f0728d6dc20b9cbfafee33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-tools/src/types/schema.rs:25-44 | crates/common/xai-tool-types/src/serde_lenient.rs:118-134 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb8cf5462e1d45632d37a9ae1ffa0e9c42694b4d960958f3d766c5466dd2ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs:571-579 | crates/codegen/xai-grok-workspace/src/permission/grants.rs:145-153 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc0121f29017bc528b05c8ca954e482c60bf31b65d2f3ad42a349cbc15bfb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-ratatui-textarea/src/editor.rs:907-919 | crates/codegen/xai-ratatui-textarea/src/editor.rs:921-933 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/editor.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c27cb84470d21cdf76bfeef531d4534c4323a3bd44c512f00026d555310a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/common/xai-circuit-breaker/src/breaker.rs:248-262 | crates/common/xai-circuit-breaker/src/breaker.rs:264-275 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-circuit-breaker/src/breaker.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa15f400e224c7d6d066341fd17ca0d531eabfb79642f303ad340df913b469f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-fast-worktree/src/git/reclaimed.rs:221-241 | crates/codegen/xai-grok-shell/src/leader/server.rs:1032-1052 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/reclaimed.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506768c6b752dc08dd0265a4ba2f0e10ab2a2967a8b40bed1c7a993262e81ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:3034-3050 | crates/codegen/xai-grok-pager/src/views/goal_detail.rs:159-178 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"e485a5be9883fa34337a3c11cd180ea304b85cae5755921cd63fc625becf06fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs:1891-1901 | crates/codegen/xai-grok-pager/src/views/memory_modal.rs:2020-2030 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a878c2ecc9ef4ede55556235cd85a30b6dff88edb36a87aaf9bd5213efce78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/codec.rs:407-416 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/intent.rs:206-219 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:151-164 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/rewind.rs:124-136 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/codec.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b7bdd64ab0890ea47ef266b9bc4f3621794a2b79e5b1d1d4b7880750e543dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:147-161 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:145-159 | crates/codegen/xai-grok-shell/src/util/config/resolve/tool_approvals.rs:91-105 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c8e48f6640522bcd35fbfef54b1f51a4d9c5121cf7b03e64e3421d3a104ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-pager/src/slash/commands/imagine.rs:23-37 | crates/codegen/xai-grok-pager/src/slash/commands/imagine_video.rs:24-38 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/imagine.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe438381d46ff36ca967ea1c3ed05d9bcde1e91955e453b5b8a6b46b7105a99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:979-1002 | crates/codegen/xai-grok-pager/src/views/feedback_modal/enum_picker.rs:174-197 | crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs:492-515 | crates/codegen/xai-grok-pager/src/views/tutorial.rs:120-143 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"66486b5b33175b9ce4155cbc3ede2ab99d6267543f2427d89652389ceb7fbf85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/crash_handler.rs:60-72 | crates/codegen/xai-grok-workspace/src/session/mod.rs:826-834 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/crash_handler.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93f0e211b3fb041223c72290c1a6cefcbe17e0d6f1c38412cc57bcbfd1044d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:177-190 | crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:226-238 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ee028146cfce57d2428b248fe20d31c4784bf9592dbc6b691cf8b335fc460e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-hunk-tracker/src/types.rs:178-196 | crates/codegen/xai-hunk-tracker/src/types.rs:199-217 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/types.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"586326a8e2229a38570e65651c5efb7fb8dfc43e56f173e40a7c357b7682e131"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-config/src/endpoints.rs:261-269 | crates/codegen/xai-grok-telemetry/src/external/config.rs:222-230 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/endpoints.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"43238934bff1cba1479a0b3963f6e2884bc2e1c59a2c84b7eeebbfe3ec839e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/codegen/xai-grok-config/src/global_hook_sources.rs:254-267 | crates/codegen/xai-grok-config/src/global_hook_sources.rs:269-282 | crates/codegen/xai-grok-feedback/src/draft_store.rs:621-635 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/global_hook_sources.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2561cdcd3fabd29e02ea1aee459603c89a36c8ad6947856e6fae6fdc4186a99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:234-250 | crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:258-274 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e07c7b7e7ce3ba96cd81308a52dd003b84f6043d32981232fde1ea9628897d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): crates/codegen/xai-grok-tools/src/types/memory_v2.rs:53-66 | crates/codegen/xai-grok-tools/src/types/memory_v2.rs:73-87 | crates/codegen/xai-grok-tools/src/types/memory_v2.rs:94-108 | crates/codegen/xai-grok-tools/src/types/memory_v2.rs:115-129 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/memory_v2.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8a9c714d30ae007b73c74a8caa2b711baa950ee8b13edb53e3118b01952fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-ratatui-textarea/src/textarea.rs:2144-2157 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:2160-2173 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1643f5d5365f4ec548240deaac7882475b3a84018d7db22ae540d2f77f0597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): prod/mc/cli-chat-proxy-types/src/feedback_types.rs:1529-1546 | prod/mc/cli-chat-proxy-types/src/feedback_types.rs:1549-1566 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prod/mc/cli-chat-proxy-types/src/feedback_types.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"1959026db94b9c3ff902cfe1f519b544066bf79cdf02984924e5ee945f5df8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-pager-render/src/prompt_images.rs:835-842 | crates/codegen/xai-grok-pager-render/src/prompt_images.rs:941-950 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac265f0b3ed6fdd79e4f1bb40fb3bb799594ce62aa61dd99676ebf37aaefbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1554-1569 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1664-1679 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"b121c09a50dc91a43f44050176ecc381f6770e94439fa80e09984505a778ac87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:118-137 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:124-143 | crates/codegen/xai-grok-shell/src/util/config/resolve/tool_approvals.rs:69-88 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f063476afaa75e67f93375ae2a9421465089d2009ccda439276f61e57ee92ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs:95-115 | crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs:119-135 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"14613ccbc35205f3b43948cf2cc84edf1cc320bfed79bf4bb96f85119c1b3f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-pager/src/acp/subagent_message.rs:145-159 | crates/codegen/xai-grok-pager/src/acp/tracker.rs:2435-2447 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/subagent_message.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f3c8a781d36a014ff3c0acb4da0c081ea887fbf2db87f2a77f9f3cf521b7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1523-1542 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1543-1558 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd866aee4641af8491265ddacfcd97a96ad6f6171c8e60eaf301580715f9f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-telemetry/src/external/schema.rs:906-919 | crates/codegen/xai-grok-telemetry/src/external/schema.rs:932-953 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/schema.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a727e8993d8bd35fd7dae4a461ad43943a958e9465bf99e1082fb7070e16538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:5625-5638 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:5720-5733 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":5625}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d6e218929a21b497c7713714372253eddbcaf2edd38055d521696295213cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codegen/xai-grok-pager/src/views/plan_approval_view.rs:104-121 | crates/codegen/xai-grok-pager/src/views/plan_approval_view.rs:128-145 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/plan_approval_view.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d37aeb83070afca0c83171b838f02ec832fcdcfda9d4268be06b8f6f3670faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/leader/server.rs:555-565 | crates/codegen/xai-grok-shell/src/leader/server.rs:908-920 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c77d1087db2669158893a0c6d03047a81c00676c37ee0d9ddf255f5645a9954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-gboom/src/engine.rs:76-87 | crates/codegen/xai-grok-gboom/src/engine.rs:91-102 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"01199cd626dfd9dd4e6307080b92503cafb3ffd23252c26fe8ad5c5c4a1710c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1486-1499 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1504-1517 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a22fa15ada56d2c5d76b893215aebc53d3c1e44c02472a2c9a026fb5898308"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-shared/src/clipboard.rs:1183-1190 | crates/codegen/xai-grok-shared/src/clipboard.rs:1193-1209 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb262b5043052f051b3b877572bd6790ae1c7d4219961c2d9bbdadd7386c233"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-file-utils/src/queue.rs:1705-1714 | crates/codegen/xai-grok-test-support/src/acp_wire.rs:88-97 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dd68cbeb9130f2ed63090305ad60f51f488934ac51eef2fdd1ead7a2dccaac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-config/src/campaigns.rs:77-89 | crates/codegen/xai-grok-shell/src/util/config/announcements.rs:18-32 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/campaigns.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e7daff1d182570b0cfb2ac88b1b2f866cc571d5c41083514779187a253f9b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:1489-1500 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1557-1570 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a944956077a8239662ebb7d24fcd92242e5e72825dd717fc8c5707381ee228b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/agent/external_otel_pin.rs:124-135 | crates/codegen/xai-grok-shell/src/agent/external_otel_pin.rs:137-147 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/external_otel_pin.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ea5f06b5314be6eb155f0ee635284ad5b601300b07a338ab2ac1d6dd695a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:273-282 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:285-294 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:297-309 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:327-334 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0383dd9383094ff1235febe072d5e220d59c4201d116cc0ac6076d82075a2cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-workspace/src/activity.rs:720-732 | crates/common/xai-computer-hub-sdk/src/demux.rs:279-297 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/activity.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6397685d8fa8307ccb7eeb8d89a8c88a28d3871e1c7e654f13d4286ccb5502f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crates/codegen/xai-codebase-graph/src/interner.rs:207-218 | crates/codegen/xai-codebase-graph/src/interner.rs:221-231 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:386-396 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:399-410 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"efce3ed4a6653203616ee26efc053649f84ccc2f95d92b4c35bc9de5d7a35445"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-bundle/src/lib.rs:355-363 | crates/codegen/xai-grok-pager-pty-harness/src/scroll_matrix/log.rs:216-224 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-bundle/src/lib.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8865ca8923dec7e3b3ef98bf9cbc420fa1929c99c43caa59ed02948564655e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-cloud-config/src/managed_config/response.rs:142-159 | crates/codegen/xai-grok-config/src/validation.rs:13-26 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/response.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c6680421ea2ddc62aa7b48548d794f6acc0b024e3c36f309be214220734af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager-minimal/src/auth.rs:109-117 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1089-1097 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/auth.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"314796362ce100931c07f74723a2def2bbb88697dbf446cfdd435afe8326aa3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/pty.rs:440-454 | crates/codegen/xai-grok-test-support/src/leader.rs:539-550 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/pty.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f20aeacd5d3ee4cee8a183d336305d75a0e207dcee21ffc01e29daf0bd1c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager/src/acp/spawn.rs:86-96 | crates/codegen/xai-grok-telemetry/src/sentry.rs:71-83 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/spawn.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a1a5212473fa070b7a435c4536ab8b21d350fae03c213d76e4be1f1c40b044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1533-1549 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1643-1659 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a219d803d9500c1e66679fb2e24e9363e4e81e2c401245477fb156e5499283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs:227-239 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2230-2245 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e63d0f114200bd8cc14c3f16bc67900910adba304b9bb451cb10cd27dd7459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-pager/src/views/memory_modal.rs:639-654 | crates/codegen/xai-grok-pager/src/views/memory_modal.rs:658-679 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"46954d4276fddf54841ec93c1b787ab59e86b1b783d5fc87251ad518d5fda836"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:218-238 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:253-273 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"640c75ea8c27b56d035b0f77c59ed8383ce284c90e84aae050ff8e2925c91b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-sampling-types/src/types.rs:1033-1044 | crates/codegen/xai-grok-sampling-types/src/types.rs:1072-1083 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/types.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b593af47b2807ab56e58b42f58d11246c463cdb9f1fc28167876a27c5994e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/agent/config.rs:2160-2170 | crates/codegen/xai-grok-shell/src/agent/config.rs:2173-2186 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f7027073839776c5486a1ba114d3f763383684e5cadc2b6f419ce60618908e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-shell/src/session/handle.rs:322-336 | crates/codegen/xai-grok-shell/src/session/handle.rs:348-361 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/handle.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f012729b011ae3dbd8fb7ea64309cc129226840a401c42a02b0c2b70675770a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:177-188 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:178-189 | crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:137-151 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:123-137 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"add7cfc001beceb0dfc7fdee02abbdad980c94b81330e7ab8f8444b2545c6674"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-config/src/fs_atomic.rs:379-394 | crates/codegen/xai-grok-telemetry/src/id.rs:158-173 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5037c2c03b2a39e24b7a5662b157bc4590ece72db2142b04084595814c0d4e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/codec.rs:135-143 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/codec.rs:163-171 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/codec.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"49615d525be15173b6d357d1a9aebb0b6af64baed6f9b1fd48b37efbc4535650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/replay.rs:411-415 | crates/codegen/xai-grok-shell/src/session/storage/replay.rs:436-440 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/replay.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2895c386c20fe597d848bc8a521681d7eba477e8b4c50003f11ce110094fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/replay.rs:447-459 | crates/codegen/xai-grok-shell/src/session/storage/replay.rs:462-474 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/replay.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d5f1078599a14f44d6b0cfea21f02931ace9aecc818cf2c7c12cf4b7957ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:121-134 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:108-120 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b6f8222efbcc9eb70711393aef18d512c6f11948d49ec4fd06d6300d440f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/embedded_search_tools.rs:118-137 | crates/codegen/xai-grok-tools/src/computer/local/embedded_search_tools.rs:139-158 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/embedded_search_tools.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"56444657c9cf90fb3fa6e51342dbd9248d7d98ddbdef92c3a409ab144713aa40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:1682-1696 | crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs:135-146 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2b96adfc7b5e59928ee0ddb48fd97d828a0e68a03e9b4f27f028cde88d5131"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs:44-53 | crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs:221-230 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feb4bf20cfca6c4e81ddff496fe222c8e9265a23b58d76a46717f0b7daa3230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-file-utils/src/storage_client.rs:371-381 | crates/codegen/xai-grok-login/src/grok_auth_credentials.rs:96-111 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1f2129bbc1414b1c72d671362de3d0ad955a6275ccb9445bab5261255b6a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:1572-1584 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1586-1598 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0c15d1a07c1f7f2eb83abf64cb956b2c29cde4523216f745933509b1aacfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/app/connect_timeout.rs:46-55 | crates/codegen/xai-grok-pager/src/app/prompt_ack.rs:40-51 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/connect_timeout.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d9abfc2397eee6f2855a87b3ff7bbb9681b53a9ee34e63c9f1779d66ad6550"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-paths/src/lib.rs:88-98 | crates/codegen/xai-grok-paths/src/lib.rs:216-227 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-paths/src/lib.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e40607b45b8261f476486307d40bd0064913f21dfa1258dd062ea5a2a11c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-sandbox/src/command/backend/seatbelt_profile.rs:230-239 | crates/codegen/xai-grok-sandbox/src/command/protected.rs:81-90 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/backend/seatbelt_profile.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c98945a16244d2535a258306c199ad51a44f3063c37c51c44c392e6e6b0d253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs:335-353 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs:359-377 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd9548fd5232072059f927c5bdd90500c7e2b0ad056735d38705a1c5d570f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs:202-215 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:91-104 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"460316bce6ec07436bcd735aa465405e02ce11411629bec622c6736ecbe30c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/marketplace.rs:83-93 | crates/codegen/xai-grok-shell/src/remote/client.rs:949-958 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/marketplace.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d540b8ba05b317e55e91e75af06dca473ce50edb8d72eb6d8ad35d788e7f5933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:958-968 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:988-998 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f849e41f9de59b547766e48b4baec4746c1f48524bb8d03fecbad31b0a407d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:804-814 | crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:818-831 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9d9dc477493f5174569b874abc010e686121384a330b370a8c3d8cfa626dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/mcp_cmd.rs:500-509 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:153-166 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71c0e9fcef7e7e64aaca6a3cd71f0844c094ee709305d372251e34ddb843f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-shell/src/session/handle.rs:684-699 | crates/codegen/xai-grok-shell/src/session/handle.rs:711-725 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/handle.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f040b859987117085c1384643fb5c6bed873db73883ad023739408a5768c7114"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/session/workflow/tracker.rs:425-433 | crates/codegen/xai-grok-shell/src/session/workflow/tracker.rs:442-452 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/tracker.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebc17bd62d303bae2e41137fac5a87cad14921616ab9643b5d8961b47240c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:788-799 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:809-820 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"9476fc2c9444f4a178b1301342473b5ed2aaadf4e76374567f56aa3948f865e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-mcp/src/elicitation.rs:94-103 | crates/codegen/xai-grok-mcp/src/elicitation.rs:105-117 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/elicitation.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"359b5017ccaf03ec4c3a8174e95fa314d4148d8118829078ebebeeea59cf6333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager-render/src/appearance/cache.rs:187-199 | crates/codegen/xai-grok-pager-render/src/appearance/cache.rs:558-569 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/cache.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead5e829cd1369e8608bf26cb34ac5d717099cb62c699b2049a4080f7ba9cefe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 16\u002B corresponding lines): crates/codegen/xai-grok-pager/src/tips/clear_detector.rs:36-52 | crates/codegen/xai-grok-pager/src/tips/clipboard_focus.rs:47-62 | crates/codegen/xai-grok-pager/src/tips/export_copy.rs:94-115 | crates/codegen/xai-grok-pager/src/tips/plan_nudge.rs:44-59 | crates/codegen/xai-grok-pager/src/tips/send_now.rs:13-28 | crates/codegen/xai-grok-pager/src/tips/small_screen.rs:34-50 | crates/codegen/xai-grok-pager/src/tips/ssh_wrap.rs:31-50 | crates/codegen/xai-grok-pager/src/tips/word_select.rs:30-53 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/tips/clear_detector.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"417a660612bcda63359ff4678e93bf39d82d46e13278830494f31d7d71df4739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-shell/src/session/workflow/registry.rs:431-440 | crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:349-358 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/registry.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1cac197f4afe3bd3d8307f07a9c34f96a9b07a0652e904f199eb79fa020f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/mcp.rs:10-22 | crates/codegen/xai-grok-shell/src/util/config/resolve/mcp.rs:31-43 | crates/codegen/xai-grok-shell/src/util/config/resolve/mcp.rs:52-64 | crates/codegen/xai-grok-shell/src/util/config/resolve/mcp.rs:73-87 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/mcp.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1bdef9bbebed9fc3de0931fa3f2a91cc8a274516b6a1ce91a31f74273b5024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2589-2603 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2608-2622 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7600e97b03f0211432c00fb034bfb1c9c25dd96e17d20a54201a64878a0f38d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/common/xai-computer-hub-sdk/src/harness.rs:1545-1552 | crates/common/xai-computer-hub-sdk/src/harness.rs:1562-1569 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"8551633b8bf96a323edcec682c33d8be7ff5d1bec0c22a6cdb49ea27919a4f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager-minimal/src/panel.rs:115-122 | crates/codegen/xai-grok-pager-minimal/src/panel.rs:124-128 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cbd8602e782a9ec6c76d2c45aa5bbba965387864bc0a65ea4e70e823054bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs:68-76 | crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs:80-95 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/host_clipboard.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bf74c3352d11b782ea7a4263c10f5b997e3f4d6fdc4dd834b96bbfcdcc3aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-pager-render/src/terminal/da2.rs:51-63 | crates/codegen/xai-grok-pager-render/src/terminal/xtversion.rs:67-79 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/da2.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c06eda71284fd5faaf5e1418719b4e154a8883de134d7a6c8a6e08ce8ac76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-sampling-types/src/conversation.rs:445-453 | crates/codegen/xai-grok-sampling-types/src/conversation.rs:455-465 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fc13b82c300b1a148e4ba18430d95d5ad6856b97f25d5a6eeb8f39edd0caac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:170-184 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:252-262 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9205b1f971a9c3e4f08d994e1a63e14c14ae1395d3836cb5be05a8c750ae0ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): crates/codegen/xai-grok-tools/src/types/schema.rs:73-81 | crates/codegen/xai-grok-tools/src/types/schema.rs:121-129 | crates/codegen/xai-grok-tools/src/types/schema.rs:150-158 | crates/common/xai-tool-types/src/serde_lenient.rs:204-212 | crates/common/xai-tool-types/src/serde_lenient.rs:217-225 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34180d1744a5eac399b1ad1f534437cc5423d81812d78254265939024d82cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs:48-56 | crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs:145-152 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"656900b3eaf27aae03306d55b5eda06aace2cf4197fea203be8f0f5eacfdca0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-workspace/src/permission/sandbox_network.rs:769-785 | crates/codegen/xai-grok-workspace/src/permission/sandbox_network.rs:790-803 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_network.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea70c07448a5622ccfca296c90e39d75f752b7d065e4eb58e518c13fc0423ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:137-146 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:307-316 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:126-135 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:150-160 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"748c39c7c26fd21d2a8d887ae0e662a5bf96e4ceb122194f163fbd9d738d0468"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:711-722 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:725-736 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:740-753 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:758-769 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:772-783 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:795-808 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deb5949433072f4eaf18f9cab6bc3bc988de4f7d2c6046d0f6cd6d2b5bfac21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/handle.rs:573-589 | crates/codegen/xai-grok-shell/src/session/handle.rs:614-631 | crates/codegen/xai-grok-shell/src/session/handle.rs:662-679 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/handle.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"26232d664e656ff7b5685730f78ed52ac23e5e8210a3931bb94124f597009107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/session/helpers/session_recap.rs:263-275 | crates/codegen/xai-grok-shell/src/session/helpers/session_summary.rs:113-121 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_recap.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"72192ff0175acd612a86ea60a9e4afba47ae244ae640bf19d640f3ced05fedaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-shell/src/session/persistence.rs:1759-1768 | crates/codegen/xai-grok-shell/src/session/persistence.rs:1773-1782 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e8bd49271885cfcc959a2054fdb6e5d204d9443648d92a0d622221a0ecffb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:912-923 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:925-937 | crates/codegen/xai-grok-shell/src/util/config/tips.rs:155-165 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f30a888eca0d0a639334357e3f5e711ad588821baf22468ca1d2056864ecf7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-workspace/src/handle.rs:1940-1948 | crates/codegen/xai-grok-workspace/src/handle.rs:2012-2020 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad30994ccb33464f74c1699c20985993d4369f3725e6f9dc6f2e116ef6ece9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-workspace/src/worktree/create_root.rs:131-148 | crates/codegen/xai-grok-workspace/src/worktree/create_root.rs:229-243 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/create_root.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9899cc1d3534065c769a2b34b2c74f5689b36783c7e67d149c11181eade5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/common/xai-computer-hub-sdk/src/log_donate.rs:146-156 | crates/common/xai-computer-hub-sdk/src/log_donate.rs:158-168 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca07006027d69f235ae29100398ff5538b5fe297d7911b984ab14e560cfa0925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:469-477 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:482-490 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/status.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"f588eb04f9c63622f4b14b522e0c0121faa1a29b9c4070934787276aaa0afdb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/headless/cli.rs:134-143 | crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:243-254 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/cli.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"312919b06811c9273df6c2c6b7df841f5659bb222d623990b1f3fd673ad42a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager/src/views/file_search/state.rs:298-306 | crates/codegen/xai-grok-pager/src/views/history_search.rs:540-550 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/state.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"094af05c54080c281d296cdd92f395d1990efba24dc83450e38ac961266f866d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs:740-750 | crates/common/xai-computer-hub-sdk/src/error.rs:67-77 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3f550f2b5c6951d50e51b92de7e6206aa625d92d196c3f5a8ce31ecdaf7c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): crates/codegen/xai-grok-foreign-sessions/src/claude.rs:30-38 | crates/codegen/xai-grok-foreign-sessions/src/claude.rs:44-52 | crates/codegen/xai-grok-foreign-sessions/src/codex/mod.rs:18-26 | crates/codegen/xai-grok-foreign-sessions/src/codex/mod.rs:32-40 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf017655bdae1918ca6ef671d469db7970329d756d99824a6002a3e1e3987bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:394-406 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:514-526 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d403fe1403c45452ddb78092fc82928ab2b76b73c0b2b6d3cbd3728cd5a113"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:79-93 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:141-158 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a047019920997e0eeb7e40b37cea0c38ccf25f5c6c42b7d6398c664eaaf8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-config/src/compat.rs:253-259 | crates/codegen/xai-grok-config/src/compat.rs:372-378 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/compat.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4762ecc5163d8157c9ff06861aae97ed59f08dde634704fa605f4c6decdc8033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-config/src/mcp_servers.rs:217-226 | crates/codegen/xai-grok-config/src/mcp_servers.rs:306-315 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bda45d9e4d839ecbdb3acb938ea39710b9ae48a9e6a38669a281f315c79721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-mcp/src/servers.rs:180-193 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1895-1905 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab1ec32f978cf24f2a2160fea689f930b59f5754633469c6c1754b597ae3bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/ctx.rs:95-106 | crates/codegen/xai-grok-pager/src/app/dispatch/ctx.rs:111-118 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/ctx.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cd9cd873aedc57942178769a3f1e2c57a9ca1ad122dbfc0765d781d2b8b512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-sampler/src/client.rs:1973-1983 | crates/codegen/xai-grok-sampler/src/client.rs:1989-1999 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ee997af88cfdaee7a0dfb802b84a8006deea15ac8842e4f62aff61e890d114"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-sampler/src/span_timing.rs:174-187 | crates/codegen/xai-grok-sampler/src/span_timing.rs:189-202 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/span_timing.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d530a785525eca3f47776186503a753fd411b5869b56db7b02f6163b399cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-ratatui-textarea/src/editor.rs:948-958 | crates/codegen/xai-ratatui-textarea/src/editor.rs:960-969 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/editor.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0a0e9d65752cac00051a3c4f4aefef30fd89659ae8c19b7c8a182da4141a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/common/xai-tool-protocol/src/frames.rs:1328-1334 | crates/common/xai-tool-protocol/src/frames.rs:1338-1344 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-protocol/src/frames.rs"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"068fcfd101fcd3a89feb1a4ff4069b4c34b142ded9d2b47181e8e2422c837967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/codegen/ptyctl/src/styled.rs:304-316 | crates/codegen/xai-chat-state/src/compaction_image_context.rs:174-185 | crates/codegen/xai-grok-shell/src/session/image_describe.rs:157-169 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/styled.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"429542728df83ed2efe7bbea6de68d0207d509df6fdaa15ad31285e9794eea73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:107-122 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:298-309 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a52f0630716d4addecc5712986bf4a79a073eabefd3af20eb76d7e70531be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-mermaid/src/engine.rs:93-101 | crates/codegen/xai-grok-pager/src/acp/spawn.rs:238-246 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mermaid/src/engine.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"64cf4a499b0253e5a6774a46417c00c0755a7765a3465c82a197c289eece415d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:170-181 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:105-120 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"81be587ac9fa756b958b529b0d12803d949645fc0dd898df78c296420feeac9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:524-533 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:416-425 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c15bd6b6c5368512a3f62c6b6a95b2fc0e3a8a49d301b0b8ba689e261b9b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-permission-rules/src/policy/path_match.rs:91-102 | crates/codegen/xai-grok-permission-rules/src/policy/path_match.rs:114-124 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy/path_match.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5d50f731f9d6364f71da8be790b8b989a1b059424541e07435bb8a115fc6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-sampling-types/src/error.rs:672-681 | crates/codegen/xai-grok-sampling-types/src/provider_error.rs:238-246 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/error.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"320e6df3627d5c8b6931aefb12379500db70f94661dc1a07d8ccc39007b94629"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-secrets/src/sanitizer.rs:270-281 | crates/codegen/xai-grok-telemetry/src/sentry.rs:153-164 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-secrets/src/sanitizer.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4b24d75062a12aa530180270ac328c5d799e4d6f4131d8799d02b3e5629f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:26-38 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:44-52 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc5ba4cfeec642a1da409f1516fad7b3e2d36c66b1bfc98ff6092ee2b9f4290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-workspace/src/restore_fetch.rs:227-235 | crates/codegen/xai-grok-workspace/src/restore_fetch.rs:253-264 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/restore_fetch.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2abc8b3ba2ddbd73e1c162e8211216a3fb27c6ac885e9364d8cdfb566c3745"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-sandbox/src/command/violation/coarse.rs:653-663 | crates/codegen/xai-grok-update/src/auto_update.rs:1509-1519 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/violation/coarse.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb73d2320397dac17aa34b53989c3ec1780596d6dfc09d95cbca8cc8b79e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/codegen/xai-grok-shell/src/remote/agent.rs:106-116 | crates/codegen/xai-grok-shell/src/remote/agent.rs:171-181 | crates/codegen/xai-grok-shell/src/remote/agent.rs:187-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/agent.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e328292f31da344cb7d2c44128b3d8c36ccac0e76ab7e6be73ca0beaa79987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1120-1133 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1140-1148 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1430-1438 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1443-1451 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bf9f6fdbbc9bd6eaa962dfda0e1f3f3b49e3cd46a1c70145fb28e604160d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/enter_plan_mode/mod.rs:58-68 | crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/mod.rs:63-75 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/enter_plan_mode/mod.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6763dabb170171e25aea3750d7065e39f037fd76938918f99539c38f5100ab0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs:143-156 | crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs:163-175 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8885e3b606d610e360af82fd7510f30639cc99855af9299580c10d2a99e4f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:411-424 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:471-476 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:497-507 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b145c13bed57c9681fdbdc240834a6e3b32f683cd8c2b668b1a674bc385520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/ptyctl-cli/src/commands/client.rs:102-112 | crates/codegen/ptyctl-cli/src/commands/client.rs:115-125 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl-cli/src/commands/client.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa3d8eb886db807e3b5d5a6cbb2e6008ca9ae3ebf062cb37197979b1a946900"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:168-175 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:208-215 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:218-230 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:258-265 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8712912aabf4e0a90afa016e36651e95d4e13801843523b9a7a4cc10eb57e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:340-352 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:355-367 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:414-426 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a9dba5c4f507914a182b4cf1436342af54c3f3b806ef0deb3e5bafb5a7eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs:156-164 | crates/codegen/xai-grok-config/src/managed_cache.rs:564-571 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:604-611 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f447d44d1f5f04894008ca2c053c3b2f000eaf73f559b6b917044f5206b8acac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-config/src/mcp_servers/json_config.rs:62-72 | crates/codegen/xai-grok-config/src/mcp_servers/json_config.rs:289-304 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers/json_config.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"829b5853cc34c9b30d30fc2d20c0d2b6b5b78ca400ebcf5a176c39ee4ac016a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-config/src/signed_policy.rs:236-244 | crates/codegen/xai-grok-config/src/signed_policy.rs:251-259 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/signed_policy.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"517deddef8e3951baace66562d78d4d5b9cd2a5a066a97952ab50c5b7af6f40c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codegen/xai-grok-memory/src/batch_dream.rs:554-571 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1641-1656 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88d5919c7b40cea4a6a9fe90b6f5b3af542531ef7b487799bbecb46f61f0ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs:415-424 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs:426-436 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e9b3400b87cfcb0227a28710ad9286e85f4649c1889d7ae10259799751735f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:470-481 | crates/codegen/xai-grok-shell/src/agent/config.rs:2397-2405 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64e6427a92e8c40c8bdf11038373a4e152160876097413cf45772b523c663f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager-render/src/util.rs:219-229 | crates/codegen/xai-grok-pager/src/views/picker.rs:811-821 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/util.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ba62b2ba4c4200999a0a76f5361aa5cf37806f358ca517511c74d92289cd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/csi_filter.rs:161-175 | crates/codegen/xai-grok-pager/src/app/xt_filter.rs:288-301 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/csi_filter.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"379cd2574707303d3ac4e86b3699c7338d3b776d5681d1ca792408b7931876ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/views/queue_pane.rs:830-839 | crates/codegen/xai-grok-pager/src/views/todo_pane.rs:356-366 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b42fb35db0d6cfec823966ccb10b9f25794dc38a877c84c31a7d71df66c7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-agent/src/builder.rs:1407-1418 | crates/codegen/xai-grok-shell/src/session/user_message.rs:60-72 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/builder.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0976d83b1d9a87f7e955854aa73d923d0e46c9e53f2eea8e169b16085f24a406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-config/src/signed_policy.rs:565-571 | crates/codegen/xai-grok-permission-rules/src/git_content_filters.rs:48-58 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/signed_policy.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2422538805c7be0d13d8deed12c9c11b9b10110919f843fbb5f2b7c568f9434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-login/src/config.rs:16-29 | crates/codegen/xai-grok-login/src/config.rs:30-42 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/config.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f043b4198385a83cb980bce9639828acc879d1911061b28612ae56c6e0b1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/codegen/xai-grok-markdown/src/mermaid.rs:1244-1256 | crates/codegen/xai-grok-workspace/src/file_system/git_status.rs:36-51 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:760-775 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd6ac276d0a38e7c4696372ac8a7aaa8bbc3d26e7391800dd5e2ee5abe354ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager/src/app/session_startup.rs:812-823 | crates/codegen/xai-grok-pager/src/acp/spawn.rs:254-265 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"e886ca1bee69726ab9822a333ceb5ed141a25a078bfbd5bb3854aefe702a3e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:213-221 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:222-230 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:231-239 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:240-250 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs:252-262 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_registry.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7067e837aeed8fa6ec39c67742c7ab51f537b72d3e76e042e939c64d6f14823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1378-1384 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1405-1410 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"809ea85778c2877deaf7b0caa02fa37208bbdc3107f601765fb4dcacb052cc97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-config/src/fs_atomic.rs:965-976 | crates/codegen/xai-grok-pager/src/fs_size.rs:219-230 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f005880267c887c90b087bb497b7b7082e3c56f2f41185c313b4527ee7a61e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/codegen/xai-grok-config/src/mcp_servers.rs:370-378 | crates/codegen/xai-grok-config/src/mcp_servers.rs:443-453 | crates/codegen/xai-grok-shell/src/extensions/mcp.rs:365-373 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254c2df7a9c6bedd14107b4b6769cdbe91a59fbd1fe07044f298d4ffc737493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-markdown/src/latex/mod.rs:56-66 | crates/codegen/xai-grok-pager/src/app/session_startup.rs:631-639 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/mod.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c31aff5846ad4e4fcd394d534207260ee3fae619ff4d6cd493e95127a9e361a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-memory/src/batch_dream_catalog.rs:264-274 | crates/codegen/xai-grok-session-search/src/fts.rs:434-440 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_catalog.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec9f2fbb74d0769cbdbccfcf5cee13e2aa523b16c04404434d2301c66785446"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager/src/pty_wrap.rs:255-266 | crates/codegen/xai-grok-shell-terminal/src/pty_session.rs:663-674 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/pty_wrap.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5091521f02755213bff23de6cac17298ec52e0ada6054bdc1aa8511363c6d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:281-293 | crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs:384-393 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"15be3b98d0cee906dfdeff76fe408837c41e1a1513bcaf4c9f3de1d8aa60ebfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:952-961 | crates/codegen/xai-grok-pager/src/views/todo_pane.rs:314-326 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7570da16661373d1f4ee4f37cc6a5b10a38ce0a169768fdae9039ac62ef0e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/persist.rs:151-157 | crates/codegen/xai-grok-login/src/storage.rs:108-114 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/persist.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc112e5ca142750b257a7ad3c60c967a5f0e0a036e95adabb7809b26f14fc96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:204-214 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:262-271 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f527485d8a682b3455f9194a25731a30994b844448ea16736cb2896f61d54c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-tools/src/registry/types.rs:301-312 | crates/codegen/xai-grok-tools/src/registry/types.rs:1783-1793 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"508ddb26b63350ddf60ff0edb05616d657ffc66c493a756dd84d2ddb9145c8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-workspace/src/session/file_state.rs:328-334 | crates/codegen/xai-fast-worktree/src/git/dirs.rs:62-68 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/file_state.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1b41b76a885496b99818e245d63a7d86e6670aeff57441e3d99a9c9670c770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-pager/src/unified_log.rs:42-52 | crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs:360-372 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/unified_log.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6d892c86c72027cb36d4ee99ce67c4db35588f31c1412928919aeca47ad08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-shell/src/session/telemetry/tool_call.rs:493-507 | crates/codegen/xai-grok-config/src/managed_text/source.rs:231-243 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/telemetry/tool_call.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"341429efc6d8e62634928809062992c6e1f9fb88e381b9c32cb3df5d4c9dc2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/file_system.rs:204-210 | crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs:120-126 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/file_system.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a9fc6dda3b3de82251845125422c62135d53c6757c243d1f6c4390681084ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-tools/src/util/fs.rs:62-74 | crates/codegen/xai-grok-tools/src/util/unicode_confusables.rs:80-89 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/fs.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4af0ba786476e13934719ac8004c4a4b51231bba69638067fd0f34d14e71ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-workspace-types/src/rpc/hunks.rs:206-217 | crates/codegen/xai-grok-workspace-types/src/rpc/skills.rs:74-85 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/rpc/hunks.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7f2c5e85c1be855d0bd9abcf71d4893c787b4fc51a48b6d96f7423e2ec16b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-announcements/src/lib.rs:164-174 | crates/codegen/xai-grok-shell/src/util/config/announcements.rs:37-46 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-announcements/src/lib.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc4c42e34e4946acce9a0389dfd848ed0afb703b389efd94006fa6a1003ad35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-egress-proxy/src/decider.rs:197-209 | crates/codegen/xai-grok-tools/src/reminders/task_completion.rs:58-67 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/decider.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eeff14f6e6273038b25b3c43720d9966eb7f6c63d1c2e613b933d322b0fa35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:510-523 | crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:370-384 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a6561d93035077368e15e49ad5c85a3fd31e87fe888c90dbad6d55f18ec814"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:975-986 | crates/codegen/xai-grok-pager/src/views/history_search.rs:489-500 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdca0fbbc624df47235421a6dd2daf8e7abe68483b68cb7bdcc7ce39608b8f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/session/helpers/session_summary.rs:275-283 | crates/codegen/xai-grok-shell/src/session/helpers/turn_summary.rs:101-110 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_summary.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fa0871061b403fccb21ced93bde9397fbd09c2973a8f0e0708f048e107f376"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:939-947 | crates/codegen/xai-grok-shell/src/util/config/tips.rs:5-13 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"650b03b3cd95aec4ab5f71c120df23e15d48a4c444696bc4699e4db76b06a5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): crates/codegen/xai-grok-lifecycle/src/persist.rs:163-169 | crates/codegen/xai-grok-shell-base/src/util/secure_file.rs:55-61 | crates/codegen/xai-grok-shell/src/leader/lock.rs:220-226 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1523-1529 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1713-1720 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-lifecycle/src/persist.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e47026110cbbd3f537a1fcc3a9096bc212e53a24860f087356956233af767f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/results.rs:91-95 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:53-58 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/results.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"98328d2a2121b21bc2a2ae7e652a07fe66a40cc726cd6ae44d7e11159077d7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager-render/src/terminal/tmux_probe.rs:187-196 | crates/codegen/xai-grok-pager-render/src/terminal/tmux_probe.rs:212-220 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/tmux_probe.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"260cce2e3dc362c16b9e6ad3e5228b8e010954a99b740fc5c1384261c2682c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-pager/src/app/mermaid_worker.rs:254-261 | crates/codegen/xai-grok-pager/src/app/edit_highlight_worker.rs:127-134 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mermaid_worker.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"533e031b8fbf01fbaf5e7921ccee7ae484ab97255772e0a4d8640634d7b84ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs:875-887 | crates/codegen/xai-grok-pager/src/views/usage_modal.rs:239-248 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d448755acdb2f24028d4d9302fcb8c8aa3fb9e1b4a2e8e978140b5c3204f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2641-2656 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2773-2792 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2813-2827 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd5891ab5c74c141966751bc3d27bc4fb7c26d4a2f16277355c29ca8c156c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-fast-worktree/src/git/discovery.rs:45-55 | crates/codegen/xai-fast-worktree/src/git/discovery.rs:58-69 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/discovery.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53d56a027f34048fb9a8f7de4a09b4c381ec57c37b2432a77aea68f3438e647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/manifest.rs:324-330 | crates/codegen/xai-grok-config/src/mcp_servers.rs:170-176 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/manifest.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"945fc498212545c0454b04dfc4651f8bd94c13bf10a46e44e6cb74ccb5bccf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs:45-51 | crates/codegen/xai-grok-workspace/src/handle.rs:4735-4742 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a5c7bd88b64c2b438e65304659cdcaf776dbdc22b7a2f82017dcb1edda8de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-login/src/manager/lock.rs:127-132 | crates/codegen/xai-grok-workspace/src/hub_auth/mod.rs:340-346 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a9905c518e9c9f6ce63bc7898e8f55309376d4452591bb72bd829f097211f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager-render/src/appearance/mod.rs:53-59 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:3348-3353 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/mod.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7530d8beb28aa822115483d20d02a0af2778d47930a3d1bc4fec2c880334c532"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:1099-1106 | crates/codegen/xai-grok-pager/src/views/usage_modal.rs:676-684 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a220708f6671511d2b8644810549c3f9f2eae966875f99c90055ee53b5a1ed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-shell/src/extensions/auth.rs:93-98 | crates/codegen/xai-grok-shell/src/extensions/debug.rs:29-34 | crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:593-598 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/auth.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2b4553441ac571d746a1ca15840632bea0c33e90d5ac93b055698f6b201b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:298-312 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:398-411 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:417-435 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:422-436 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae40bf3c2e39fdb944f16b66d1ebdb5ce233770b77f9abdd2954acff0aa8fa08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-telemetry/src/config.rs:27-34 | crates/codegen/xai-grok-env/src/registry.rs:13-19 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/config.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9b05188aa622b09f3da8d882298e5682ba8acf8dae88b26205f5f65d4c2cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-mcp/src/servers.rs:3087-3101 | crates/codegen/xai-grok-shell/src/agent/server.rs:255-265 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":3087}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac44e08af1ad82200181a3c9a6e9aa681f192bc6e74c72c0dcc8d79e4ac8448e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-pager/src/slash/commands/effort_levels.rs:31-42 | crates/codegen/xai-grok-shell/src/agent/session_config.rs:59-70 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/effort_levels.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37ec5efbd6a3e87db997da2468fc23eae0277bb886d1a0e466cc3ec64769e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-permission-rules/src/claude_settings.rs:450-464 | crates/codegen/xai-grok-shell/src/claude_import.rs:37-49 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/claude_settings.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda0f0d375a29a6fba67c2fc5809e63300d4223513f28e474e16b138a848c054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-shell/src/session/unified_list/row.rs:119-125 | crates/codegen/xai-grok-shell/src/session/merge.rs:389-394 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/unified_list/row.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9dd2be5fdfb3173c1405b1047a9990226422c956c822d770c0c0b8f5576459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-fast-worktree/src/grove_api.rs:144-150 | crates/codegen/xai-grok-pager/src/mcp_cmd.rs:600-605 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/grove_api.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1ba300afdfd9603397014260d463779d45d801cd904519dd86528022338603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/common/xai-tool-runtime/src/render.rs:375-388 | crates/common/xai-computer-hub-sdk/src/harness.rs:93-99 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-runtime/src/render.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fc118ab20e049bb4ed4f74557c358c2269919fb4ade95d5d2d7066e07df416"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-fsnotify/src/handle.rs:66-72 | crates/codegen/xai-grok-test-support/src/lib.rs:32-39 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/handle.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"16558e880e82d87d071826ccd8414b5720e9e3092997a03da98615a269778014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-shell/src/session/handle.rs:303-316 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:401-415 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/handle.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc8cb3bdb7fe5ef909e9873d52d5b0402a8b19a7a5f8317e836c76b499ccf02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/session/handle.rs:700-710 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2675-2689 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/handle.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f1debd0987b23569a6e99cd40b33e8a074a41278523a0bb234560ea9f1ff00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-telemetry/src/session/session_end.rs:115-126 | crates/codegen/xai-grok-telemetry/src/session/subagent_spawn.rs:97-106 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/session/session_end.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecf20b9e17b753407a2cc73a498e9889d9cbd71be65f2bfbaaccf342f478d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crates/codegen/xai-grok-pager-minimal/src/todo.rs:132-138 | crates/codegen/xai-grok-pager/src/views/session_title.rs:153-159 | crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs:53-59 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/todo.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bea9e06cda7f68efa6a00e33ab2895d578a77c5e9888fe47e6c377731d8504b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-pager/src/tips/ephemeral.rs:105-116 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2014-2023 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/tips/ephemeral.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f5bd31631602e7ead00680c1e170a9d69e4a36b060cc9ea2bd6c2b4e3058b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs:751-760 | crates/codegen/xai-grok-shell/src/extensions/suggest/shell_token.rs:323-332 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff86dc78961cab56ca6377f828c005685d9eb7a30d59fe52c431ff4e18e9ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:298-305 | crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs:272-279 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2436da81972d1ce5d24fbaa4ac1592826fce68f06828060d660b71a379f115"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-chat-state/src/usage.rs:99-104 | crates/codegen/xai-grok-shell/src/session/usage_file.rs:355-360 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/usage.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f5d52a8d8b153762796dfbba8c7e70a257bc88938bd17aedf20a86e97b6e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-markdown/src/latex/commands.rs:16-21 | crates/codegen/xai-grok-markdown/src/latex/mod.rs:69-74 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/commands.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af968c9994a7efd420b3e36bd01dabb2953f0a45d0ab5a52f5bb073c9312f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager-render/src/host/mod.rs:19-23 | crates/codegen/xai-grok-tools/src/util/shell_env_policy.rs:164-168 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/host/mod.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed175303447f80e3528519fa313babf38ed951af01b7abd9d3d51652655e697"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:25-31 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:51-57 | crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:906-912 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3794579414b437b30d0b13e2cd0d8a38902ebb4f935bab8f7a5a72c2121a1561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-shell/src/session/workflow/store.rs:289-301 | crates/codegen/xai-grok-pager/src/mcp_cmd.rs:450-461 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/store.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b13886ccde8f15609aa7086ef057a64d99df28fa2b47280c463195ed8d46a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:106-112 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:110-118 | crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:110-116 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:97-103 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dfafbd6d6c614647db0f2fbfe24eaf3cd83b6dbbfecb681646d8c06a8b8abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2662-2673 | crates/codegen/xai-grok-shell/src/session/handle.rs:453-459 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc3274421e891f0165ddbaee436c62a70d117964df9c1cc9dc1402f05ac612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/install_registry.rs:309-318 | crates/codegen/xai-grok-shell/src/plugin/acquire.rs:99-107 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/install_registry.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"964dc82dc26dff5b3faafcec5227e9d174428bd45aeeb61adf5005b59a62e6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:532-544 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:362-374 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/sent_message.rs:479-491 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4f097ea74cca9dbc7f4aa35a7ccaef7a747cfdca3f2d33c08efa95c0efb3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager/src/views/queue_pane.rs:82-88 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:3913-3918 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ecdcc74b8b21f743e0d0f16480a405d449a15b2416cd4e4244f03e8b772b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-permission-rules/src/resolution.rs:895-909 | crates/codegen/xai-grok-shell/src/upload/turn.rs:444-456 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33431c369946e24587fab2499277a51535a0710d2386cb29e8052df52cc8504"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-shell/src/session/helpers/session_recap.rs:117-125 | crates/codegen/xai-grok-shell/src/session/helpers/turn_summary.rs:55-61 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_recap.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca8530bd63582e8e53395aa8409eb9098bf17b7046eca07b8a32c4bad0f6d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-shell/src/session/testkit/synth/replay.rs:12-23 | crates/codegen/xai-grok-test-support/src/env.rs:22-33 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/testkit/synth/replay.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80218db3b06a73c217c4914a6668247b893113f8d68b116873a58edfa6db068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-tools/src/types/resources.rs:204-209 | crates/common/xai-tool-types/src/ext.rs:68-73 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/resources.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7165e7c7f9c2021a2b232b766fef20a60d67d46bf61d3c10f8e374d7886e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-fsnotify/src/source.rs:154-157 | crates/codegen/xai-fsnotify/src/watcher.rs:407-417 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/source.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bf4b72dcf90a1d5a1befd6ce33416946559b9f190900ac1b81c218768ab6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager/src/acp/model_state.rs:341-349 | crates/codegen/xai-grok-pager/src/settings/registry.rs:456-464 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/model_state.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b420f1e165b88c7a676ce991ca5501f87da2b4c0a942a00525206e02001e3a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager/src/app/session_startup.rs:435-440 | crates/codegen/xai-grok-telemetry/src/spans/instrumentation.rs:73-79 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38bade22551e20153bd71a7faa1a25c2f6e2840eca5e5bf719a26df9c7eb447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs:433-438 | crates/codegen/xai-grok-shell/src/session/fs_watch.rs:742-747 | crates/codegen/xai-grok-tools/src/types/template_renderer.rs:170-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca6499fdef076c6f42034f7557f498ce78a17d345c03a6ac463bf9875d9f6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs:55-62 | crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs:68-75 | crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:57-64 | crates/codegen/xai-grok-tools/src/implementations/opencode/todowrite/mod.rs:222-229 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af873a2a604ec615776b9b6207893c93b0dcd40f5412f53d625d1a706fe6ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-compaction-transcript/src/lib.rs:148-153 | crates/codegen/xai-grok-subagent-resolution/src/context.rs:361-366 | crates/codegen/xai-hooks-plugins-types/src/lib.rs:442-447 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-compaction-transcript/src/lib.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a17c0d528b4996dcecf19879a63c8b085f77ced04291f289b6f0e648be8c33d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-config/src/mcp_servers/config_toml.rs:135-139 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:566-570 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers/config_toml.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8d44cd6a7d5baf432878b5a5cf70d3bb7f9691ce5fed87ec33cae6cf803b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-pager/src/slash/commands/cd.rs:24-33 | crates/codegen/xai-grok-pager/src/slash/commands/remember.rs:16-23 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/cd.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa2ec265114fe810398787eea31eef94ff790d48306b94a5a4365b6b69e2523"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:21-29 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:23-31 | crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:89-97 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:76-84 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bad6547e80205e77c1a2535ca4706e7e118fac623ff1ca517296629c0a9efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-telemetry/src/logs/appender.rs:35-41 | crates/codegen/xai-grok-test-support/src/leader.rs:96-101 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/appender.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"937e871022f33362fe04da1ac6309c4bedf47a478d16f025e203b1ce39cc3ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-tools/src/computer/types.rs:269-274 | crates/common/xai-tool-runtime/src/notification.rs:303-308 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/types.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"55327dc7b1603a2115abee41d4b24e9c04669f42f35e30be22ed3d7c45399bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager/src/app/roster.rs:83-87 | crates/codegen/xai-grok-workspace-daemon/src/preview_supervisor.rs:436-441 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/roster.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e74726a4ad1773d074f965fca853a388454595713d63b87222f8b9397edc6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/status_line/command.rs:208-218 | crates/codegen/xai-grok-test-support/src/acp_client.rs:244-254 | crates/codegen/xai-tty-utils/src/child_wait.rs:71-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/status_line/command.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5bff00cb355ba194afd7c5ea31ef63b4f8581bf9c83762c158aef83c9c97ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager/src/views/prompt_widget/image_state.rs:193-199 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:3685-3690 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/image_state.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d675ed7015ec26e9383b03e7de9ef64f1d36f8488f85cbb6ca75e754f49de81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/resolve/crash_handler.rs:18-26 | crates/codegen/xai-grok-shell/src/util/config/resolve/tool_approvals.rs:21-30 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/crash_handler.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f58a197870fc10baeb31f1b702d08602f464101e27486a15e974a939732683a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-feedback/src/draft_store.rs:864-868 | crates/codegen/xai-grok-workspace-daemon/src/daemonize.rs:29-33 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/draft_store.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22a51ed5f44682687d637da6bea813ec194284b8b09d682730993737ca3b712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-shell-base/src/util/mod.rs:175-183 | crates/codegen/xai-grok-shell/src/upload/manifest.rs:109-114 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-base/src/util/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"535d2bcc488210941cf9b9818d350d87219b12b7031b30261741e383eed69735"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/session/file_system.rs:53-63 | crates/codegen/xai-grok-workspace/src/session/git.rs:36-46 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/file_system.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a04d7bb53ee2c2b3f483436eb7ccd9b42be092e9c288247738579241b13f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:180-190 | crates/codegen/xai-grok-shell/src/session/goal_planner.rs:183-194 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbdb6a6f67bc3eeea76f3f912ec560d09eb0cc34d60824071d13cf93f476865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codegen/xai-fast-worktree/src/grove_api.rs:275-281 | crates/codegen/xai-grok-workspace/src/handle.rs:4756-4758 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/grove_api.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b075b9b644de03f619cd8b96cc2d287675d93e1ac74eca2dc11b162c5d2269"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-lifecycle/src/registry.rs:57-63 | crates/codegen/xai-grok-tools/src/implementations/lsp/documents.rs:106-111 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-lifecycle/src/registry.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8793f740efae1e5e20ac89632bbc76e69831592215e517495ad0b89fc19fede6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-shell/src/agent/config.rs:4960-4967 | crates/codegen/xai-grok-shell/src/sampling/error.rs:390-394 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":4960}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e526f7fb1e9b872f76d493add10f66a85a5dc337914231203249209570b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:222-231 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_lifecycle.rs:190-195 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"07114577dc0a80ac050108f0e055e3ecebbed78d39eebb81aeede6131e09e081"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-shell/src/util/config/load.rs:50-56 | crates/codegen/xai-grok-shell/src/util/config/worktree.rs:231-237 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/load.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ffa5324a948abd14402b696bc13459e04966ec7993651371eda5211a4b05dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-fuzzy-file-search/src/lib.rs:722-729 | crates/codegen/xai-grok-login/src/manager/lock.rs:74-79 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fuzzy-file-search/src/lib.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86c706f131974c92a2a4d9dd6db26184e1973e9e4658641d68cfe867f36c58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-mcp/src/oauth.rs:534-540 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:471-477 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/oauth.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe2f380039dd3bedf29283ab0405d53d975451120f05067f231c977f15391de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager/src/acp/tracker.rs:744-749 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:1421-1426 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"327705ba43516eeac7a14f34e3d6c2a0b8892f911996510287cc2915980194e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-pager/src/memory_trace.rs:398-404 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:63-68 | crates/common/xai-tool-types/src/task.rs:780-785 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/memory_trace.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff55c2baf41f195a43f17d53d6a4e9fcba59a7da21feffd3cbb2ac6f5290cde6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/task.rs:351-354 | crates/codegen/xai-grok-shell/src/extensions/terminal.rs:131-134 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/task.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce37c4aaef5731b7ceabdbbcefbcb33fcdd9549b3d13bb4c3a919fa09d674268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-shell/src/session/goal_next_step.rs:113-118 | crates/codegen/xai-grok-shell/src/util/text_sanitize.rs:58-62 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_next_step.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2917ab8ca5d426843ca43987caf90af90f53a3c0106c5d2bec311e4ec3a4a38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-markdown/src/buffers.rs:252-258 | crates/codegen/xai-grok-shell/src/extensions/suggest/mod.rs:85-91 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/buffers.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ca6df6b9850afce067184e183c8255ed9fce65451e897a699c69cc4df63a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-pager/src/acp/mod.rs:539-543 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:968-971 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/mod.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f4d6603272291c6183a362e6a40c46e9f2f685e800d88256c6d782a4c96515"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-pager/src/app/consent.rs:151-157 | crates/codegen/xai-grok-pager/src/app/session_startup.rs:647-652 | crates/codegen/xai-grok-shell/src/session/goal_role_tools.rs:165-170 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8240b915907bea2195b887a4a0ce593b1e42c0a1683a0e6ebece58f00c035a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-env/src/registry.rs:25-33 | crates/codegen/xai-grok-pager/src/views/mcps_modal.rs:122-129 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-env/src/registry.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7123590d426d6ec9f2e167794c38c712d089e3a8079f70d94e6aadca5914182"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager-minimal/src/plan.rs:50-55 | crates/codegen/xai-grok-shell/src/agent/config.rs:4289-4294 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/plan.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9640a3749d06012ad979900f763e1f4186fb4f5ebb0c5050366c9e4c50b12237"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/bin/pty_scenario.rs:32-40 | crates/codegen/xai-grok-pager-pty-harness/src/bin/scroll_matrix.rs:57-65 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/bin/pty_scenario.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd06362cb158efe8d7d34d9e03b84d69435a81fc08a48d71aa4508616a391fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:456-464 | crates/codegen/xai-grok-pager/src/app/external_editor.rs:349-355 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/status.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b69690f632d51273e1d2f81870128b16547471c2f058d67f5d6486dbe6b8bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-pager/src/app/event_loop.rs:3016-3023 | crates/codegen/xai-grok-sampling-types/src/provider_error.rs:136-139 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"684975d5a7818bd93236c6c5b7f1b86e323750b243d4451405f06a8a9022818e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:204-208 | crates/codegen/xai-grok-shell/src/agent/remote_config/resolution.rs:72-77 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"470fd4b2bcd05d68cf240781f570120fa1a8911c6eafda3d5139dd5700072999"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:1468-1473 | crates/codegen/xai-grok-tools/src/util/unicode_confusables.rs:63-68 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7be23a4e619c6794f18f380c2cb7379109b40b7feec22cc20cae74dc68ee42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codegen/xai-grok-permission-rules/src/policy.rs:648-650 | crates/codegen/xai-grok-workspace/src/permission/grants.rs:250-252 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db9fd32391cb920468bb2cdbe1b80b1705503ed9e21bff7ab5ff525aa81a5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs:130-135 | crates/codegen/xai-grok-tools/src/reminders/task_completion.rs:336-341 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"784d58f7e1899f419ab6be364fb60ad47b8d2a39d76ddfa2e04ea0ec599ae3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-chat-state/src/persistence.rs:147-153 | crates/codegen/xai-grok-pager-pty-harness/src/screen.rs:32-38 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/persistence.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b2627a06c01a9ee5a0e5f494d3cd57e89ba7e1ea2e0038fa84095415dc12d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-fast-worktree/src/grove_api.rs:127-132 | crates/codegen/xai-grok-shell/src/session/storage/mod.rs:981-988 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/grove_api.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f233b6bad3494f8c92c7dd537065048830088c450a12255553fcfdd0078d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:310-313 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:285-288 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:332-335 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:373-376 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2788c2dd90d0b506a665862a5024377d36443e6932088e711dbbfd0a30b4ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-sampling-types/src/serde_helpers.rs:6-9 | prod/mc/cli-chat-proxy-types/src/serde_helpers.rs:6-9 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/serde_helpers.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c671e6b22f6cf4d6f5a032cb6f0e36e0cbbdaecc0c2707199220602c859f5e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-shell/src/session/acp_session_impl/extensions/idle_prompt.rs:22-26 | crates/codegen/xai-grok-telemetry/src/external/config.rs:215-219 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/extensions/idle_prompt.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b10f89df69b1fb834bb2bfe271461529eca5ca77b7efc4d462ecf39b7e5013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:257-287 | crates/common/xai-grok-compaction/src/code_compaction/prompt.rs:15-26 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5f8f6077d3ed0ceae329d8be31a6cdc42f0d4794f6c209ba9f6264b1cebd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-shell/src/session/memory/v2_capture.rs:179-186 | crates/codegen/xai-prompt-queue/src/combine.rs:62-68 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/memory/v2_capture.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dc926e519884bb11f759175f6e6303e645979641719d2583d942db1f7c41d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:312-315 | crates/codegen/xai-grok-pager/src/views/list_pane/mod.rs:100-103 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdd28c81b6b7149534788e2fa6beb5e333be01f0aaff13d194dae412e176b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-shell/src/extensions/mod.rs:62-65 | crates/codegen/xai-grok-shell/src/extensions/search.rs:39-42 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mod.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6246c4cc4e29911c5955bd7c98c613d2bb6dc470c7522315d7d2060d6bf6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-shell/src/heap_profile/monitor.rs:112-117 | crates/common/xai-computer-hub-sdk/src/server.rs:346-352 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/heap_profile/monitor.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab21b35da5b9badece5910f417ce3bddadb3a29fe508ddae4620c1a651799dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codegen/xai-grok-telemetry/src/spans/startup.rs:681-688 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:122-129 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/spans/startup.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ca956dd9dc03760bcceb100a72086f9b1028ff7a7400bb0cf1556e9f71b563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): crates/codegen/xai-grok-tools/src/tool_taxonomy.rs:146-151 | crates/codegen/xai-grok-tools/src/types/resources.rs:680-685 | crates/common/xai-computer-hub-core/src/bot_tools.rs:127-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/tool_taxonomy.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"94485aa87f3cba9c78b502cc96e9447323e0ced8ca4c99e942ae936634b9e01c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs:1090-1096 | crates/codegen/xai-grok-pager-render/src/theme/system_appearance.rs:41-48 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f73f5edb815106c0e821a02667515ddd73c5d59d676ae2c8bed1e8d362b5bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-pager/src/app/consent.rs:127-133 | crates/codegen/xai-grok-telemetry/src/sentry.rs:193-199 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa9e65649e22fa2f5bddcec22c0c61f71819ccea92ae1afa24d758bd4e8f7f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:51-54 | crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs:57-60 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3aeea40fa09aa1d5ff34909966b760748e3670e466d6173691e5c64129829a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/common/xai-message-delivery-core/src/address.rs:129-134 | crates/common/xai-tool-types/src/task.rs:240-246 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-message-delivery-core/src/address.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"282365fc68a1e3ba75a11ef84129ad73eea9159cebba46e034cfde2ab78912de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codegen/xai-grok-login/src/side_call_bearer.rs:166-168 | crates/codegen/xai-grok-pager/src/views/prompt_suggestion.rs:145-150 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/side_call_bearer.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e61776c97d822c6eb4e25980c20b0b982ccd9e66b96e99a3982b50f8ce9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/env.rs:14-22 | crates/codegen/xai-grok-test-support/src/env.rs:117-121 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/env.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"423d8eae342d2d5c1681f079417da698c716ad243b58d841f8f94d5de4f1554f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-shell/src/session/prompt_history.rs:158-162 | crates/codegen/xai-grok-shell/src/session/storage/mod.rs:219-224 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/prompt_history.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0635efd0a55db2046b5e5fbebf4036a7f127a928969c11229a94adf863e41e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-file-utils/src/lib.rs:28-33 | crates/codegen/xai-grok-bundle/src/lib.rs:285-289 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/lib.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"06647262bbddde1cbb3ad40dda567b973c5a374f5fb8073c8dd35e10981fb28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-feedback/src/text.rs:14-20 | crates/codegen/xai-grok-pager/src/app/status_blocks.rs:238-243 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/text.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5cfb56459b1fe037a618bd2dc5b996dac8ae2450bcff9629bee6c6dc02df8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-login/src/api_key_probe.rs:22-27 | crates/codegen/xai-grok-test-support/src/headless.rs:235-241 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/api_key_probe.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a89b6f1fa0d79481ceb55ef0556fcf5c01cdad8d809275fcfca0e56499950a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codegen/xai-grok-pager/src/app/agent_view/kept_plan.rs:88-90 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:727-734 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/kept_plan.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b5a5c7e97f453456127c1e08e722c8ad6bd61d51af5d13b721a07975c32758"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager/src/app/edit_highlight_worker.rs:80-88 | crates/codegen/xai-grok-pager/src/app/mermaid_worker.rs:790-798 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/edit_highlight_worker.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afd9044693457b64baea7fa7fd9d55ac8d4955c4391dfa0fa8c2442d7acf14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-tools/src/types/resources.rs:170-174 | crates/common/xai-tool-types/src/ext.rs:43-47 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/resources.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"769a8efd1ba1c9f3a975ab4c086a13986aefa828ff6fb9cf4648ccee5efe169c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-tools/src/types/resources.rs:186-190 | crates/common/xai-tool-types/src/ext.rs:50-54 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/resources.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18b9bd37aa2d714349b6cdbc1dff463fbd48ae43a712fe2b7bd70afff3ffd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codegen/xai-ratatui-textarea/src/editor.rs:941-946 | crates/codegen/xai-ratatui-textarea/src/editor_tests/mod.rs:19-21 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/editor.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01850b3b1941f0edc98f4b12f3524d0777c358e25d5af2854e7d70224c79794"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-fast-worktree/src/git/safety/build_output.rs:97-103 | crates/codegen/xai-fsnotify/src/selection.rs:122-126 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/build_output.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d0ec2614313365ac31d7abe36057331422c66f203b1d02d943cc256860bb83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-agent/src/plugins/local_refresh.rs:175-180 | crates/codegen/xai-grok-shell/src/agent/update_chunk_merge.rs:492-497 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/local_refresh.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b07607834bef1f13fa56da4b19d9276799c4cb79935b5531bae54b0bb074df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-config/src/compat.rs:355-359 | crates/common/xai-tool-protocol/src/error_codes.rs:49-53 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/compat.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"48641673a55fddb587c4494cf85d7ef467390b073ce8cec3ec3fb1d7790b65ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-memory/src/batch_dream.rs:288-297 | crates/codegen/xai-grok-session-search/src/fts.rs:299-307 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb016d517e87b6004533d0ce51eae7fdccba3d5beb288f19b9b0fd5da94e87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-pager/src/views/dashboard/row.rs:513-517 | crates/codegen/xai-grok-shell/src/plugin/mod.rs:497-502 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/row.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"f174f1738f538cb1dc0a1881085d613930b54356df80ffe8ddb35e47e12de972"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-pager/src/views/permission_view.rs:34-42 | crates/codegen/xai-ratatui-textarea/src/editor.rs:262-271 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e1b5e8c88ee881da126cd2a390b7b32eabf6ae5813d613bf0340a47a5d5c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/codegen/xai-grok-pager-render/src/theme/cache.rs:163-166 | crates/codegen/xai-grok-tools/src/reminders/task_completion.rs:54-57 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/cache.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1149b14afb4317db44bc0ed526ecef1909863f67bdb846d6ed894a1fa1e1ccc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codegen/xai-grok-workspace/src/activity.rs:1033-1038 | crates/common/xai-computer-hub-sdk/src/connection.rs:1411-1416 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/activity.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57e3eaa017043d490d54c78e5790356dce6c0cbaf500f27164f263bcca76bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codegen/xai-grok-pager-pty-harness/src/env.rs:6-12 | crates/codegen/xai-grok-test-support/src/env.rs:108-115 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/env.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6eb0c25fdaaa33aa58717c9b6c8b65702bbf3a77e5f358eeea8db34802d9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1418-1475 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1556-1613 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd9619a91085fa0150681c3087567432876aba8dd8997a2b23c659bf9358921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:196-249 | crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:261-314 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a788bffb4585116b7888d1f88aaa796aa1703a007b27cd4805bf5deb174bd3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201350 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/connection.rs:1616-1665 | crates/common/xai-computer-hub-sdk/src/connection.rs:1736-1784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"3924786949b3bc48c2a9bde3aa8b019bd14c638c3b6de06af6cfbfaf7bcf41f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/mod.rs:636-683 | crates/codegen/xai-grok-shell/src/leader/mod.rs:691-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/leader/mod.rs:636\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42b9e8dedb6d601d1432c9f7430ec6f4b0576ff9a0d6d078fa4d4444f7f350a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/render.rs:724-768 | crates/codegen/xai-grok-markdown/src/render.rs:1021-1065 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:724\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4cecc5a4c95287f9128cc9411575798fc9893919e5b45269a14d343c392bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1377-1414 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2184-2221 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2419-2456 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1377\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4489ea046f0635255f9e97f1951151e37561224ff2d3533e8c41c3480750b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201353 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:543-595 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:585-635 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46dc7faddffd944e818d8fff6d08ed3823f96e57ab38238d74cb06f20cd914e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1196-1232 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1346-1382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060reply\u0060 to \u0060oneshot::Sender\u003CResult\u003CTerminalRunResult, ComputerError\u003E\u003E\u0060 in one and \u0060oneshot::Sender\u003CResult\u003CBackgroundHandle, ComputerError\u003E\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"352027b0ac2b48d27080385c464775d711de5b3110749807b9e608e041ce03db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:919-954 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1303-1337 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea56463fb6a4d46d903240d5052ee0852e51027e6a406c9b257aa51c8fb753a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:54-88 | crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:56-90 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/theme/groknight.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:92\u0060 calls \u0060Rgb\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:90\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/grokday.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"477a486919d27d2e9f92d0ba99a234bf420eaa7028d41763461be0695b3e2f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:153-185 | crates/codegen/xai-crash-handler/src/handler.rs:542-568 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-crash-handler/src/handler.rs:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8699b64d1ff807c9e5cbf19244edece0c91a1575639bcd51309115a012a003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2158-2190 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2201-2227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39df71b138353ba2c689565e2bfb25a42a9b5efe1eb1b0873c28ed91678001b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:514-545 | crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:606-636 | crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:730-761 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:514\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6ac081e6c987cf4c64c944796f5e9671d6082f91ec65866b2f438ed1359e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/dispatcher.rs:803-834 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:908-939 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:803\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f6c2d5793fbb6fced4d586d0d0eefb8290c36a8d89d79f2cbf124111bd8115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1162-1192 | crates/codegen/xai-grok-sampler/src/client.rs:1876-1905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1162\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ae705f04c479b23cd2f78c0708703afe5baccfc5a8534ac7cd039cbd618905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs:124-160 | crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/versions/legacy_0_4_10.rs:66-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5477fc270bed19092b752653135c9f728d44c223480f7b031ace862c2d26adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1095-1124 | crates/codegen/xai-file-utils/src/storage_client.rs:1206-1235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1095\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"00168bcd9b9a17c7477ee5b79b9086737ce4ba5362ac2c6c6b2d72fc6460a184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/handle.rs:2073-2102 | crates/codegen/xai-grok-workspace/src/handle.rs:2121-2150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/handle.rs:2073\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43599a2caf39aa4881ec67812a1e048de671b2b1ed3326aff11d9533b622f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2836-2864 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3315-3343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2836\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2836}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e15a7482e8dc14e71b6b78bd7845fbd493412f94da096d09cfcb8318902e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/codegen/xai-file-utils/src/queue.rs:1362-1389 | crates/codegen/xai-file-utils/src/queue.rs:1415-1442 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:1362\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d168fdf88a5c53b8b16cfe4c8075b762e781ef5b7a19acf2d14722f96723b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/index_manager.rs:1546-1572 | crates/codegen/xai-codebase-graph/src/navigation.rs:314-340 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e91a9d02cb2b30c945eb2ab045de9757007dab115a71e476247db1c139f4193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/bidi.rs:393-415 | crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:287-313 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/bidi.rs:393\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0588890ef872d790fbe7e66247b95e04d4505cc4ba9c4ac5f56df25eee02ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1555-1578 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1602-1628 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8725da58c23175ab5b8f2f61c14878b152785901de3d7cc12818bc732d92f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/stream/messages.rs:127-153 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:257-283 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/responses.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/messages.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2dc0dc64e71cf68c206e188cbe3a16da94191f1fef1b23a1c4e76a9d9f8dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/file_state.rs:575-601 | crates/codegen/xai-grok-workspace/src/session/file_state.rs:611-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/file_state.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88808269edb99d7667b310218e53f19db812c589527df0849018cdb489a5882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 4): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:136-158 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:176-198 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:182-207 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:212-235 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a42d45752d01a6c25c9efb23ddfe525f2c9227bec098f7803eba73cf355b846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:501-526 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:174-199 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:160-185 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/goal_strategist.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:159\u0060 calls \u0060Some\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:500\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4a0b6034dee6aa01e50e1e24b7d0708a605490e5a808705b2d372485217376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:777-802 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:941-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/worktree/execute.rs:777\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7be22504b38a9926fab627fe9da3f9e0d096ee68dd3e7c87d1209366f52964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:4-29 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:54-79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:4\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04823642104510c69cc21258a5ef2ebcb74ffc901409c6ae71c2966bab0476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1176-1201 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1563-1586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c5db3c8140bc4d41a1b3dfaee5022cace807afbbd5df643fd444be574c96d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs:1055-1080 | crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs:1318-1342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn rebuild_virtual_y_from_heights(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcee00004085d89b83a0cf15b832bd5c8514b4434d1da8584771308b29afc3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2091-2116 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2299-2322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2091\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"faae2e7dfdfe29a57efa530027ead79f432644b9f1a02344fc8efff7b840d936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1395-1420 | crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1448-1468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1395\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"39594c7fd655b71d647eaab6231e76856cf258a9f9f6535b1ae0966a227c7c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/render.rs:697-721 | crates/codegen/xai-grok-markdown/src/render.rs:994-1018 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:697\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7611745a47f87a823b7735255f54fb529588d4e000a6516b4194e5a8c3a4bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:97-129 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:195-227 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:97\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"35810839273a0942e7442c8d4c545db175cf63948342fb1c5a961e17197804d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:561-585 | crates/codegen/xai-grok-shell/src/extensions/bundle.rs:264-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/agents_modal.rs:561\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/agents_modal.rs:586\u0060 calls \u0060Some\u0060, \u0060display\u0060, \u0060to_string\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/bundle.rs:289\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da42a53eb79da6bb6bbf05a416191cbfff58af9a0a1b65d0967c39562e9bf49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1466-1489 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1604-1627 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1340-1363 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"305c4664f2dcb99192c1cbaf18885bb822cd7afb559dc3f727cad361389491b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1155-1178 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1194-1217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1155\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d410eb44c7c20cc6f8c99b2d4b60af495338d80b8eb62a433d17ef68e9b064a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:1773-1796 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1799-1822 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac91cc88c5f017c4565e647a9dec3f774a732720eb4f105b424473e0232cf9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/parse.rs:73-96 | crates/codegen/xai-grok-markdown/src/render.rs:69-92 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccc61d10276ef2499c32406c1d25e1b641700cb72e179dec3003f50bc9bffc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:360-383 | crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:417-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b20f513df92c595f2df903ea2582be96f0da46cff3f8bcda0db9f46f9f70994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-sampling-types/src/types.rs:116-139 | crates/codegen/xai-grok-sampling-types/src/types.rs:144-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampling-types/src/types.rs:116\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/types.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"608cfbb2d363363ea63557e9e8aceab4ed6852633d6afbf75e5ad343811b6c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/config.rs:4533-4556 | crates/codegen/xai-grok-shell/src/agent/config.rs:4767-4790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":4533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf3de1c99f3ce817abd8d6726b9914d987df81c3b848e06625de3b202020c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:360-383 | crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:405-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:360\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a45148b629f4365c4b4f13823ee2a8f457132e1b893c895e71df560bc9e3183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:695-718 | crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:721-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:721\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d03c3aa83482c3f3b161f15b065c90a17f488dbb96f5117e41a83180dd95fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1844-1866 | crates/codegen/xai-file-utils/src/storage_client.rs:1921-1943 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1844\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cefb6e20318348e5530396847a2b5e31b4e53af7301690f42433f926c970638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:979-1001 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1381-1402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:979\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c034385b084972d890be53678331105bdfbc2b4267b83585995533a70e9ea29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:184-206 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:261-283 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 98 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab63db7df85597cb25fbb33aca67e6e098897b79dddfc7a731b9df0f1621fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/file_system.rs:126-148 | crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs:177-199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/file_system.rs:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/file_system.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"58db5bf8910399e56b53da377c7e3c86bc1a56b27c883a7fbe50ea35a510027a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_orchestrator.rs:81-103 | crates/codegen/xai-grok-shell/src/session/workflow/notify.rs:72-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_orchestrator.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"00febd5bddfdc65699a6461e8922f4b8d1146a2d7662578fbb3c0c50ed3b0ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:852-873 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:73-94 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:228-249 \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/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c061a722266091d65aa94346c50fa3960f162e049b04a8a54b8d3cca26f31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2872-2893 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2913-2934 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3091-3112 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2872\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad82405a58b2cb79fdb9e84f633844deb3d7501530b1cd4de756d5d40225afcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:30-51 | crates/codegen/xai-grok-sampler/src/stream/messages.rs:69-89 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:222-242 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dcddf26c4b90ed8238d03ab88d4ae41e2b6e87dd4d9fa3d2f3d86c9478e911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crates/codegen/xai-grok-gboom/src/assets.rs:83-104 | crates/codegen/xai-grok-gboom/src/assets.rs:108-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/assets.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"45520869d6f60c182ac1bd27639244cca10e726173febeba0aed85427d75bfb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1786-1807 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1861-1882 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1786\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5beff39cd96d050ef0c5dcc3aefd36702a7d25d373d951cdf1d51b5ae50fec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3220-3241 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3279-3300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3220\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e98980b4d00424ad4a33b34ff8097491cc873263efd1fd19a75191b89adcd91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:340-361 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:746-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:340\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"604c2cedb7118a5d7950c99f7103ba86d9c29b3e2f9677ed897c3ea412b17a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs:66-87 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:929-949 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9849d0c8fcb7d98240ce6b6e2013ac8fc4674016c69917c2b6b11eebbab5b1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:1642-1658 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:1743-1764 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:1642\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99c8e45e3c490880daf131ebec5750c7940614fecd35c6501da3d8271120179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:573-595 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:611-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"65720514b444852a6c7a17c69ecbefd9d7bbe50cddc222696c0577d77d37e152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/common/xai-grok-compaction/src/intra_compaction/fit.rs:244-265 | crates/common/xai-grok-compaction/src/intra_compaction/fit.rs:306-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/intra_compaction/fit.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbde14991affe89048baea905c5e4b69c7f00a3e1f2c447d8b198252db6a5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:992-1012 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1269-1289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:992\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dae7f48a020c4dec3bef018b2368a1e8474e156193bae03550cd7886b85f464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:112-132 | crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:114-134 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/theme/groknight.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/grokday.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a95416847514eab8990883fbf6a32c324dd3963f61d25290801d1a34a239879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:104-121 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:185-205 \u2014 \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d96c123aa8a9279ddd0e04415f1dd46209c468963f616b12c7311b39bcf62d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:1159-1178 | crates/codegen/xai-grok-sampler/src/client.rs:1546-1560 | crates/codegen/xai-grok-sampler/src/client.rs:1873-1891 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-sampler/src/client.rs:1543\u0060 calls \u0060extract_model_metadata\u0060, \u0060headers\u0060 and \u0060crates/codegen/xai-grok-sampler/src/client.rs:1156\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"56131a94e4ecced0c1b7068812a96438a2fc4e5984250c97566cfab83444778e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2471-2490 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2614-2633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2471\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a3215099c73726559fdc20c630d6c354106ecbd5b0bc5afc4e41947584a48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/codegen/xai-grok-pager-minimal/src/overlay.rs:715-734 | crates/codegen/xai-grok-pager-minimal/src/plan.rs:197-216 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/overlay.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0491e0cee1133535bb03b4a8b83e7cfbcfb899a9f906195772f1afa4afbdb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:898-917 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1282-1301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"87447267645b04865fa51b064c7bb9678039a15616d9dc9b4d9205e8733dfadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs:258-277 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs:401-420 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/reminders.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4b4db3d7074701b30f79559b3390a3c75a89fb1b631334681fb68525dabb7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1882-1901 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1905-1924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1882\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"7521700dea581356fa44db50c1a63912cd79804abff63e81baacb48537536add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): crates/codegen/xai-codebase-graph/src/index_manager.rs:1389-1409 | crates/codegen/xai-codebase-graph/src/manager/builder.rs:404-424 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:582-602 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs\u0060 and \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs:427\u0060 calls \u0060with_capacity\u0060 and \u0060crates/codegen/xai-codebase-graph/src/index_manager.rs:1411\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d828fb4a961b4b9f65e701a7a471ed52e8e24c98ebc332359be5e2adce942ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:275-293 | crates/codegen/xai-grok-sampler/src/stream/messages.rs:551-569 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:715-733 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"beabb6db53e7b09b65d37923b18a6740cbf88650e06495ec6814654584f17922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/interner.rs:109-124 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:265-283 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/interner.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"720818437b22d6822688f02bbdfd10719bce041a6086c858d14ab493370cebce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-file-utils/src/gcs.rs:139-157 | crates/codegen/xai-file-utils/src/gcs.rs:308-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/gcs.rs:139\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1f90881950146ee519f5139aae27b5565043c9e98226481741b2fb99775ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1606-1624 | crates/codegen/xai-file-utils/src/storage_client.rs:1660-1678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1606\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5d9660d47d08142157a888919efec518496cfe861ab31e6e363459523e98d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/osc8.rs:573-589 | crates/codegen/xai-grok-pager-render/src/render/osc8.rs:622-640 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/osc8.rs:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager-render/src/render/osc8.rs:621\u0060 calls \u0060is_empty\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/render/osc8.rs:570\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/osc8.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe38b664a7dbfe0911e92c7ed03fe9876e4f3725ca4673f600e2e7566c62b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:361-379 | crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:434-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd3e93455078527f9fc087e15bb75508bf8e24bc16d256eae5e3480d0675760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:991-1009 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1782-1799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6305853a10126740c2b61c3680974114640a09d53d9f31c24056ad4f2ab35f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:360-378 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:398-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:360\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c12341a6d7699fcd4cc84619e886e7d0dd9db2f5ad46de5c62b76700d7d7685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:2017-2035 | crates/codegen/xai-grok-sampler/src/client.rs:2054-2072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf9072029d9ce3710912a9ea3f692d4cc1eaba5887f618d401bc6d94bd35786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:587-605 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:1083-1099 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:587\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7e1eab508cfd9a9a5b205670c7e4a6169e73033f339b985a50b2a35904f351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:474-492 | crates/codegen/xai-grok-shell/src/agent/app.rs:963-981 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:474\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:982\u0060 calls \u0060clone\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:493\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2674d390395617501c73071fd4ce1d1cc5baa2cc178dbfafec76f277deae57b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/fs_watch.rs:154-172 | crates/codegen/xai-grok-workspace/src/fs_notify.rs:155-173 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/fs_watch.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/fs_notify.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e20e9aaa008581d82283ca36065067742d2bb178a6a54512bcc4f58ea0b291f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2211-2229 | crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs:425-443 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2211\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d007559a86464a7d464a8a71d41bfae83d2635de317d30cee840e34d3f15184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:1226-1244 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:1394-1412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:1226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23cf906ef8eb25ebd0244c1ff28ed2331f82a2ad7a1bbc378616cdc19aee69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:358-376 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:490-508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d94a37ef78ae5781a6501d3c73bd329115a80065ab8862c2ef82579aadfbe1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/handle.rs:3397-3415 | crates/codegen/xai-grok-workspace/src/handle.rs:3506-3524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3397}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d9cfb29c3c1d8b435f2bfd98994cadb9d1b84b254a65cb6082ac3b283bdd9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crates/codegen/xai-grok-config/src/deserialize.rs:16-33 | crates/codegen/xai-grok-config/src/display_refresh.rs:99-116 | crates/codegen/xai-grok-config/src/remote_settings.rs:186-203 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/deserialize.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac9256828cfaaa771ecf19526f6d5acedbe911c8df512c846d7fd60c2b9d745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2677-2695 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2814-2832 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eae5dfa251ef88e0ccd124cb24f5d04d26642499c80c41c6a9e2f0fe5767bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201318 lines \u00D7 2): crates/codegen/xai-grok-memory/src/dream_lock.rs:62-79 | crates/codegen/xai-grok-shell-base/src/util/mod.rs:200-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/dream_lock.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"463c3fff3e7417cc9e6a813c5ae3e557311ad5a7ae5979e5adead03dc5f02cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1639-1655 | crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1721-1738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1639\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5956506e0ebacfd7bb42624c288b504854281b07efd76e4c5354c24ea825775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:463-480 | crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:485-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:463\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84bb4d0bc3893cc622f8a658d535e28b408fe1d3617fea28f6ed870a0da215f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:374-391 | crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:438-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:374\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef18894b1cfd22f4d0851b87ce3e7a885aa04df78c56e7a8d2972f3ba5c6726b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:371-394 | crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:452-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:371\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a790e75fc51b91a148400568f0a4f0a8aa817ce8e8a69890a3858cf3c00f57cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/turn_completion.rs:540-557 | crates/codegen/xai-grok-pager/src/app/turn_completion.rs:644-659 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/turn_completion.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"76de4bd72242aee9f6242a7a3c4f85ca5cc991f30a46bb7629b7e73f00b62ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2416-2433 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2525-2541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2416}}}],"partialFingerprints":{"codehealthFindingId/v1":"839809919e4ed46d395172022368dd5ad42644381dbd0aac76f70aa442f84fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:982-999 | crates/codegen/xai-grok-pager/src/views/feedback_modal/enum_picker.rs:177-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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4df7402455bf4129e812187c1a01205a6be1ea4e977878e493cfa6c8f6015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session/hooks.rs:386-403 | crates/codegen/xai-grok-shell/src/session/acp_session/hooks.rs:469-486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session/hooks.rs:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session/hooks.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"214bbe4f88458bf2cc963e30f5227522905eaf963e08077b0d5c8470619d5f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:287-300 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:2231-2248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:2231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ca4311bbedd734652235048f077c0d741cfe0e9c6c56636c7f1737616c2da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:267-284 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:304-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:302\u0060 calls \u0060replace\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:265\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9670ce24e0b149fbfa6985e0003f08c756df787ec6a69270f78377d85863e4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/compaction.rs:1327-1343 | crates/codegen/xai-grok-shell/src/session/compaction.rs:2042-2059 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/compaction.rs:2042\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55e2fafeaae8f9227c733571b90c400f0a0743949c9005e43fa04a65f98e1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs:511-528 | crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:208-222 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0b9010c375ee00f7ebdfd1d1b4896bcc67020f347441135e4f882d87c3547f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:46-63 | crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:74-91 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:46\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d34f37c018085ea3f27820894de40975e70a719bb56580e1c13ff10cf8786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/schema.rs:46-63 | crates/common/xai-tool-types/src/serde_lenient.rs:138-155 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/types/schema.rs\u0060 and \u0060crates/common/xai-tool-types/src/serde_lenient.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/types/schema.rs:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce530123c0d1849161afc94389d7341a4a09b7315c7ece49f91667fea65ce9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/grants.rs:230-246 | crates/codegen/xai-grok-workspace/src/permission/grants.rs:330-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/grants.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb8c36997c36defc68b42a14b908d8a363a001df6046e06fca7292dbf9dbf7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/prompter.rs:341-358 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:692-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/permission/prompter.rs:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e66559ab2921300c94341a8adad04cbb812502cfdf6445f0464f979a742070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/common/xai-computer-hub-core/src/bot_tools.rs:241-258 | crates/common/xai-computer-hub-core/src/bot_tools.rs:260-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-core/src/bot_tools.rs:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-core/src/bot_tools.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"772734b1fa2ba9606f8f9c64be883929f3b6415dfa9a1a075a005eb8b59c47cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:97-112 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:137-153 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:122-138 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:137\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:96\u0060 calls \u0060Some\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:118\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"636b2f13e45ed88a641202fa22179db52d0bf6e06a11e51fb2b18f6837cfbf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:199-215 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:250-266 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:276-292 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ad97d599ce073baf175c566a753433407ac45d5371a37437cbf786340cd90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2151-2164 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2171-2187 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2210-2225 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c2b75ddacde4e0b23acab06a987ff5fab854ab0570fe0ed2157773a4cf5d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:864-880 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:1112-1128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/worktree/execute.rs:864\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5112a6d1921211ecf0c2c4e6302575471756a7a57d1836642ae22c8f70924e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-file-utils/src/gcs.rs:275-291 | crates/codegen/xai-file-utils/src/gcs.rs:353-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/gcs.rs:275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"728d91afd78f10b864679cd57faa710253ccbd1a2d4d42b2f1688a9efc7ddd4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:602-618 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:641-656 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs:602\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c5a60ec5c997d3b3dcd03243c70298f930d74c848c95d5027c2fd6ab98f2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex_delimiters.rs:433-449 | crates/codegen/xai-grok-markdown/src/latex_delimiters.rs:469-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5744ebed02551364eb2990098d8c8c53afeb7cd8f0c0b4d75f0191e7f31fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:798-814 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1015-1031 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:798\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b805dfcfd7e19759a95633e24e176e486b69f72d0d8e9e36397fbebddb7760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2.rs:822-838 | crates/codegen/xai-grok-memory/src/v2.rs:1046-1062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2.rs:822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c41760545a33eeed1666a556b158f4b50ebcc5c4951aa5b5d18788838a243b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3095-3109 | crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs:158-174 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3095\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"c972ecec6d616905c38f6af1c7d879baa8e63580db6f1f55d733880329aecf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs:527-543 | crates/codegen/xai-grok-pager/src/scrollback/blocks/system.rs:30-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs:527\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a387aaeed2d8a3fb2155bc0f60f1ee38deb28d75dad516870f714a1dd86a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:237-253 | crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:985-1001 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:1007\u0060 calls \u0060Some\u0060, \u0060entry\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:258\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf834c075f776442152b01832dba910ebb6483a4d7762f1113a60e398ccb8791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2437-2453 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2550-2566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2437\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"114635ad0ef884f122bc6c7f18f48e8b7c5eaecf1012a0e512f9a20f7d2e910b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs:642-658 | crates/codegen/xai-grok-pager/src/views/permission_view.rs:1444-1459 \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/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7cca2f7cd2f25a0ecf6992619eb23c0d86fab7e8e53632a35e1664ba7bc12b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/permission_view.rs:1067-1083 | crates/codegen/xai-grok-pager/src/views/permission_view.rs:1084-1100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/permission_view.rs:1067\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb46988861a40f0dfb129c5f018314a4d77a39c704300f90bd44683f6f6b9504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1715-1731 | crates/codegen/xai-grok-sampler/src/client.rs:1854-1868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1715\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f01d3b263f8f92cba06023c4cbdcab2a549414eb451f7c7ef187445859f922f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2717-2733 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2782-2798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:2717\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":2717}}}],"partialFingerprints":{"codehealthFindingId/v1":"0424a3e9507d41378ba8bd4a7b59b07f1082dad4e20b164a3da41166cd093605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/review.rs:52-68 | crates/codegen/xai-grok-shell/src/extensions/review.rs:112-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:111\u0060 calls \u0060now_v7\u0060, \u0060to_string\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:51\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/review.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"521e1c97183208fb68f1e6c477551e956f5c1e75fb13ec7dda5ee077d82523f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:1636-1652 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:1685-1701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:1636\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"3961f31fdfd060011f12ffb186a98e601fd360e26d6b3c32a748534a2cccef29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/file_system.rs:242-260 | crates/codegen/xai-grok-workspace/src/file_system/ext_fs.rs:223-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/file_system.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ba54be067ccda346ad3e09ed5e04371d550e3c612737baf8e9af1d5b437dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1602-1618 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1656-1672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1601\u0060 calls \u0060read_updates_jsonl\u0060, \u0060updates_file\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1655\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"de357281338f87e81e17648032ba1cd54baa19002ff148c62342b3c094ce58c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:81-96 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:3207-3223 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"18536f7995a57f934080e41386c51c572d866ef2dab5ec2037882995f28a6a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:387-400 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:333-349 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e934ad358048b640d0cf9c476ce4b303191862eab12d802a33433186b9449a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/read_file.rs:79-90 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs:180-196 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/read_file.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d923b26b8ee0c90f9f0e9c5ce7db9a8357c0bc0234f54a764cfcc8a0ec7647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/prompter.rs:363-378 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:390-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/permission/prompter.rs:390\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e5d2782b860056e6c0e0bdf94740e30a0767ec3f72883f204c48ff783782bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:1656-1672 | crates/codegen/xai-grok-workspace/src/session/git.rs:1800-1816 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:1656\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"790b2ed948a7fd4ef59e4f5f4cd314d181764dbffbb9dc1238b16f27b2175e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:877-892 | crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:907-918 | crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:931-942 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:877\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fec03056c770c2e8ccd03226fa24bb8118718f34636fa7b5a37c7c8ad9972ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3154-3169 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3207-3222 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3266-3281 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3154}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ca994c57ef8c9f0409ae115b8e90cbc64edb61224daba0aee613cc7fe08b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:455-470 | crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:486-501 | crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:516-531 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:455\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:454\u0060 calls \u0060clone\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:515\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb65c91292c6a05ef56868ad293aff6c35d99fecbf334f6cade0dbd323d0df40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/ptyctl/src/term.rs:220-235 | crates/codegen/ptyctl/src/term.rs:358-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/term.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"755cc10c1b0c31766f8051c35f8086a4586e4f29d9fcc15b57901738abdffe11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-file-utils/src/gcs.rs:433-448 | crates/codegen/xai-file-utils/src/gcs.rs:556-571 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/gcs.rs:433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-file-utils/src/gcs.rs:551\u0060 calls \u0060open\u0060, \u0060with_context\u0060, \u0060display\u0060 and \u0060crates/codegen/xai-file-utils/src/gcs.rs:432\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"361b716fd2f4d41d985e1216ef6a46ff3ba5f030035f3c820a49682e1a6e865e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-feedback/src/draft_store.rs:328-343 | crates/codegen/xai-grok-feedback/src/draft_store.rs:364-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-feedback/src/draft_store.rs:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/draft_store.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9ca90c32cfc9fc791ed63a04da3d3f8a73ffae98201e9d75e24d78f29a500f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-http/src/lib.rs:116-131 | crates/codegen/xai-grok-sampler/src/client.rs:432-447 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-http/src/lib.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9477eb7fde6aed5a0baf2e66c6489ac8d4017ee5e4294cf8d6180998522536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs:236-251 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:3187-3201 \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/codegen/xai-grok-pager-render/src/render/scrollbar.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb1be75bbce8aa3bd5cbc4703221b39e28b73e6a5a16f9a76757e0933cf674d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:887-902 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:917-932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:887\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"165af0480ceb0d0dd94a1c67b06f9ba76ef3978fc33097d47f5ccc6ba53027e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:2824-2838 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:2968-2983 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36c54706adfff54842a5d23f0395f1da164c956cd2156b7ade99c96b6ff9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:154-169 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:205-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:220\u0060 calls \u0060display_mode\u0060, \u0060markdown_body_line_offset\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:170\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff654d5f5440272cd05921b683525f49e6d5f8ea1b7c85aa0f0b2f290fe644a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:1481-1496 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:1533-1548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:1481\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c765f50e2712f60e5e8001a82e41703090d737633fad0e2ab0ae69090e1e0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:669-684 | crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:716-731 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:669\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bd15bb8088852875e9ae3a81007dfb6f01bfc72b5773c3a97e52fc5ffc1c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1076-1091 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1538-1553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1076\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6ddb50d4c938c5ad11200b7ec26cc79a12a98d5d1a542d3aada4adb557a9eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs:547-562 | crates/codegen/xai-grok-pager/src/scrollback/blocks/system.rs:50-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs:547\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/context_info.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73fb7e99ba036cf628e1ec124e5d98801721dda3e2a2dfc68d8becf69664f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:67-82 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:150-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:67\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e702fded04c92ca214ef830b06d8b57cf3c2fa610cfe72cfae9df555fc110816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1513-1528 | crates/codegen/xai-grok-sampler/src/client.rs:1840-1855 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac8f6a019445f079fec1f880e37937c57ef7ca7e23b638eb83c930c7e625b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): crates/codegen/xai-grok-shell/src/inspect/mod.rs:411-426 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:866-879 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/inspect/mod.rs:411\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cwd\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5fec1934d9a925e025ca5733f93b4a7c40aecb9d11a8b4b72c715589c53071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:2031-2046 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:2101-2116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:2031\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"872d7c3ad597587f077cfd97f3d11bcdf125ed0fcf6eea1aee19cf8fe65c3982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:941-956 | crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:975-987 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060crate) fn budget_limit(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_tracker.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"063c6e68bf11e6d1df95ae61337422bb576e5fb137f3551f5f855ae3d4731acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2928-2943 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2946-2961 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2928\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2928}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61bb8514aa94708edff27511203bf0e1a6d71f515d148a60821ed0c1b9db114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:736-749 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:455-470 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 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/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2619acbdffa56a89565d049d24da067e3d30991ceb0fb52805e80c6736a653d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:1542-1557 | crates/codegen/xai-grok-workspace/src/session/git.rs:1572-1587 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:1542\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"4883611d91c35fabd7a4ff93d640eef93cd7276d57caca674ce66066cbe413b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:519-533 | crates/codegen/xai-grok-shell/src/session/goal_planner.rs:323-337 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:192-206 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:178-192 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_strategist.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:519\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ee93282502cd5fc4ab935648ef2fe6403e8ef931c2186af3988b57344b8eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:176-190 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1266-1280 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1162-1176 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b8589bb4621b36dcb7c4924afa7f453679910f7fd620ad338815e307a8eded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1451-1465 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1589-1603 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1324-1338 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1451\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"04608f96519241df0e49458d7fab26ad68134d29a2aeb9887d791427da87ad68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:227-241 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:242-256 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:217-231 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:227\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:214\u0060 calls \u0060push\u0060, \u0060from\u0060, \u0060with_panel_background\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:224\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"16618d8ddc9420fccc96a9cdb6ec5f65925a030dbf82c73c2a1ca9d065f3f7f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:981-994 | crates/codegen/xai-grok-pager/src/views/feedback_modal/enum_picker.rs:175-189 | crates/codegen/xai-grok-pager/src/views/tutorial.rs:121-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/feedback_modal/enum_picker.rs:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d9914df1130151638736b4e2e98a15446ddfe78a607afb6f7e33fd454dd439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/codegen/xai-grok-shell/src/agent/config.rs:3783-3797 | crates/codegen/xai-grok-shell/src/agent/config.rs:4541-4555 | crates/codegen/xai-grok-shell/src/agent/config.rs:4775-4789 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3783}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de418ae9ac18c160bb3e2ef54ec6261dd417cadac8ae79ee6ba973102ea1719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-chat-state/src/actor/mutations.rs:365-379 | crates/codegen/xai-chat-state/src/actor/request_builder.rs:139-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-chat-state/src/actor/mutations.rs:365\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/mutations.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0626a9d489c78015529eb56a6ddd7f5fe281a7d3ca3479b60fbf35dcb5327fa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:73-87 | crates/codegen/xai-crash-handler/src/handler.rs:124-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-crash-handler/src/handler.rs:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b580c68eb31f4897a68fb4b3347363080303908cfa977611cf68702ee985103c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-agent/src/config.rs:1239-1253 | crates/codegen/xai-grok-agent/src/config.rs:1265-1279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"130d133badced7c8ac0bb18be8fdffcc3bef96ada1e409e5e8d01f8ad09e5998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:477-491 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:553-567 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e582033a90e08c5af6f95b398e14cbef0d6066a4a27c746a895f7d7ac6cca86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/dispatcher.rs:779-793 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:886-900 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:795\u0060 calls \u0060absorb\u0060 and \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:901\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf5452c5d16b1b32fcc1ac1d6f1af760e125b8247e7105a87054c406c867f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_access.rs:388-402 | crates/codegen/xai-grok-memory/src/v2_access.rs:469-483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_access.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a757c90187314ece5dc3b05e92b308e3b0096b253acb70a86949a4286ce0085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/codegen/xai-grok-otel/src/config.rs:40-52 | crates/codegen/xai-grok-telemetry/src/external/providers.rs:140-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-otel/src/config.rs:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/config.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4388e50a76440b35db418e78b60a7dcb55f6ef61aa635af8eb22c45bf51b093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4084-4098 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4110-4124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":4084}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52e06efdfaa809b618cdac622a67bd5024d43a7ad3c2f0cc766f38a0a454921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/cta.rs:445-459 | crates/codegen/xai-grok-pager/src/app/dispatch/cta.rs:501-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/cta.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c31587b1e06befbac48ae4abf1287d45acf63b242768b6b33d4ae8fa8c54fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:451-465 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1281-1295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"16187c30abc880be158b9f9d1a9384270a97422619cf4d6295606bce39ab1d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:388-402 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:535-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:388\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"73071292f3d177080f624495d2a4c159eb5c30926e959b5c132156677a65d463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:273-287 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:419-433 \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/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e40e70a1f6d9587160a8c267d6de6256b61c17c4978314e3aca341d79f48b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:260-274 | crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:300-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3fa29c849606b69b45ad280dc3da5f30e92881b9c93dd68d707d7d9830ef43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1283-1297 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1494-1508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c12ddedee5db4f12c56a0acff091e4ca566e0510d44fce935278f4b123ec33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2177-2191 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2272-2286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2193\u0060 calls \u0060sync_search_filter_from_dispatch\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2287\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc59218bd35bcf83288d06fed9937a4cbf85b538a91948521da9c3b30f978a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1277-1291 | crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1307-1321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef817cb5bddf3024572db628294109a11b276ba1b8f78c1d0c6eb9de61bbb19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:326-339 | crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:536-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:326\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cec211d780d12681f388bc1c08df0f18dd94646ac3bd6816173b9551357f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/modal.rs:935-949 | crates/codegen/xai-grok-pager/src/views/rewind.rs:585-600 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/modal.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/rewind.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/modal.rs:935\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a0ffbc897ef1d12587f5797fb7d928f3c537dd2b7f4e8991e6f2471f61011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:553-566 | crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:708-722 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f50a7313f585cee2d5a876e825e4ef07510b70440f78a6a7640826463d7a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:573-587 | crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:594-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:593\u0060 calls \u0060rev\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:572\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"72358dac772c6766ccf143941e668db06ec66003acb6f1ab5fcd0c09a5d12abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:950-964 | crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:1024-1037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb617371146ac43aa5adadf36b50a2ee6b81d9e2b96e716e4d330a7cb6949a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1358-1372 | crates/codegen/xai-grok-sampler/src/client.rs:1527-1541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1358\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"5385b7b0fa4ec21348142f3e9083c668ba2884156b4ad7c36662f425aac564db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:2093-2107 | crates/codegen/xai-grok-sampler/src/client.rs:2126-2140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac230c1cb96ba8498d07e8898df186550754a266c47e9eb14ea689ec01421d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2182-2196 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2242-2256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd28e8693a136b2680b5af32e3f8989b465076cbd7e8cb17de703a3bd137d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:84-98 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:368-382 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/remote/skills_client.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"037ba78606343fbe22fdf8d73c5783424652564b2584338d6d7add3911e4c59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs:444-458 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs:477-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs:444\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"13df9211d3f383206b762e1ce1f1767d5556b8b0531f77a0a02f46172d624c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:617-631 | crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:632-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38541731521aba07a28366c2f81a659af48987ab4a2764e3714b031e357fa4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1289-1303 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2356-2368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1289\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b3876a2092a95f0d326ca8da83762631241f79c1383852ec32f7385b2f804c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2957-2970 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3081-3094 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3164-3177 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3303-3316 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3459-3472 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2957\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2957}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f668974eff894044de8b790efe6f8c6c03fb5548ae5994bfadca494c83a0dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1307-1320 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1359-1372 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1485-1498 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1741-1754 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1307\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fabdf662d115903160829c5b56490af2d195e60311e5c3c7185be80408fc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/codegen/xai-grok-hooks/src/dispatcher.rs:492-505 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:750-763 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:859-872 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:492\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"7920c45ef1e7090c9f7795e090f6464e35a0f028e44e16b4729bdb219c4bdce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/codegen/xai-grok-markdown/src/render.rs:842-855 | crates/codegen/xai-grok-markdown/src/render.rs:915-928 | crates/codegen/xai-grok-markdown/src/render.rs:953-966 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:842\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"1708d088e090a0d0b2534418562f203ed23ebd20da5ee7a1c7be5c94449673e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): crates/codegen/xai-grok-pager-pty-harness/src/scenarios/large_codeblock.rs:23-34 | crates/codegen/xai-grok-pager-pty-harness/src/scenarios/mixed_interaction.rs:30-41 | crates/codegen/xai-grok-pager-pty-harness/src/scenarios/scroll_stress.rs:33-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager-pty-harness/src/scenarios/large_codeblock.rs:22\u0060 calls \u0060update\u0060, \u0060from_millis\u0060 and \u0060crates/codegen/xai-grok-pager-pty-harness/src/scenarios/mixed_interaction.rs:29\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scenarios/large_codeblock.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f9a1ad43bc58168716cf6cdc88680e5595b402ebeb12a9d5da2356e3216ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/app_view.rs:4579-4592 | crates/codegen/xai-grok-pager/src/app/app_view.rs:4731-4744 | crates/codegen/xai-grok-pager/src/app/app_view.rs:4869-4882 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":4579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9244b0c88cdaaccf0221c909a41589f91906f160a392939d1b0b6d53223622bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:92-105 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:190-203 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:247-260 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c134e8acc56e1c402359ff4549b9fcfa8dc7e6bad687cf7231128b83773b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): crates/codegen/xai-grok-shell/src/agent/config.rs:3799-3812 | crates/codegen/xai-grok-shell/src/agent/config.rs:4557-4569 | crates/codegen/xai-grok-shell/src/agent/config.rs:4792-4804 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/config.rs:3799\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/config.rs:4572\u0060 calls \u0060Some\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/config.rs:4807\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3799}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1662055c6ca29c795f1a0a8cf780dc91ef409657998280adef1bde67748a4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): crates/codegen/xai-hunk-tracker/src/actor/git.rs:284-296 | crates/codegen/xai-hunk-tracker/src/actor/git.rs:376-389 | crates/codegen/xai-hunk-tracker/src/actor/git.rs:463-475 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-hunk-tracker/src/actor/git.rs:284\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) async fn read_repo_sync_state(\u0026mut\u0060 in one and \u0060super) async fn read_baseline(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86d91781300289bf60c4410b21bee9abdf6f82066ff5aab948acee98094a205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:215-228 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:250-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:215\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f4371f905dbbdb46463138198fba21d3cabb37b366bab1a0b2bce733d182ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1548-1562 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1854-1868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1850\u0060 calls \u0060remove_file\u0060, \u0060map_err\u0060, \u0060io_error\u0060 and \u0060crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1547\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bcfbe36cfa351f438709e510c829e352ab4b2b29cf988e8d450a6de0cf11cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_maintenance.rs:463-476 | crates/codegen/xai-grok-memory/src/v2_maintenance.rs:616-629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_maintenance.rs:463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_maintenance.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2684e84678e6abbb0e4643dc694d4c6608d706a77f89fe782add853d0b6ad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:24-33 | crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:107-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"adad9e0deccd6c9ba8950f43a5e598e1a8d06b90fdd8ca035c1e271efb14c3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1287-1299 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1464-1477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"211bc7cd4c6eff87c1e9fcbe9008d4e89b9b37da40d0b4d78c58465e368975e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4061-4074 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4120-4133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4061\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4061}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc5b324426d74694a97da3b4b11880eda0af51430f9bf09c77f55ab8346c07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/event_loop.rs:2022-2034 | crates/codegen/xai-grok-pager/src/app/event_loop.rs:2048-2061 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/event_loop.rs:2022\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"257bc00234ad5599f59ef2b09271910d8493401f7815036cbf0242d433e4b980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:144-157 | crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs:80-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a28720f44ac8970ebad4c8cca57c1b3951fdc62ea52c1676d7b27ae61abaaa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:724-737 | crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:784-797 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:738\u0060 calls \u0060to_path_buf\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:798\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad95a8e98d8caec585dc3d29078667020f200f7233928b331ef874e3055fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:229-241 | crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:280-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"063817c776e424ac1762851d7b0a3d6dcde8c41c5c904664fab76c616852b077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/modal_window.rs:465-478 | crates/codegen/xai-grok-pager/src/views/modal_window.rs:647-660 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/modal_window.rs:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a6da6836a863f476c0052ea94bdcbb4ba68696d6703f5b1661e396eeab4351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:3052-3066 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:3379-3393 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":3052}}}],"partialFingerprints":{"codehealthFindingId/v1":"3114f7e6aea840eaf560c7de5ccbc274e3051d8dcfffa00e80ee10b341e1aaa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:2218-2231 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:2516-2525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a90fd31c2bf2b80fcb17dd6ed72af4ca6f86f523dc612c5b0c3e8c5e1bc492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tutorial.rs:160-173 | crates/codegen/xai-grok-pager/src/views/tutorial.rs:200-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/tutorial.rs:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tutorial.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04e2b6744205f92d8f1a43beafd0dbad64d0f62987ab4ca46424676acd0d7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1625-1638 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1770-1783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bcdfba0a71bded4cf794d9bdb9d49385dd009dadcaa5e337d5318cf574b97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:132-145 | crates/codegen/xai-grok-shell/src/remote/workspaces_client.rs:110-123 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/remote/workspaces_client.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75d85594e47326d609e2608eeb493bc203210d5fbd3472f4c05479af2642c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:614-627 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:704-717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:614\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb5d17dc9210ca97587e3dd7abe7db907d9ae56aa45cee85336e9782f4f355b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:2112-2125 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:2171-2184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:2112\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93264eecdca63f409e4f791056feda245c682109eb9c2ce0cf4412d9efbbeca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:2040-2053 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:2062-2075 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:2040\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23d2f7a586a5a9f244e03fe5c69c47cb01a6b1b8242a08fce605a7e8654b1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_planner.rs:286-299 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:167-180 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_strategist.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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/codegen/xai-grok-shell/src/session/goal_planner.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe37e0a05e498759bd6ef4c8fe02c4fc66edf75610c1c5c83481a87df28f43e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/telemetry/read_profile.rs:230-243 | crates/codegen/xai-grok-shell/src/session/telemetry/read_profile.rs:265-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/telemetry/read_profile.rs:230\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/telemetry/read_profile.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efed7e467221d59b1c6adb40a6691b65d3e9bac0c2b4ad7755e67f20551dcbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs:408-421 | crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs:547-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"313dea9584e5f8db4572c8ecf5a0ff8e614583f79b4d287c7efb2d7379eb657b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs:786-799 | crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:192-205 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8b112256e20e46fb3ab06b7ccdd5bb614bf9e65d5784a242d90faa87627ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:461-474 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:494-507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:461\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"231384ca63b4d3aaa9e7c64704bc06e9c9b2e220517d3f1b6b617d3b1c0f5489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:431-442 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:493-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:431\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2177fa47f7e8306f2a474b1d3e84ba28c512affd040b28fbf32e4b538c829a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:120-132 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:888-901 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:888\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4180f805f56d6818ecb49df7eb3a92a6fef3556d2faca42eb486e80495a57d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:764-776 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:491-504 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:764\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1152657e35526c17061b4a231186b60cfbd3c635467495b56de08785264272f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:371-384 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:228-241 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:371\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"560cb87d27a07166612051d0c969da58dced6bf68c2d6d160e867a2fa3e2c90a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:608-621 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:653-666 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:608\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79430783c5b3fc2a394b28fb961c4d9c13f072e693a1c1e33e6b783ecbe00d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/schema.rs:26-39 | crates/common/xai-tool-types/src/serde_lenient.rs:119-132 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/types/schema.rs\u0060 and \u0060crates/common/xai-tool-types/src/serde_lenient.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-tools/src/types/schema.rs:41\u0060 calls \u0060Err\u0060, \u0060into\u0060 and \u0060crates/common/xai-tool-types/src/serde_lenient.rs:133\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8569c24ce788e09bb523fed79984f930e1b6773c684e85acb32be285fd8200aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/handle.rs:2104-2116 | crates/codegen/xai-grok-workspace/src/handle.rs:2152-2165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/handle.rs:2104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":2104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6633fbf9ad79c91a0b6190dfd238c7d9b4efdea5d40256a125c4fa1abb5769e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/hub_server.rs:505-518 | crates/codegen/xai-grok-workspace/src/hub_server.rs:525-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c386ef50ec6c6e7080d32821755623d5d96812f43a6eec4604ed95dba306ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs:1295-1308 | crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs:1315-1328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7f1233e526abd6289cf7a8a6e6136507d6ea0629180500de787d23887474c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2036-2049 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2348-2360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2036\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2050\u0060 calls \u0060cancellation_token\u0060, \u0060Some\u0060 and \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2361\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"415748759e52f2749d6e986e6d80855d4c399ab3b4a0e1665a566a0a90a63763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:261-274 | crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:353-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060super) async fn handle_file_deleted(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"501279a9eb99828fed53be70aa33199f6f163468e55a290e938677ecba5923cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/wrapping.rs:13-27 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:49-61 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs:13\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/wrapping.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea6e5319aba276d9dff7b5900eabf379bbf115fad0b873c8d7318b58c205a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 5): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:147-156 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:187-196 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:155-163 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:193-205 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:223-233 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b32d5219723d246d7c9174f1ae9442022fd12a8401ee4b0ecd4850daeeb92a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crates/codegen/xai-file-utils/src/storage_client.rs:1103-1115 | crates/codegen/xai-file-utils/src/storage_client.rs:1214-1226 | crates/codegen/xai-file-utils/src/storage_client.rs:1608-1620 | crates/codegen/xai-file-utils/src/storage_client.rs:1662-1674 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1103\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e7a14c7746f2845d00dad413ae7a195636641c30b0b3638bae2e34edc33986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1218-1230 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1316-1328 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1443-1455 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1529-1541 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e7d924e8faca59cf7b9d1aaf84e70eab69c49af1dde664710a5a722c4d4350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1337-1349 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1464-1476 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1550-1562 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2825c1a60e54d10f95bd9124873f2803e43d3ddab7f7d6efc93a48fc2b702d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:128-140 | crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:131-143 | crates/codegen/xai-grok-shell/src/remote/workspaces_client.rs:106-118 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/remote/conversations_client.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0ada91db65610250d3ae484998e02c38c24d88b6b5642e1048e5ce29eb7a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1164-1175 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1944-1956 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2124-2135 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1164\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9981bbadc1ee269731080da2eccae9e63c36848c2bcc9112c300e08e6ee404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/api.rs:1103-1115 | crates/codegen/xai-fast-worktree/src/api.rs:1268-1280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/api.rs:1103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-fast-worktree/src/api.rs:1281\u0060 calls \u0060remove_file\u0060 and \u0060crates/codegen/xai-fast-worktree/src/api.rs:1116\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa07bef762889cada89ac0debb4406e1f584b2571d91a37d92ca49f1f2e8b662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:350-362 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:383-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:348\u0060 calls \u0060check_is_subvolume_cmd\u0060 and \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:381\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a7e28abb6266cb3a88c18744724d4a72193c457869c60b17e5b63f3fd19cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/git/index.rs:207-219 | crates/codegen/xai-fast-worktree/src/git/index.rs:237-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/index.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"54741df49adaf5b18b9d88e0bc0342ae1ecf263a463bfbde53eed63dc6c20e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs:311-323 | crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs:377-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs:311\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/overlay/snapshot.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"85182721bf68cd184f1f98227a39f02145f47e701458aa97e187f5f4a96ee36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-agent/src/config.rs:404-416 | crates/codegen/xai-grok-agent/src/config.rs:482-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/config.rs:404\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b07dbdf5dc0a4b1b7c588147a0aed76a5dec963dde3eb2b19c7c34cde88c27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/discovery.rs:718-730 | crates/codegen/xai-grok-agent/src/plugins/discovery.rs:734-746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/discovery.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5a5601346aec52aa52e01b5f08f36745192b027f504a75c5c4c598c37beae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/dispatcher.rs:127-139 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:757-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"000b3d2e430aa04f123f473785d9cacb148e669e796f3c1b8c88c96417d556be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/dispatcher.rs:224-235 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:980-992 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:224\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:223\u0060 calls \u0060Some\u0060, \u0060clone\u0060, \u0060push\u0060 and \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:980\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27f3570d59ededff7f510731dd537caecbd38e2a8c6cf1115d72c4ce8f72ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-memory/src/storage.rs:233-245 | crates/codegen/xai-grok-memory/src/storage.rs:265-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/storage.rs:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/storage.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f555b7d96e4931b407c45bb1bf38e25f7edc039018f6079077506db852c73a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-memory/src/storage.rs:804-816 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:761-773 \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/codegen/xai-grok-memory/src/storage.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa289730912ae596c29928987cadac9e73aefa8a034684c6ca76344f845c650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager-minimal/src/panel.rs:157-169 | crates/codegen/xai-grok-pager-minimal/src/panel.rs:208-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"03966c92f4b30a61b97e0ad98ba78d0512dfd4e3076176850f0e7ea3dd673384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/line_utils.rs:11-23 | crates/codegen/xai-ratatui-textarea/src/render/line_utils.rs:6-18 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/line_utils.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"68592ba88f991207f3a8d063f51f6e3133bac9488bc9566d604db4c5aed2b7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/input.rs:487-499 | crates/codegen/xai-grok-pager/src/app/agent_view/input.rs:703-715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0ec003d0ab5a6ec0f682e5d39c6a3677e64c3959996dfd4bf78ea337b81b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:474-486 | crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:521-533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:474\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"543e2abcce07d4f74ffea0ac6922ce4b5246769fedf5ca65a67bf84404ba1280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs:955-966 | crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs:1043-1055 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs:955\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"4801437037b8f2156cf652fb5e65430ad69484b2c5eb27d7fff11b8c5b05164d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:411-423 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1261-1273 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da6ab36be394977d87d39cc81289d9d68fef538e9ae716c65add1fbac5d9fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:346-358 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:504-516 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ce8bacf29e23d0bf3f6bdb47e292f9a0f0fcdf44fc6f586a2535b8d4932898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4178-4190 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4234-4246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4178\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4178}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74ad8656e45952b81def33b9e041d93a012786c2ae0c07e99edee95fc25753e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:344-356 | crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:420-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb09f4ff68e6209b70eb5a2cb3b0e4069bb2c93e1bd9e30d9a9cf0d385c3dd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:177-187 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:226-238 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1e4c73b6cfcfd08a779ad74a05b7d6bdef6a0421bffe25be049698ce4ad678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agent.rs:297-309 | crates/codegen/xai-grok-pager/src/views/agent.rs:311-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/agent.rs:310\u0060 calls \u0060next\u0060, \u0060unwrap_or_default\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/agent.rs:324\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ea3a1a30566d05741cc035079cee81f58b3e9e99ff9973f5d4e6f08420c610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:201-213 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:254-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"534991dbe3a32eccedbf0b0bafc5e7a2efeac3eb086ccf220dc2b19b9cf4c8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:135-149 | crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:206-220 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.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. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1655aaf172895fe52a681ccd8414fb8c61917e4763eee4d5c650204a53f14509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs:788-800 | crates/codegen/xai-grok-pager/src/views/session_title.rs:107-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs:788\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd098c2bc597708fea4e2988036b9e6a503510086171e25c7ed2194b8b530ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2879-2891 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3026-3037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04a435a7588c642d0098169563a1736d8086199b0d631183cdf80bece6eeb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:2087-2098 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:2120-2132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb286c08871900644be956ba6c9c6702e6b10ff1740bbe1a6917cc3d4f519905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:535-547 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1623-1635 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:535\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea066b47f58b147cf47ed43c39c2c8e0d5731335c9426cabec5ffaa306e9fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1330-1342 | crates/codegen/xai-grok-sampler/src/client.rs:1687-1699 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"621ff729a26870aafff3f780e254089f90c390e095665b2d851fbc4d7d652bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:235-247 | crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:259-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/doom_loop_recovery.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"085b03cbab02fe81a160bdf8f4e9e7f0c442555940ce33e89d6752c12a0bab54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:249-261 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:422-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86f12b8a4c52451b3dfece3a70077d7ae2a98677810101584cd0b3ce133edae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:891-902 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:3461-3473 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b623dc8e1e6e95b7b527f2aa1a092a34ab082bb0d8113f5b9b8fa9546dc1b97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:256-268 | crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:290-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd33fc50ce385aac6a8640692f87bef21c1b75b337166de2233f3f693ddeb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1219-1231 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:2104-2112 \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/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d8aa926c14d1284732c599c3c6212611a5241cc87a4f6e8f6bf9d63a38f961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_updates.rs:160-172 | crates/codegen/xai-grok-shell/src/extensions/session_updates.rs:413-425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff018677e88bba43bea1931e7a77d126c10f6481c58c14fc57f1bfe6085e08e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:262-274 | crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:326-338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3261469d3c87b8f3431aff5a594848c4010560a93aa960996db3665b40f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/server.rs:2110-2122 | crates/codegen/xai-grok-shell/src/leader/server.rs:2265-2277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0aa3340a41f348d89ecbd592f843e2f0af49a1f9f998762ffa0841feb86ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:227-239 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:464-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:227\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3defc5099a7da487ab84a62858d9d301aaaa7e2e77590bbe5ce93d6dafed64bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:379-391 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:897-907 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:376\u0060 calls \u0060notify_turn_abort\u0060, \u0060get_total_tokens\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:896\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"624485033a9a2e5a95e4b174802603dc3cffe61f56c866001472cbe48f1d13c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs:888-900 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs:668-679 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs:888\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da6b4a1d6727a597358e76d49467b6d6157e707b57d9087c415f0f609bc7e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/export.rs:37-49 | crates/codegen/xai-grok-shell/src/session/export.rs:56-68 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/export.rs:37\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/export.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc35956951dae0486d25f3eb60f56c7b95386ef20f53c181693bf7665df784c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/fs_watch.rs:188-200 | crates/codegen/xai-grok-workspace/src/fs_notify.rs:194-206 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/fs_watch.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/fs_notify.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/fs_watch.rs:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92f20409e3af40ff3d55be099911f253a0f11197f7f93cebbde3e016433a2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/search_content.rs:218-229 | crates/codegen/xai-grok-shell/src/session/storage/search_content.rs:233-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/search_content.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0076709eb18b90fd9aa77c79c4872950da135cc8e4160099f67a5663fb3394eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:64-76 | crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs:69-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6cf3b04342179324da08cda0cd5bb8d112c1fd4727a4dd125496ee2c8c07be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1254-1266 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1407-1419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e100ff4b11f51e9dad74a4cc2ef5cde68a679dcd0e3a6306d00e56913bc592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:215-227 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs:122-133 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c27b0a657e9810d432451318e55a41dbd38b43d94b7d0354cf45570877c3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:320-329 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:287-299 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2926c31cc06c405b2b6c89a530e50c23a8d3f6a38cf23269848b452f96fff6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:333-345 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:533-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb46216c89f30bde60997082c02ea4e41db711aeb8c78a694563715b065929d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:369-381 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:415-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:369\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2f1e2ed202005f8cf3b8fbe5325621ddaedd9767f3b61d85cdaf59813a375d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/memory/get_tool.rs:80-91 | crates/codegen/xai-grok-tools/src/implementations/memory/search_tool.rs:67-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/memory/get_tool.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b711ebf3782f0d5b6b141fef9e89679528f9add80bed356101f8a7defdcb38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:304-316 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:445-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"694302f5aa575a58732ba5c254f599ea0476c8565f08edf07fdffc561945dec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:122-134 | crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:463-475 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8479fd14955aed192eaed999fbf684105a3d4b2004337e92f40401c031c37508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/publish.rs:99-111 | crates/codegen/xai-grok-workspace/src/publish.rs:155-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/publish.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c749ee972c0b9b1d686884a4c102cc55f71cadf1cc227fd02a42ddb47da6f015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/checkpoint.rs:250-262 | crates/codegen/xai-grok-workspace/src/session/checkpoint.rs:315-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/checkpoint.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97522ed301a6d656654b24df305063899be1f6b88dacb3aace8f033cefef95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:207-219 | crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:248-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e5ff876e112b472696f6ec8263de5f891dc8fbdc46e1ca8fdbb56bf88fd94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:1395-1407 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:1427-1439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/textarea.rs:1395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5af0e6d41cc48c4939c28f1e17da26e7c89990d1f064e022a85214b40371c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:2391-2403 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:2452-2463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/textarea.rs:2391\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82ff6e14d55d9ac62ffe68657336131179141d44aa1ffe4fefc221e736224fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/server.rs:1436-1448 | crates/common/xai-computer-hub-sdk/src/server.rs:1471-1483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/server.rs:1436\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"83566ba50fb0a6e0422e1d77795277d7872c45071a69c40c07c6dfa063385613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:244-255 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:317-328 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:259-270 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:234-245 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:280-291 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:321-332 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d468fbf10aab4ec927d60deee74533bf30a7657eb761c450c4c1b85f479e78c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crates/codegen/xai-file-utils/src/queue.rs:1361-1372 | crates/codegen/xai-file-utils/src/queue.rs:1414-1425 | crates/codegen/xai-file-utils/src/queue.rs:1468-1479 | crates/codegen/xai-file-utils/src/queue.rs:1504-1515 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:1361\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e44bc21cbd74a5b7ef4d025ebc69f4c9af4bf3246214e56faf80e6eb004ceb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-markdown/src/mermaid.rs:2383-2394 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2545-2556 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2942-2953 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15080398e669d4f90bd2164040a8a81d8b4a0f3cb0b18a29db44fb96189b46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-memory/src/v2_capture.rs:338-349 | crates/codegen/xai-grok-memory/src/v2_maintenance.rs:461-472 | crates/codegen/xai-grok-memory/src/v2_maintenance.rs:614-625 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_capture.rs:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cbfadec2762e795bc840ac5824286286dd715155c7d788b3fc9d1ddc722fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:284-295 | crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:338-349 | crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:389-400 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs:284\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33c258e033038b4c7f0f90ce1ab1fa271b73d51a7d1bdec6da09692c9ae7928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1297-1308 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:280-291 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1194-1205 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1297\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcce62c9c74583860b45c8357dc095d2c4d3875fa9bb1c734c927be8ca5a52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:235-246 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:293-304 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:859-870 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:235\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d334abeb7914020c555253dc3e1b18719d11f2bc5d7e0a5abb5ab965ac50d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:308-319 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:698-709 | crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs:825-836 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a98c7ac03454eaabf6400b7e56fc05db2a6eb88693467dedfe625d170bcec46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:84-95 | crates/codegen/xai-grok-sampler/src/stream/messages.rs:131-142 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:261-272 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ceffaf5586513f95bfd6937fe4b2d0739f6d090c964dd2033c780f9d60176c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:91-102 | crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:98-109 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:375-386 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/remote/conversations_client.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"91196ac3e69c453cb2fbe3eb7587da8e66a59509db6dff943f68bbc55c8c1d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/ptyctl/src/term.rs:246-257 | crates/codegen/ptyctl/src/term.rs:310-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/ptyctl/src/term.rs:246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/term.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a948bb8eb0200c2714e7efc4558462dd009defc751e6692fc419191d838f531c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:260-271 | crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:310-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/code_graph.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"719b59ab17256a4300c14e9787e413fb29400365e754c101d789b9c1d379dc02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/discovery.rs:349-359 | crates/codegen/xai-fast-worktree/src/discovery.rs:361-372 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/discovery.rs:361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/discovery.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ec8406401e06ad8b7813d16184bb8947423a414af23d37fe4c6b10237a62ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-agent/src/config.rs:263-274 | crates/codegen/xai-grok-agent/src/config.rs:501-512 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d5ecfa2f0330133a18914d50bfb04ef434bf25302bdea92fd450f7bfd1e52f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:398-409 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:488-497 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs:398\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs:411\u0060 calls \u0060display\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:498\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c6fd59507af48e75bf99ea82833dbc0ae0792b7fbbbaf35cba98118ddddcba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:502-513 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:452-463 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs:502\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3924c1a246139fb1f0f9d12b83881c21f47d3766baf1c720a232106b78c27423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-feedback/src/draft_store.rs:506-517 | crates/codegen/xai-grok-feedback/src/draft_store.rs:830-841 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-feedback/src/draft_store.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"73febbe2aeb9776812ea4f21a21a46e85149953b780acd882ce0b8301f447024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-foreign-sessions/src/claude.rs:148-159 | crates/codegen/xai-grok-foreign-sessions/src/claude.rs:289-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd71d0c809bb3186d3ac777744ea197e106f202c430fcb31bcde7ece4823512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-login/src/manager/lock.rs:240-251 | crates/codegen/xai-grok-login/src/manager/lock.rs:316-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-login/src/manager/lock.rs:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc57578fc10d4e5d3f884837cf7163228bdf8cd4a5391240e99b14537fe04596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/colors.rs:231-242 | crates/codegen/xai-grok-pager-render/src/syntax.rs:65-76 \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/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6795afe21ec36416a8cc9ed2bcbc7a3d7b13fdb8d1ad8a44b3a8ad713ae326c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/parse.rs:1773-1784 | crates/codegen/xai-grok-markdown/src/parse.rs:1813-1824 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1827\u0060 calls \u0060saturating_sub\u0060 and \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1787\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ed724e27aabd23c4d535a267a4a566cb5eb4caaa1eb664d65bd1226417c5d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/parse.rs:1787-1798 | crates/codegen/xai-grok-markdown/src/parse.rs:1828-1839 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1787\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1827\u0060 calls \u0060saturating_sub\u0060 and \u0060crates/codegen/xai-grok-markdown/src/parse.rs:1784\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d49bfde10b6cfe3b5bcafdcb93bf2e8e320ac40471f3417b8b881397356a924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/input/key.rs:164-175 | crates/codegen/xai-grok-pager-render/src/input/key.rs:208-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/input/key.rs:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/key.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4dff2cf5965686f8622627aa7c149b3356bdcfa5c238ff97cda438b63a4697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/bidi.rs:468-479 | crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:317-328 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5168a6155086abf5336fb321e4f92859c1d26d3ad3b2ea2fb5da2ae83a341f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/highlight.rs:39-50 | crates/codegen/xai-grok-pager-render/src/render/highlight.rs:75-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/highlight.rs:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/highlight.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e8da661ecdfc4467c020f67edbbc0331dd07d29d6888f46b004b2b37f1bd15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager/src/acp/mod.rs:577-587 | crates/codegen/xai-grok-pager/src/acp/mod.rs:601-612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/acp/mod.rs:601\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/mod.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"e839cdddc95f191dca537023897796ec99a7a93211a199dc9bf512a217889281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/acp/tracker.rs:1839-1850 | crates/codegen/xai-grok-pager/src/acp/tracker.rs:2275-2286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/acp/tracker.rs:1839\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee56a169579cdbb1280a8231d23f4053960e70866370091124f7811404de414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:454-465 | crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:788-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7f0edf42af0ba7828eff9ba3f0a914bde5f493269cdc3ebb483f2cc920b7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:3465-3476 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3494-3505 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3465\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a51cbe89fee1cbf8ae7b94e0153a8dbbf103bc77ff7bf4e85bd219cbd44546a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:1891-1902 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:675-683 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:1891\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3fed020acf9b63c8e11a947648c91d1ef8217ca76e091cd551ccf77187eac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:83-94 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:127-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:83\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:96\u0060 calls \u0060selected\u0060, \u0060and_then\u0060, \u0060shell_prompt_index_at\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:140\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad002cee087e16493b5cbeeea4049f8f6ffcf7de0a87a0f8d354617742cd40e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:308-319 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:466-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2263902ec84975b617a5c124edd31fdd1e4238529d1c8831edb587fc0735151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3400-3411 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3459-3470 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3400\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3400}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d32de43e5f57794b5d5ce2af5b915d9290e16f5ec40fc4e75cde6e91cb05d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3521-3532 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4559-4570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3521\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3521}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0a710d0acb71632d21bfbe4e54e5fdea0175c399aef09096eb9b97bf087c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/queue_edit.rs:424-435 | crates/codegen/xai-grok-pager/src/app/queue_edit.rs:533-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/queue_edit.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a884c43914dc2d52df5522db1de7e297a980c1da31364e0589482b2baaed750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 3): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:260-267 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:414-424 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:453-464 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f4d8415a8bc33dfe88da72e4d2de70b7395b11d9f28dffe5544c7c8123ea77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:168-179 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:202-213 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:168\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eb0ecd5f9b5897f72716182e310eff8a441d96b0b779f8dd14af90a45a95dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/entry.rs:156-167 | crates/codegen/xai-grok-pager/src/scrollback/entry.rs:185-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/entry.rs:156\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/entry.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f4499b63a7cf9bd9712690b58966f515e9cba02918779d43b776b008b9a47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/slash/mod.rs:814-825 | crates/codegen/xai-grok-pager/src/slash/mod.rs:1387-1398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"4335d69fa8113f5c7964209def23beda07f077bee72d365e993d3d55307c9b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1688-1700 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1711-1723 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1688\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae9a8de81f47d94e12314be36303244e0987a3b469c9eec42a1429e5b3b6bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:90-100 | crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs:47-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb12f46b07ca7741725b903b2ecf5ca41298fea60c2dada533bc6dd0d9894421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2128-2139 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2336-2347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb7acb2f59a3c40c8e38bbaf6f6dc2a429db2999da1e89516194bda244cb717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dock/layout.rs:262-273 | crates/codegen/xai-grok-pager/src/views/dock/layout.rs:284-295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/layout.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6d098cb0882800536e0467b751d4cd05c30f422b8fffe7adbe5d4e52becb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/goal_detail.rs:52-63 | crates/codegen/xai-grok-shell/src/session/goal_orchestrator.rs:240-251 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d055833cb2ac81c23a4627bb31e4507d82bb31eaacbc83a1167d41e0ba40ae0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/picker.rs:2779-2789 | crates/codegen/xai-grok-pager/src/views/picker.rs:2882-2893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/picker.rs:2779\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2779}}}],"partialFingerprints":{"codehealthFindingId/v1":"378240a0e35fcf8325dfe9efa1e91252c8562272e2ef3cfe4d8c447e23ac0731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:662-673 | crates/codegen/xai-grok-pager/src/views/todo_pane.rs:190-201 \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/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db4f0b30478e88fcccf9a2f9f43d626e8455b29221893c788835861f1025e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:87-98 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:172-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:87\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a2f4e33b72e56b074e4bbaa30e3edab1d7f30511dc9268da29c4465f58708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1349-1360 | crates/codegen/xai-grok-sampler/src/client.rs:1706-1717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"842476b757084d9e8d4a07874cd45afd5833aff9b8c9a70d4bcc157e4134cb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1497-1508 | crates/codegen/xai-grok-sampler/src/client.rs:1824-1835 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1497\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c395e7e67959c9a071087a73920c9a2c2c77036cee6a0e111ff1226b7672031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/stream/messages.rs:300-311 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:338-349 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/responses.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/messages.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b637c7103b265bb35bc86c151965723569ca89bb9a8b1251a959900252b6277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:446-457 | crates/codegen/xai-grok-shell/src/agent/server.rs:471-481 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/app.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/server.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. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4cf41a9c89e25d22de5f6dc669749ad5eda82b37db1362c10c42e4bd433188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:230-241 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:266-276 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c460a66a22c751ad1bee2ee862e6cd1d7c030e73c267f1ec72854a516881dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1524-1535 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1606-1617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce12816f21759993f1b3693f16deb30c44d22217238cc470e4cb6ee503570640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/config/watcher.rs:610-621 | crates/codegen/xai-grok-shell/src/config/watcher.rs:724-735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/config/watcher.rs:610\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/config/watcher.rs:609\u0060 calls \u0060filter\u0060, \u0060starts_with\u0060 and \u0060crates/codegen/xai-grok-shell/src/config/watcher.rs:723\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/watcher.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"34505fc8d7a23e269bb4ad84e4a742bfbe638f0eeb5ffcbf1374cec4048eda1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1540-1552 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1646-1657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1538\u0060 calls \u0060goal_scratch_root\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1645\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da97236c1ed3d872d027d5d9315949117e19b316d100951cb810c94acfcb0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:377-388 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:425-436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25f52ec0a65c1c985b39f89952d62851bce18e0390dfe05f5ede7fa7ec3ede9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:590-601 | crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:714-725 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:590\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:589\u0060 calls \u0060is_empty\u0060, \u0060then_some\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs:712\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aeea7627b14b7867f77b2eb2e64c397a07beda9cc5be67b6e65cd715820632d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/workflow/store.rs:324-335 | crates/codegen/xai-workflow/src/journal.rs:271-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/workflow/store.rs:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/store.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"27506ea281a00c62ce9598c7d4dcac9a6c68bc73378e03016d5d2d88abdd19ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:51-62 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:69-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd93bf71f5892e44c1e04029e6dc546a76469a5ecf599d3e743d36923b098e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs:83-94 | crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs:104-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"39abb9752be3e3d8492faac71200eafe610e33f135757145b358a199649aec43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs:139-150 | crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs:171-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/format.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d292535b3736ff7c6ab60d9d263c7c7c44703545512edf623ad081d4135b04d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2042-2053 | crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2131-2142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d3f4ed96221fc232703309c05163e55c7b8eef81873253b0cceb2c51f3fff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:125-136 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:146-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5a5b30392c5102e7760c0af800de5d92b736269d09a98686a1b1d6a6004021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:152-165 | crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:186-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:152\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"907c0d4d6aec5750c54678d08c1b8f1df5879249960b0a9b989d636055b1fac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/registry/types.rs:1132-1143 | crates/codegen/xai-grok-tools/src/registry/types.rs:1150-1161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/registry/types.rs:1132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b225119101e23f89269499a70ee303da4060b6ace25d773eb85cd5fcbf736fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-update/src/auto_update.rs:1239-1250 | crates/codegen/xai-grok-update/src/auto_update.rs:1297-1308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-update/src/auto_update.rs:1239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9412340cecf4d025d3226f903e02aace11af8020de0e1c1086ae3695eec50e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/prompter.rs:396-407 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:699-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/permission/prompter.rs:396\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f029be5fbb8f58c8f2b974a950b42923aabd741213ab00f880c23a5334949e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/actor/git.rs:360-371 | crates/codegen/xai-hunk-tracker/src/actor/git.rs:447-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9286003dba03532e2ce88e6e0fa7d04b47163802156593c2c1e9c17890f250b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crates/codegen/xai-grok-sampler/src/client.rs:943-953 | crates/codegen/xai-grok-sampler/src/client.rs:1081-1091 | crates/codegen/xai-grok-sampler/src/client.rs:1301-1311 | crates/codegen/xai-grok-sampler/src/client.rs:1442-1452 | crates/codegen/xai-grok-sampler/src/client.rs:1668-1678 | crates/codegen/xai-grok-sampler/src/client.rs:1794-1804 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb370b655efa2165d1ee36f00742046c4686c80c14c5b41df6e7280a0f40cfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:74-84 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:118-128 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:101-111 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:94-104 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e35962d1c94762c9819691057214571bd43e16b78d32e401561936cdcb040d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:102-112 | crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs:222-232 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:823-833 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:60-70 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62edd1d928aa28a2b0b8b0a574e1d087f88d5433833a5d993fcfd79e0755b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-codebase-graph/src/index_manager.rs:1411-1421 | crates/codegen/xai-codebase-graph/src/manager/builder.rs:431-441 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:609-619 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs\u0060 and \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/index_manager.rs:1411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs:427\u0060 calls \u0060with_capacity\u0060 and \u0060crates/codegen/xai-codebase-graph/src/index_manager.rs:1409\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"da83d15bd384819c88e295a1a4e3ffb3edc7a83a512b5b96c570d3fb90e27e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-markdown/src/mermaid.rs:1429-1439 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1850-1860 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2144-2154 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:1429\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ace1a2d2c6d94265a2c0a77740e38e61dd802fafe6cf4c46ad36b2c63507e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/modal.rs:938-948 | crates/codegen/xai-grok-pager/src/views/permission_view.rs:1454-1464 | crates/codegen/xai-grok-pager/src/views/rewind.rs:588-598 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/modal.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/rewind.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/modal.rs:938\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"438e0fd74b10b4c7d4bb72c47a7d6f522b1361b3f99d84508dd4868d879a956f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:219-229 | crates/codegen/xai-grok-sampler/src/stream/messages.rs:491-501 | crates/codegen/xai-grok-sampler/src/stream/responses.rs:575-585 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs\u0060 and \u0060crates/codegen/xai-grok-sampler/src/stream/messages.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cbf5e1a12f4903af0c21b20cf3595272998d088a3924552fe62cd5db43b563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/goal_planner.rs:239-249 | crates/codegen/xai-grok-shell/src/session/goal_strategist.rs:120-129 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:105-114 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_strategist.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs:239\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_planner.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9a52f0f8d3cf14e5094aca33e1ae2900698b74226f022a2adc6733f0a1962c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:328-338 | crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:362-372 | crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:407-417 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/card.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b780d296435343603c1abb28c478848955b391ed66b54d745570c9d2601b730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:123-133 | crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:464-474 | crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:491-501 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:123\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b09ad2c53cd605ffc3291067e05fd4e7f72a27800b1ecdaf3f0cbfde508db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1943-1953 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2123-2133 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2389-2399 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1943\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e655fbf9300e1baf44117f711532d6fd6fc718d95c572040893f504788402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:582-592 | crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:600-610 | crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:660-670 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-hunk-tracker/src/actor/mutations.rs:582\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41fd59402da72e07ec378a412a938668b574b8801ff1a4fc264719d50114b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/manager/builder.rs:453-462 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:632-642 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs\u0060 and \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/manager/builder.rs:453\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/manager/builder.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a845645dc19cf34ef5020e026dd7437ad3b4998a49f2bc56e0457ffb7d9cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:462-472 | crates/codegen/xai-crash-handler/src/handler.rs:789-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cdb26f5b4d2095cdc56eac0122906d05d7b046c7338328e81277e1c4fbd4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:758-768 | crates/codegen/xai-file-utils/src/storage_client.rs:876-885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:758\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"819140f31154de59038e8dc173b7c32dbeac838bb4448ab47d15f2a30ef09a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:770-780 | crates/codegen/xai-file-utils/src/storage_client.rs:887-897 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:770\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f212eb9a8c4417788d4942fc6a4f3164b8f21a51bb3fa8c566a3946f61dd6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:126-136 | crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:174-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"012f0d9ed705d72407f238d408d54ca021220b8cd663e4a610a4069688faff2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-gboom/src/engine.rs:284-294 | crates/codegen/xai-grok-gboom/src/game.rs:120-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-gboom/src/engine.rs:284\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fadf2c9480b5aa265b6b39ef4644f07714f531717fb94b322494dd0a7a49c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/runner/command.rs:604-614 | crates/codegen/xai-grok-hooks/src/runner/command.rs:646-656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccb0b2a78da3fcdc8f5e5aac2b076a82c1143cb252233e6b10a585b36aa7241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2358-2368 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2531-2541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2358\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2358}}}],"partialFingerprints":{"codehealthFindingId/v1":"980bc8ee1accfc0121008a4ab426375abadca66963cbc5baf377509624fd3a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2408-2418 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2585-2595 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2408\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2582\u0060 calls \u0060Some\u0060, \u0060get\u0060 and \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2407\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1989e5c46ebe6a372a1902e1d41b5e3d660502fc302aaa2344ec45c7e5d50e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/parse.rs:338-348 | crates/codegen/xai-grok-markdown/src/parse.rs:350-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd657740ea61653f224b88f25a08025ca0e0164734ff739b35df4029f832a45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/codegen/xai-grok-memory/src/dream_lock.rs:48-58 | crates/codegen/xai-grok-shell-base/src/util/mod.rs:189-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/dream_lock.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbbf1c8f45d474ae51c4bea3edfddd63ae46e4d51813895744fab3da8c6cb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_capture.rs:641-651 | crates/codegen/xai-grok-memory/src/v2_capture.rs:664-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_capture.rs:641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"6902f24fcc868122580e4904f953619af0ccf96f40b66b2053409dedf402cd9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager-bin/src/main.rs:1259-1269 | crates/codegen/xai-grok-pager/src/app/mod.rs:748-758 \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/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c675198225b550c1e0d29b2c1308b4106b0fba071b20f6bb906cb5bac18783b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201319 lines \u00D7 3): crates/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs:32-50 | crates/codegen/xai-grok-pager-render/src/render/video_overlay.rs:31-49 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3412-3420 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abcca232d9d5b614bce5beec87c77041af3305d0baf525905e556bcc2c63264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/syntax.rs:99-107 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:48-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/syntax.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/syntax.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c671f3ffd6fc8d10eeba7bd85c6d0812eb2edf9c606f7995a0859961b35c0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:374-384 | crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:851-861 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:374\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_question_key(\u0026mut\u0060 in one and \u0060super) fn handle_plan_feedback_key(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"29afd96150a2c30fef669d8771c7e93134e835536747c77ebf374db214833e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:885-896 | crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:924-934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"37996d8276629ed94e06866793d36bed62a5c9d4df8ee1ba3423fb071288f22e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3424-3432 | crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1483-1493 \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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff448a2f8e2f5451b6db43ab870e2797091bb271b6cc88c7445fc87865b1adc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4171-4181 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4191-4201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":4171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf17e5a0b32a48e92c9805cbf44cc20dfe4236ef3627bdd01c9f138178b38962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:2602-2612 | crates/codegen/xai-grok-pager/src/app/app_view.rs:2736-2746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2602}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d691b55acaeb8d8dc9766c960b321752b02679cb636680f7c4d7e2ebe10e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:5065-5075 | crates/codegen/xai-grok-pager/src/app/app_view.rs:5112-5122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:5065\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn maybe_trigger_small_screen_tip(\u0026mut\u0060 in one and \u0060crate) fn maybe_trigger_ssh_wrap_tip_inner(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":5065}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaacc9505a2424d69bc6edecc88fb8d6b005c7c01944f6fddba6efae72893f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs:82-92 | crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs:219-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/auth.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ba7244486dc66b4cbfc9cedbd55ccf20e032147f41e05694be220a5f9d2c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:429-439 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:500-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"300a8ea2218386ab891124c71a4943a1c5a7c17ea99cde0ba326b105ab30c54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:216-226 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1144-1154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:216\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dfb812f53eccf09f16c8207083946bfacfbd8234ac74dacd8345250d942b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:836-846 | crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:922-932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:836\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd63eab2e9f8cabc9e9a584ada552cc9d38afa0e6290717993a56ebece214a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4902-4912 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4998-5008 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4902\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4902}}}],"partialFingerprints":{"codehealthFindingId/v1":"e773fa6854c487913d082eac88d67e6bb92bc75e019256187913917c75e4d99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/mod.rs:1632-1642 | crates/codegen/xai-grok-pager/src/app/mod.rs:1658-1667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/mod.rs:1632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa9de0e605def7fd5c278163e61f4c63f68b5388c2be94e28be3a769884314c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/headless.rs:539-549 | crates/codegen/xai-grok-pager/src/headless.rs:565-575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/headless.rs:539\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5153a2f5af7b852efee1ea26b168a3651419665f88f843e019bd29b3e42f8071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:95-105 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:156-166 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"487e3610ed50bc212d0cad22d262e34bb69c002d74d35b9989bd25d02ea93858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:400-410 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:294-303 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:400\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"011c1f0e2b580d21da2cd87c96e9e42c1c0547a631e3580ee86e2ae639975f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:829-839 | crates/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs:822-831 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:829\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd8bdc7964826dd62632c989609fc9702a7a8adc6eb6606dfba07aaeae9c1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1247-1257 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1348-1357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec75212523b099e6aeff839a80ac167381b021e94de1be457c4054cfac62ea17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/row.rs:207-217 | crates/codegen/xai-grok-pager/src/views/dashboard/row.rs:319-329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/row.rs:207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/row.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2757f573bd017bfd332738a02560d9a7a495b17ebc58c94a9f6c40dee5107196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/overlay_list.rs:90-111 | crates/codegen/xai-grok-pager/src/views/rewind.rs:322-344 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/overlay_list.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/rewind.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/overlay_list.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe5b7757624c478ce5424226c1ba0218d16bbd69370e57c8b01a54d66d89fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:385-395 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:413-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"95564bd4f2023c6825b933ba823299506e221329a23f6c4e05dc8285735af9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs:467-477 | crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs:496-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn advance_next(\u0026mut\u0060 in one and \u0060super) fn advance_prev(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/state.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca9490cd821f9788745acd6102b6b8db02d8cef1a4c1854c558e61ed7e684a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1085-1095 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1127-1137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1085\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4eaa7922c28e75b6a0ab16adfdde4987d3a6c59bdb92dd6d10fb5b406ba542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1172-1182 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1201-1211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1183\u0060 calls \u0060is_empty\u0060, \u0060push\u0060 and \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:1212\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b52698f7cad6741e2fea5905f13e4bd6a10fa1ed6d53cb471b6c69fd3e5138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:142-152 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:164-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78af271c891c525bfd9e26aaa0fc694561548c7deaa258725e7c3ddd2a0b324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-sandbox/src/command/git_config.rs:503-513 | crates/codegen/xai-grok-sandbox/src/command/git_config.rs:532-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ed9e192e4272032c77b90f35d79f5de2056eb3d98e3a3b881c1c0a138bba1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-sandbox/src/lib.rs:552-562 | crates/codegen/xai-grok-sandbox/src/lib.rs:602-612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sandbox/src/lib.rs:552\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/lib.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c0b4a94050d2995388184d9f332e12f9ac02dee75a87a31f3b206986b55e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/pty_session.rs:32-42 | crates/codegen/xai-grok-shell/src/extensions/routing.rs:33-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell-terminal/src/pty_session.rs:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/pty_session.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d89d0fa8a3cafdf273a7c0bbc558a0545a4671bf9980e793c54cd763dc7dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/config/mod.rs:111-121 | crates/codegen/xai-grok-shell/src/config/mod.rs:151-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/config/mod.rs:111\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba445a97237527b263846e66286384a946a2754156d3e89032a351dcc540b83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/git.rs:529-539 | crates/codegen/xai-grok-shell/src/extensions/git.rs:572-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/git.rs:529\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/git.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"be803524fe1036751f7d2086e7e89aadb94ed42969fb767ae9b3f03c14b6f04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/review.rs:41-51 | crates/codegen/xai-grok-shell/src/extensions/review.rs:100-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:41\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:111\u0060 calls \u0060now_v7\u0060, \u0060to_string\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/review.rs:52\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/review.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d57e3a4df45e041ec9857c1b486843a8a704e2e3ebb883375716061a4f6013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-shell/src/plugin/mod.rs:924-934 | crates/codegen/xai-grok-shell/src/plugin/mod.rs:969-978 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3aa25fa2e942cef5ab1e86d5612483588a3f08e223d339cb4e42e05f8c0eae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:473-483 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:494-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/skills_client.rs:473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da05f0274453938263bbe7758400684729452bfbabd5591e5962420103eb3cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:555-564 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:1840-1850 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:555\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b85fc50c971e463a1d355134d3142f0a57f68ac8c349b4b07ddf487235733c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1777-1787 | crates/codegen/xai-grok-shell/src/session/goal_classifier.rs:1795-1805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ee5375448ea373090edc7f285b4c5a8f2a800cca74ce56b7dfbf9e8b753559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/session/session_end.rs:103-113 | crates/codegen/xai-grok-telemetry/src/session/subagent_spawn.rs:73-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060phase\u0060 to \u0060Phase\u0060 in one and \u0060SubagentSpawnPhase\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/session/session_end.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee2564f3a639fd8d280e1e73d6041346e885641e3a504d30e7fd95a8dcc5d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-tools/src/bridge.rs:635-644 | crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/delete.rs:94-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/bridge.rs:635\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/bridge.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1019dc075786d263e38f094819cf81c0bfe6ede26e676268103a59b079731f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs:534-544 | crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:225-235 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d9246809ebfe7107740a21c4d8821d49d284c2d81199c476b76bd804eeafca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:479-490 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:512-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:479\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf4c6cf52e90f10fadb231994b1f40a43e0aaf33c2f9125eb51537573d76d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:459-468 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:535-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:459\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7652f69753d16282805192f9317cd5494084ba410201504d2717dcdf8f0cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:1686-1696 | crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs:136-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a279407b30f96545c4d48bd3be27a51f9eeb77e3bb17dddbc50321dbaddd83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:398-408 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:498-508 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:398\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c4119040a98db3fd3eaca3515cf715c6637e7c9f2e677072a5dc0d6e593683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:352-361 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:439-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:352\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4b51cf43d25a6c29644f460fc0e72ee1847a3de19b1e9defd75e47fcbd4905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs:544-554 | crates/common/xai-computer-hub-sdk/src/oidc_provider.rs:271-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs:544\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_auth/proactive.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"010d122e0feb9be7a703ff4964b2b6f3ef95ec54f7f5cfcc9cfa343ca352e2ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/path_virtualization.rs:260-270 | crates/codegen/xai-grok-workspace/src/path_virtualization.rs:302-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/path_virtualization.rs:260\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/path_virtualization.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92669174bf995171cba937798ad265343f2ed2bb064b8bf640f837f609e4a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:962-971 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2502-2512 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:962\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ed705360beabf1b9f60c9ba8d4574031b9ab496be0c19a666b965118f9bad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1193-1203 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1972-1982 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"525ce81cdd5a9211a71a437e5ef354327458bf3c04c81eca47d11259c111256d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:2376-2386 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:2440-2450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/textarea.rs:2376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2376}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f5b47b07619e6fe6561f68a023db52de8e72294e563514054541c83adeb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/wrapping.rs:217-227 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:253-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs:217\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/wrapping.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b01ec22d6c06c20768ad64982150041242eb44ea53ddec7a57f23474457690e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/connection.rs:1576-1586 | crates/common/xai-computer-hub-sdk/src/connection.rs:1598-1608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/connection.rs:1576\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b43a520baa2117c73faf199c51a6f9081e1b701f5c9511223cef2cf54ae495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/server.rs:1717-1727 | crates/common/xai-computer-hub-sdk/src/server.rs:1765-1775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/server.rs:1717\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb16a944fb76ef63eb4feff23fc7accae2d20359c2e7ffe7d37ce21a8d72741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/common/xai-grok-compaction/src/history/filter.rs:99-109 | crates/common/xai-grok-compaction/src/history/filter.rs:112-122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/history/filter.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bc2500f03d1db1152f41915e18aae2b2e46bbba228f4bd243cd480b0fab374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:174-181 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1264-1271 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:233-242 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1160-1167 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1159\u0060 calls \u0060begin_replay_window\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1263\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebf89c811235557c6dfa6e4e8fa49e746de0ef497c20b3fbd25392afb9547da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:455-464 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1285-1294 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1182-1191 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1568-1577 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:455\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ab23e97794baeb3041403b54532b6230e360bcae479d95b295fd7bc61aa8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:942-950 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:952-960 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:969-978 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:997-1005 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:942\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e148098e9917b360bba1881a6e072282939e83a77c22daf50cbe02f27d9e18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:128-137 | crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:131-140 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:402-411 | crates/codegen/xai-grok-shell/src/remote/workspaces_client.rs:106-115 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/remote/conversations_client.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs:128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/chat_models_client.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab70c526448d713b0a487477599dfb8bccb899bfce9811f7a280fd98c975fee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-grok-hooks/src/env_expand.rs:216-225 | crates/codegen/xai-grok-hooks/src/runner/command.rs:605-614 | crates/codegen/xai-grok-hooks/src/runner/command.rs:647-656 \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/codegen/xai-grok-hooks/src/env_expand.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5718ba60062d730c1dcc4036b995ab46ac3cb8c66bff6d0f09c837dfbf0ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:378-387 | crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:855-864 | crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:1086-1095 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs:378\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_question_key(\u0026mut\u0060 in one and \u0060super) fn handle_plan_feedback_key(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9fa131a076b522e2cff9ae7f3460fec8c1662782c6df23ae07748a750d6969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1239-1248 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:216-225 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1144-1153 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1239\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89480e74179359c60a336f7f61be21732866267fbcd8c5796df4e08a38958c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3520-3527 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3716-3725 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4558-4565 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c5a3f5b3fa669e69ee3d90140faff67efc474159305d4250e0d6ed0a5350ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-grok-sampling-types/src/error.rs:399-408 | crates/codegen/xai-grok-sampling-types/src/error.rs:481-490 | crates/codegen/xai-grok-sampling-types/src/error.rs:504-513 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampling-types/src/error.rs:399\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/error.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d5962ae55ff70d698daed2407aee24695a1d2c354fef5f49832ec6556f7af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs:299-308 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:802-811 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:881-890 \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/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3bbd09e0e7ca6ed365d99ea6351580014c0374f2a1e09aa0ec108f8fe43819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-agent-lifecycle/src/local/registry.rs:49-58 | crates/codegen/xai-agent-lifecycle/src/send/registry.rs:45-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-agent-lifecycle/src/local/registry.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1f4c76680351a2bcf54125e75f7e79f8621ed858274a5f99890362854ed1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/bench_index.rs:46-54 | crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:195-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-codebase-graph/src/bin/bench_index.rs:54\u0060 calls \u0060stats\u0060 and \u0060crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:204\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_index.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08c95c1e2929ecdece98e481da7cd21484288deb4a63f1371a9651d0c43f257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/navigation.rs:234-243 | crates/codegen/xai-codebase-graph/src/navigation.rs:290-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/navigation.rs:234\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/navigation.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7870be604ef6a42347a86a65dddd097aedcf1d68eff8e9eadf40801db9a311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1127-1136 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1142-1151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"779ba35538aedf7ec90474adf5b20253e8b788db5cccc5cc31c5d4b4e9ffcef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-crash-handler/src/lib.rs:136-145 | crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs:505-514 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-crash-handler/src/lib.rs:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026std::path::Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/lib.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d52ba3e4859ed0327b655c5d0c7d9af705c6d976bdde6bf6f9948ab2469cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:506-516 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:730-739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f31f7b61422658c4811fcec28007b72474434b8e3cd122722bfe4ff0df8e0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-login/src/oidc/login.rs:247-257 | crates/codegen/xai-grok-login/src/oidc/login.rs:304-314 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/oidc/login.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"482153465f45c4dfb3c21a048afa57de0231c3017786313bbbe13b8cea6f60dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2941-2950 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3714-3723 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2941\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"222138b12be6c071f9c93182e24329fc08dbb007352bee61fdd956c10aad3d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager-bin/src/main.rs:68-77 | crates/codegen/xai-grok-pager-bin/src/main.rs:108-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager-bin/src/main.rs:78\u0060 calls \u0060Worktree\u0060 and \u0060crates/codegen/xai-grok-pager-bin/src/main.rs:118\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bace1fdf3ea4dc509a8955e29434b971bb9e4e46349cfd177b813f7e697e39a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager-bin/src/main.rs:2181-2190 | crates/codegen/xai-grok-pager/src/app/session_startup.rs:813-821 \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/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c1989ee7eb3951730cc1d28ba817d8251ad1872fff1198cfe5a548a329b2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:250-259 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:182-191 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs\u0060 and \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"960eebd5f81923f21896efd5781641d6baf238365787adf9f63ed53de7af9909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:458-467 | crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:490-499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:458\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cae635a248ddfbd3405d614a0ce857aaa24d95cacb1713decab87d8177eee22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs:286-293 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:549-558 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs:286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac455374f530abe49ea47a9ebcd8b66cff5c038508c751453620e73394e3bbdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/input.rs:1337-1346 | crates/codegen/xai-grok-pager/src/app/agent_view/input.rs:1352-1361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67f65928e0be83d7fa7a3e1d2858a9270e1367a0d19d2f5414c5c85cf730546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs:360-369 | crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs:394-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs:360\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b966ef2313e8a0cc39d1284b809ee108708403febb8006a4f63cd6173d097ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:3694-3703 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3736-3743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3694\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3694}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f7cf764b3c638cd87332d14cb24d5a62fa7b2ddd2ac116dd09bd0e53d07f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:4530-4539 | crates/codegen/xai-grok-pager/src/app/app_view.rs:4721-4730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":4530}}}],"partialFingerprints":{"codehealthFindingId/v1":"424a958fb200366962ab0e955e734fe6498ed63bf4711ea27b43467eba159e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:378-387 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:456-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da3e4195c07f770128ec2bb88ebaa8b9fa80da74174c02719e7e60c0b4ce7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2347-2356 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2397-2406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2347\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2853c5494c2ea88a28d08a680679438aef86325dffc13e2e467b829597cea880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:280-290 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:322-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c478972895768bc23cc4f37fb6957c5957318f9f7cce45fe579f0f07282f3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs:1390-1399 | crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs:1423-1432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs:1390\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"912893a204e91df90a7a1a3a9d20ea044590dc3c53fd0f59cb51309bbc6b7f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:16-25 | crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:579-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fafcd72b22310fe1edf8baa5eeeb6a580d4adabb4aefde4b6b561481ba3159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:294-303 | crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:367-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:292\u0060 calls \u0060has_normal_fullscreen_viewer\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs:364\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6015c9b81257b0273a43c4e0c14eb212209ab1f62a00f16e05d46630488842c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:241-249 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2418-2427 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b1e828598787350eda0c9275ab7297151307a3069c2e758b4491cda70d75b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1785-1794 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4350-4359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"30390296eb7e4f6d78771d35c7332703e0f843079ad08413a7c595ea8f556a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4095-4104 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4153-4162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4095\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4095}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6787f8241070bd7877ae99ace60955f3027a3349e811149d5d44367943b3769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/plugin_cmd.rs:910-919 | crates/codegen/xai-grok-shell/src/extensions/marketplace.rs:766-775 \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/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"cededfeb661a7391f616daa1f97c52d31b8fc17a280e551972a724ba314a6dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1790-1798 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:4267-4276 \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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd917560ac15ef854307dfb26736fdae44fa8f8c12e458a0428321b96d4c2bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2720-2729 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2737-2746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2720}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a53cfc928ab9be345597aae2bee7545ef96e44da09ae99248014c4747eccb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3620-3627 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3713-3722 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3620\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3620}}}],"partialFingerprints":{"codehealthFindingId/v1":"23610c8bff7dddf618dcbcabd5bfc25d3d4607da54c65e0f1527a64dae4a7b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:708-717 | crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:737-746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:708\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c1eb887da3f0d6eb10958068a13c0b5b0c0fb13b60d532313e132bd869cc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/picker.rs:1862-1871 | crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs:1325-1334 \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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c048f416a6e416d31a62180a21bc20ff29da6bcc3d0cb7099663161c537ff2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:1079-1088 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:1309-1317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:1079\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"3884bee59ff741244c5d2b810a7189947c0dacf700ed271feeacd158f33ae14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/actor/request_task.rs:213-222 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs:1509-1518 \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/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d35a36d8b1c61681f3d7ec1c4ee1c977a962f95758c945ca0aaa73da4a4e4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:138-146 | crates/codegen/xai-grok-shell/src/agent/app.rs:466-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:465\u0060 calls \u0060Some\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:137\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3999c888360400beb77997c6afffda06f3c4ba7b05686d3bea54d14ff85080a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:1028-1036 | crates/codegen/xai-grok-shell/src/agent/server.rs:580-589 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/app.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/server.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. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:1028\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eca7630ef14b3e0482506e8bc828b1689eeda7bf6d986d70d329f78f1b299bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:243-252 | crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:277-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/feedback_client.rs:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9ddd754b77a3233c720593d090266c994b943f3dab283a1a602a0c1bb6d95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:278-287 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:295-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3a39f02794674afad83fd17f16626bf27e01afbd3ace10e6fb0ec5ed647536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs:681-691 | crates/codegen/xai-grok-shell/src/session/worktree.rs:481-490 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs:681\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdadfdcf4253e645f00df00f1183b24d9f808e879ff8554466333878a2e2e4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/testkit/e2e.rs:50-59 | crates/codegen/xai-grok-shell/src/leader/in_process.rs:78-87 \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/codegen/xai-grok-shell/src/agent/testkit/e2e.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ada0397150dbe02c53e7f8d6deff957cb341deb18cb8e22906b348c6f411b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/consent.rs:42-51 | crates/codegen/xai-grok-shell/src/extensions/privacy.rs:43-52 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/privacy.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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/codegen/xai-grok-shell/src/extensions/consent.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f5c296aab9c623f84446daf6dd69d576955bdbffc31561e522ca87c5254c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1588-1597 | crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1656-1665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6d6f8242e858963dd7d5a6341ef48f9b5d928417d50177e45b340ac3d4f295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/pr.rs:82-91 | crates/codegen/xai-grok-shell/src/extensions/pr.rs:135-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/pr.rs:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/pr.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c28af99226193b0f77c862515b35aebf0eb66f1d6bf9c3308d1705867709d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-shell/src/plugin/mod.rs:1187-1195 | crates/codegen/xai-grok-shell/src/plugin/mod.rs:1353-1362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1cc62ecce359a998b52a50e6f94318796f7723aa081e4a55b92030bb906eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:324-333 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:566-575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c470b024728af2200743ce9591cf629d42da7a045d8c66a3ae60621365c6eaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:361-370 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:378-387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:361\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"421a9885e244c09e706d5513d9e9306ce7529656453686c1752ff2b244bcc4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:601-610 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:691-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b66ae0a018dac4e6a7513e1fa3b09c4e95395e45fea5534899fc53243531e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/interjection.rs:282-290 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:788-797 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:788\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/interjection.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2823ea649179721a1cbd36de831af0ce081f6d7192a71cf307f4ebdfea93c704"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:785-794 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs:63-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d243e4a7ecb14861812ea8d145e6e9a06725ba77147719fab59645917b4e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:466-475 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:551-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:466\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"01772d14b8da4d72ff2c0edf02fdae94c50d1f1c60ba70d92eece645c5e7d45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:206-215 | crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:239-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec2f83bbd374d5d82a1a8d94f3409f0e27bd528ce6c5ad40971eedc6ca18b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:225-234 | crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:294-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/agents_md_tracker.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ad897f71d16582ac0d8b546726696bc8fc8d89d93fda03c2d505a91f2409c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-voice/src/audio/capture.rs:74-86 | crates/codegen/xai-grok-voice/src/audio/capture.rs:136-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-voice/src/audio/capture.rs:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-voice/src/audio/capture.rs:87\u0060 calls \u0060abort\u0060 and \u0060crates/codegen/xai-grok-voice/src/audio/capture.rs:148\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/audio/capture.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3670a6516ef2be7072ec6040364996ab575ceed8f8fe71acc54617332b6ff984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/hub_server.rs:561-570 | crates/codegen/xai-grok-workspace/src/hub_server.rs:589-597 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/hub_server.rs:561\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c754458d3dfa030c7ea558f0ce8b396c854be10613f4e99b59364ef57937103f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1026-1035 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1826-1835 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1026\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8cafb990a6828ca8ce3b16ddaef90af0240d71f5ed9c397056563da7303912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1989-1998 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2308-2317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1989\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1986\u0060 calls \u0060clone\u0060 and \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2306\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0242a24032f37621b4c1d3bb9ae027a65faf213f9d89818fff91eee88cd976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2106-2115 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2375-2384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2c6f43ee0664a666a7d8db66ab3d75f19da6fd3e2a7ad92d06bad87f32d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/diff.rs:127-136 | crates/codegen/xai-hunk-tracker/src/diff.rs:311-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/diff.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f608927eecd346a20352aefe312c5c6c1258e38abd9e94e19f4ec25ea04c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-ratatui-inline/src/terminal.rs:1056-1064 | crates/codegen/xai-ratatui-inline/src/terminal.rs:1094-1103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e93ff2d4d029e1109b27be95e450a1d9eb3df188838ceaed3729f29bec3b4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:820-829 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:851-860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/textarea.rs:820\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d123bebb669b59f3895b1416beb8e28adc2c82def7f60784415cc89ac1b266bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:3007-3016 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:3039-3048 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"811418f2f5f073c44230eed802ec56dbd6743b6032bc73d9e12f487b2764dc0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2424-2432 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2578-2586 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2615-2623 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2800-2808 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2842-2850 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2883-2891 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2924-2932 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3006-3014 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3102-3110 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3163-3171 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3216-3224 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3275-3283 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3321-3329 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4911-4919 \u2014 all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2424\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"371b4f3e43ea1574d5304c73ecff9f0052da528e49e5105c1453b87a707085e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:821-829 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:837-845 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:853-861 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:869-877 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:886-894 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:905-913 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:925-933 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:946-954 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9aed12fa13fb9b18d4b732d673d36372e99198023439acce08ade50ff58cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 8): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2877-2885 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2958-2965 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3024-3031 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3082-3089 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3113-3120 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3165-3172 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3304-3311 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3460-3467 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a96e6f46dfda768bb3cde7cf78f4363ea362394ef0b929cf8864703bd01ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 6): crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs:196-203 | crates/codegen/xai-grok-pager/src/views/modal.rs:881-887 | crates/codegen/xai-grok-pager/src/views/overlay_list.rs:99-106 | crates/codegen/xai-grok-pager/src/views/permission_view.rs:446-453 | crates/codegen/xai-grok-pager/src/views/question_view.rs:1565-1573 | crates/codegen/xai-grok-pager/src/views/rewind.rs:332-339 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/modal.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/rewind.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/elicitation_view/render.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbe29c3c8e777e9741df145a76b17951a55a5f9d7d78a4658cdac71dec7e78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:142-150 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:215-223 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:250-258 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:304-312 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:224\u0060 calls \u0060Some\u0060, \u0060get\u0060, \u0060copied\u0060 and \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:313\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee07c96990cc5ed16e63ed6eed527bb1b97917c1594b5fc2c40060668298a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-pager-minimal/src/panel.rs:161-169 | crates/codegen/xai-grok-pager-minimal/src/panel.rs:212-220 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2353-2361 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2434-2442 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"09749e7013b92a066ad75a85e568a5ce21638eb53b9d6ab73873c6ab4e00a5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:1142-1150 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:726-734 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:50-58 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:192-200 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"075162667b376a6e0945a71dbb7e9c2d33faf4d930b7a93c28b99dbf789c8066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:65-72 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:85-92 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:147-155 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:169-177 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fbe16a870450b0ade73483321052a2d2f5c0da21c494ca13a7a3f48eb02eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-sampler/src/client.rs:2013-2021 | crates/codegen/xai-grok-sampler/src/client.rs:2050-2058 | crates/codegen/xai-grok-sampler/src/client.rs:2089-2097 | crates/codegen/xai-grok-sampler/src/client.rs:2122-2130 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcca3430d427815d30a11c7710d64c64c882dd9ba1df9a4316c2e2fdbf840aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:408-416 | crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:444-452 | crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:475-483 | crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:506-514 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:454\u0060 calls \u0060clone\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:516\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"595a9e694c41f690a91ca4f449853b6d8334f4273206d0e744665722fbbec0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:177-185 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:232-240 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:316-324 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:469-477 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dc1f0749f984f3b5a2f81a78bf6e49480474f44253969ac84746a4539396e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/codegen/xai-file-utils/src/gcs.rs:435-442 | crates/codegen/xai-file-utils/src/gcs.rs:558-565 | crates/codegen/xai-file-utils/src/gcs.rs:585-593 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/gcs.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c78536940818804a489c5e4104dfb566cd2e0d195d14c9bcd820e40a00590b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 3): crates/codegen/xai-grok-markdown/src/mermaid.rs:3194-3202 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3228-3232 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3253-3257 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:3194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3194}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cbb90d3610290f28828559a53354b061a1f0ebfdd40116db50ff3adfb904ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager-render/src/syntax.rs:99-107 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs:311-319 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:48-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/syntax.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/syntax.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ff2f1c8400c984eead9481cd4439a214aea9666437d0b43449decc60f18484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:92-100 | crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:94-102 | crates/codegen/xai-grok-pager-render/src/theme/tokyonight.rs:187-195 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/theme/groknight.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager-render/src/theme/groknight.rs:92\u0060 calls \u0060Rgb\u0060 and \u0060crates/codegen/xai-grok-pager-render/src/theme/grokday.rs:90\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/theme/grokday.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edc95799ea26be49536143d70f78623e41f9a74b42c5ae2391004c4131b5d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs:287-295 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:511-519 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:552-560 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d38c0c4503b0579c5cc950065cc0bdf4e0ae53ea932002a365069b7db72456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs:115-123 | crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs:185-193 | crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs:238-246 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"709bd457a1e60b3c11a96847daaa6fbb83c75f39d7e5b59b7267b8016228a08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:123-131 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:163-171 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:152-160 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb0cd8f9d1cfef742b57335f51c31feacc2b74840327afba03bff4cfd86b2c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1665-1673 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1687-1695 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1710-1718 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9c219ec6e6cf67ebde460c5265c19279977f90ef163c2c151297ae9debc7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:1083-1091 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:1107-1115 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:1137-1145 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec3a71bdeb9e9aa98f94f34cae58f24d8ebe4d1ea395735de7673ef95c181c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:1110-1118 | crates/codegen/xai-grok-sampler/src/client.rs:1496-1504 | crates/codegen/xai-grok-sampler/src/client.rs:1823-1831 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-sampler/src/client.rs:1119\u0060 calls \u0060extract_model_metadata\u0060, \u0060headers\u0060, \u0060extract_retry_after\u0060 and \u0060crates/codegen/xai-grok-sampler/src/client.rs:1505\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc3a89a423eb3deeebdc53f5ad423e3f56f0e2353bdbe946df0c4c74fe2ece2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/codegen/xai-grok-shell/src/remote/client.rs:483-490 | crates/codegen/xai-grok-shell/src/remote/client.rs:507-514 | crates/codegen/xai-grok-shell/src/remote/client.rs:577-585 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/client.rs:483\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/client.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbe40a5404c969a16b54426539fe4ede97518b39603a96eb131914f3b63da01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:396-404 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:768-776 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:496-504 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:396\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cabec451869aaacc419e65621dc3dc6699cf75dc45d3191d638f19c813ea79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2122-2130 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2373-2381 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2388-2396 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3b12f0ea6ed713dcb6120f89c937367042a9b51fe26d8cf9183e13cf6434f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/common/xai-computer-hub-sdk/src/harness.rs:888-896 | crates/common/xai-computer-hub-sdk/src/harness.rs:918-926 | crates/common/xai-computer-hub-sdk/src/harness.rs:954-962 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/harness.rs:888\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"877bcbe7fcf4613e7db68026199582b85b723d5e63551707716baccb21be89d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:67-75 | crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:77-85 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1360603d4ec7add6eedd04c9584c7c9f1c82894b8ef6e60f2559c10663e212f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:166-174 | crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:214-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"292801f1478eca1840b4b6efe9bf3092678b5e1f5a5274a5eff2b102576d301d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1001-1009 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1030-1038 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1001\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc892a2806d24000752e613fecdbcb19e4c2c1e3cb3e69a8f633e15454eef931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1239-1247 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1262-1270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f0481c63fd4028ac1e62b9c1fa5d030c5e8a82930af5c215544aa172f70699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1484-1501 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1504-1521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c400a243ea1271e55c1e77292a555aa7d18963ad34489b4ad72007bea0aa41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-file-utils/src/queue.rs:709-717 | crates/codegen/xai-file-utils/src/queue.rs:866-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:709\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8c8f054d1315854eb2024e08011b321b25f75cdd34b283cbb720baef22f39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-file-utils/src/queue.rs:2205-2213 | crates/codegen/xai-file-utils/src/queue.rs:2295-2303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:2205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-file-utils/src/queue.rs:2294\u0060 calls \u0060path\u0060 and \u0060crates/codegen/xai-file-utils/src/queue.rs:2204\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad16943274bbfc11abc5b50f267554aeb698c2cb6e93049ffa6f86396c818cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1085-1093 | crates/codegen/xai-file-utils/src/storage_client.rs:1196-1204 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1085\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b39edcc0db97f01eda04090263acc9f303e1266a41e04e69966b695b3e6f48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-agent/src/config.rs:296-304 | crates/codegen/xai-grok-agent/src/config.rs:474-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e02f7898d9bc2c099d9ee58a55a6862af3c3452584ccb897b3aa0c185d1e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/marketplace.rs:227-234 | crates/codegen/xai-grok-plugin-marketplace/src/config.rs:225-233 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/marketplace.rs:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/marketplace.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce293219f24d614430d7e55de06b4daf7de7e4ad1ba69b64377ea0523e01f4d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-bundle/src/lib.rs:167-175 | crates/codegen/xai-grok-bundle/src/lib.rs:275-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-bundle/src/lib.rs:167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-bundle/src/lib.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"20954a16b9e17249448340b679d4fdaa55fad3a788ee85e2399b7bc726de4021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-cloud-config/src/settings_fetch.rs:69-76 | crates/codegen/xai-grok-shell/src/remote/agent.rs:57-65 \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/codegen/xai-grok-cloud-config/src/settings_fetch.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddd3f7190c540d464111997232448059243251beeb0aa69069553ea275e16f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-http/src/lib.rs:321-329 | crates/codegen/xai-grok-sampler/src/shared_http/mtls.rs:189-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-http/src/lib.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"743eb9523ba4392d38fc654c48372e842402349809b029bf39b8a8ddee725a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-login/src/manager.rs:896-904 | crates/codegen/xai-grok-login/src/manager.rs:942-950 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-login/src/manager.rs:896\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-login/src/manager.rs:905\u0060 calls \u0060spawn_user_info_enrichment\u0060, \u0060clone\u0060 and \u0060crates/codegen/xai-grok-login/src/manager.rs:951\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"90315aaf8c50e04cb2f58eb2e3b19abc556836475ba4d9689c7bf518a9b9d5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex_delimiters.rs:662-670 | crates/codegen/xai-grok-markdown/src/latex_delimiters.rs:766-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/latex_delimiters.rs:662\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96e9e13c1b90da2de88c01a3f06e1c98226d7b39427fd97c22fcf26b6960489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:767-775 | crates/codegen/xai-grok-markdown/src/mermaid.rs:981-989 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaeb9aefb878b947567f2209e18f7964e4eef67a5ba3803d0fa2e7252665ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2929-2937 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3716-3724 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2929\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5a68a94c716f0e8d4d7f1b1979de830c9ab38a3fa92a6582f6049a4a267351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/render.rs:456-465 | crates/codegen/xai-grok-markdown/src/render.rs:484-492 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:456\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6120bbd3cc80334009bd6a4027494a47b25ba243c83d871443ad6687994f635d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-mcp/src/servers.rs:3323-3331 | crates/codegen/xai-grok-mcp/src/servers.rs:3372-3380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-mcp/src/servers.rs:3323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e6110786f5a6ddd2467a2da846396ad77a01bc90b20090d3f0428c88fe3fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/codegen/xai-grok-memory/src/archive.rs:17-23 | crates/codegen/xai-grok-memory/src/v2_access.rs:758-766 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/archive.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"892ea79359aff9c7c23e0a3747de88976cd0c56cc9f4efd575dd067139afedc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2.rs:873-881 | crates/codegen/xai-grok-memory/src/v2.rs:948-956 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2.rs:873\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce26e8e37b91b462fb6233f6bfe45425bb756b7a313de1bfbe6d570b56df536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager-minimal/src/panel.rs:434-442 | crates/codegen/xai-grok-pager-minimal/src/panel.rs:446-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-minimal/src/panel.rs:434\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6fc79fbe3f254ccae5176192596f1c88f538ef8db3688f51fcc347d8b4f8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager-pty-harness/src/lib.rs:381-389 | crates/codegen/xai-grok-pager-pty-harness/src/lib.rs:427-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-pty-harness/src/lib.rs:381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/lib.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb4bf1fc3b673c933b15447ff7325547c7cd6193d3c421ab30ba8b3820a5370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs:255-263 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:3206-3214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ab40d2cede0559a5bb9e553c1aa4770938e6cd0e42520e0c639d70906ce01f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs:1779-1786 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:2977-2985 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs:1779\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"506257bda25addc9a53930b7a927d8207c99d708ef9ce4828098800e5a4fa272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:966-974 | crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:1369-1377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs:966\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"6167904eeb443d527abf07b27e3584ae60f9dcdb1393eaa6d32cf5a9a2c21f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:326-334 | crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:346-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn open_url_or_show(\u0026mut\u0060 in one and \u0060crate) fn open_untrusted_url_or_show(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:336\u0060 calls \u0060try_set\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs:355\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/notices.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"006a8f1f5cb11285d549630bea44f7455513ad60750374caa81561143a2a8625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:893-909 | crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:993-1009 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:910\u0060 calls \u0060Some\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs:1010\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f7f4da80c3a706d4e0bedd543308ffb62f799f584824216cca95a778044cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3573-3581 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3616-3624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3573}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba86f8cdcf93fcd48e4cff71b813a07ff709ef4efb28d6c18de6637ed25a45ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:119-127 | crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:267-275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:276\u0060 calls \u0060cancel_line_viewer\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs:128\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca30cffcecac57f8a2f42091bad03aa931b69c90147a5e17cb5aef962c52a4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:2133-2141 | crates/codegen/xai-grok-pager/src/app/app_view.rs:2162-2170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"685891d0e202e4c0cb632fbaec5d800a55e75e4ae165432a04c69d95125a84cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:2177-2185 | crates/codegen/xai-grok-pager/src/app/app_view.rs:2195-2203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:2177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fd92e96843d0a674ea7362cb9c7b3662b7fc4008e4e4c7192358818917fbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2412-2419 | crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs:191-199 \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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e6a75d127199f1a51e45f98dadf6fb47008a6221e62be74766cb24808409da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:231-239 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:483-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d532521c19bb6211918278e5bd7fb8a98a2c0fa134d294759339a8fbc9aef6b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:348-356 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:486-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:347\u0060 calls \u0060unwrap_or_else\u0060, \u0060into\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:485\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"e657cfa8cf8825cb10e4cc83939c264a8fbf0cf799eeb9c8bbd42699ab95f727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:386-394 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1109-1117 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:1106\u0060 calls \u0060push_block\u0060, \u0060system\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:385\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"220ce69b64659a62c329379997773faa1063d2cabba3aa64979fecf3dce9c1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:114-122 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:142-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"073ffb202ed7c2af063848010b90cca0c3d6fba2dece6ecc6a12a4c9d4f09853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:251-258 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2429-2437 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/helpers.rs:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3431457914953630651cdc73153f3874cc2e40f998dc157c53a1654c8facf15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1286-1293 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1732-1740 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1732\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0339e643a3cce7fb1ac7bf3f5c550e56e7e0359ace9435e63927122cea11908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs:286-294 | crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs:312-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/subagent/lifecycle.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ef4068f476516bcc0cd0dc9e64de6c845c4a71616241ade13e1302b5b07289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/git_info.rs:285-293 | crates/codegen/xai-grok-workspace/src/session/git.rs:645-653 \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/codegen/xai-grok-pager/src/git_info.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1d56a4786453e5a1c81599f60a57d00e9529301f7d55d806cbd522062609a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/markdown_content.rs:170-178 | crates/codegen/xai-grok-pager/src/tracing.rs:108-116 \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/codegen/xai-grok-pager/src/scrollback/blocks/markdown_content.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c4aca8042a9cf208a2c2ca2d1150f1cf8fe2d0448e5b039ff30ce40ed14af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:551-559 | crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs:770-778 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs:551\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0563478c1e40b941a1e605ebed397f3101561fb0864b9d20dd42cdeec31971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1677-1685 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1722-1730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1677\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb78ad54fd61e5a0896992a793eeb6106dc481793927434e1104ed52629d7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:112-121 | crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:186-195 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.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. 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/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"76875b4aaf33205e2237d6a20803252a2e1712248f04e99838ee9f48ba61ff54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1253-1261 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1396-1404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd2d4a20775ab3f2d3f7733c0f8fecdd8b2e185c34f4faba7b55a71cdb540e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/overlay_list.rs:57-65 | crates/codegen/xai-grok-pager/src/views/rewind.rs:216-224 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/overlay_list.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/rewind.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/overlay_list.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a77ca2ba43e7fb0ee951205c5cc47821ba8519a7336570a7d1f954d81699ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/picker.rs:1125-1132 | crates/codegen/xai-grok-pager/src/views/picker.rs:1148-1156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b452e407a411351a0447be4fc6e21f27fda093cabacb62bd8960f1b2e4381c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:966-974 | crates/codegen/xai-grok-pager/src/views/todo_pane.rs:336-344 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e284b788e673be20f77478fc39ece313389a50fc0f4f16a2353870c540db16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs:89-97 | crates/codegen/xai-grok-shell/src/cli_models.rs:54-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/worktree_cmd/mod.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c1a9612536a4357108a733c41f2150940b487429023ead5d1e71c7cdce28f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:750-758 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:796-804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:750\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c74906c924299caf21007c0459375234f350245f7097c52f5bf4d773854d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/actor/request_task.rs:934-942 | crates/codegen/xai-grok-sampling-types/src/error.rs:397-405 \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/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a77641362eb40b15a06814ba7a6ce243d00bd8f60d3f987d86686845654cfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:959-967 | crates/codegen/xai-grok-sampler/src/client.rs:1327-1335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f64c4de0fe92e4766d6154b9ec3a91c0c81d0851eac407fe7db2cff8c772ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-sampling-types/src/conversation.rs:1978-1987 | crates/codegen/xai-grok-sampling-types/src/conversation.rs:2025-2034 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060conversation\u0060 to \u0060\u0026mut Vec\u003CConversationItem\u003E\u0060 in one and \u0060\u0026[ConversationItem]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"add9df07946add1a90cbcadce8021f561ca3ade9be56b8e5cb7fcc5df6e54ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:602-610 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:616-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:602\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7a0ce96fbf4af06c462c31a3196c8fe59af35fb04bddc7c4ae1ce404495439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:146-154 | crates/codegen/xai-grok-shell/src/agent/server.rs:545-553 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/app.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/server.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. 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/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebe61b3b3e6baa0efc7b6f962f4f9c769d4cc080f042939cf9443ae02c69368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:983-991 | crates/codegen/xai-grok-shell/src/agent/app.rs:997-1005 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:983\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0ccaab51b38e4e6b9b4bfe1eaefd56bd91df773aa6aadd0657330d250d3429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/handlers/session.rs:219-227 | crates/codegen/xai-grok-shell/src/extensions/review.rs:142-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/handlers/session.rs:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/session.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3113ef5be88720cd37d62213923c4d87c6be2a9537eaf7f7e05ebd9a30946124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-shell/src/config/mod.rs:1558-1566 | crates/codegen/xai-grok-shell/src/config/mod.rs:1682-1689 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/config/mod.rs:1558\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"43df5766ef61d7fbec508aad072091d69bfe5d4e7a41c0d1f91e3777aa938d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/billing.rs:194-210 | crates/codegen/xai-grok-shell/src/extensions/billing.rs:284-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/billing.rs:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/billing.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85310f922d35959974110e5204e0e751a19b9b3a0cbabdd3c35d3eb4c80f7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:260-268 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:290-298 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/code_nav.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16bbd321bc0926ab8275548bdb99c31c91f2432b7b2e1d9aeb1d2b3147da899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/plugin/mod.rs:774-782 | crates/codegen/xai-grok-shell/src/plugin/mod.rs:991-999 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"6464b321113ef0b8c23d8832a9c47018c14a5734b25b729e02ec71ddb319be25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:376-384 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:400-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:376\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccb65fbc56b8c8008ef89933b8b85319b609022eb3917589dd2f85985b557ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:2145-2153 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs:814-822 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:2145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8f74a9e7f84ac9896a10ac333af74f44e8eadfbd0e6c6c530afdd21e1fd7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:835-843 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:855-864 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs:835\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d26c44df9819829d94afc17b9d75f2e952ed846b4fd04a4593fbead5fc6a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/fork_status.rs:54-67 | crates/codegen/xai-grok-shell/src/session/resume_status.rs:100-113 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/fork_status.rs:54\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fork_status.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57f679d1eb99c49be47e6bcd4242b0c7689f319ea272141b069f8e2969a8dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:773-781 | crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs:455-463 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:773\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6e67d4f154f1022be34f9a04114092b81fe6eda67bbf7df4abe2da5d69d796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/workflow/manager.rs:665-673 | crates/codegen/xai-grok-shell/src/session/workflow/manager.rs:687-695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/manager.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86c6af8f99a02c0654c42f03a9e55f93f978645beb9fb5a57b9b2e962d1cf26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:719-727 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:764-772 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abf4f0308fde9009d0cc0a97f4242a91dd6e937330d0e0884951f972b8879e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:78-86 | crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs:83-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs:78\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceca7eb5fa9627364ce698ca3c607f981e8bfe4b084043d0af952df8da3bd8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2891-2899 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2900-2908 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8380b9322e380a973328319ac565560f7255330db4907c0c9d50a65a2d1d98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:193-201 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:207-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d438baf5e4fc6ced78b1decafd679aa08ab300bcc04a6a2ee3413dd4cbe9ee31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:560-567 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:575-583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:560\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e00336948ddeed0b29193cbd675af2bc24e04b2684f68071a0a70f270fcb32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:634-642 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:678-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:634\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5a298b858bedd5c1766b0f61a6db7dc66fe7ff84a1780cd59fb45b06b41300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/registry/types.rs:1706-1714 | crates/codegen/xai-grok-tools/src/registry/types.rs:1888-1896 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/registry/types.rs:1706\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-tools/src/registry/types.rs:1897\u0060 calls \u0060kind\u0060 and \u0060crates/codegen/xai-grok-tools/src/registry/types.rs:1715\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2a063f062193c20d3b9cc9b43c145fdc491807ad9d73a5ba294f76b8255c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/hub_server.rs:704-712 | crates/codegen/xai-grok-workspace/src/hub_server.rs:747-755 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"77de1c393820ad2187a0682ad2f4a8ba427d5ed63ccba1da5ad9be699e47d92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:2825-2843 | crates/codegen/xai-grok-workspace/src/session/git.rs:2850-2868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":2825}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d45280b7e7670b57ec6c398be68f24c2caa1ad3d0a7471f2d09d94ca5f3558b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2089-2097 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2153-2161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2089\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ba374acb06396c7ba4989e31d931f5237797d38e631f82d6db69f20a545ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-ratatui-inline/src/resize.rs:72-80 | crates/codegen/xai-ratatui-inline/src/scrollback.rs:14-22 \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/codegen/xai-ratatui-inline/src/resize.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"320826720a0c2c5b76fc124c5db3afb4414dfb55d8ffb4f24bd6042caf8d9771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-sqlite-journal/src/lib.rs:381-389 | crates/codegen/xai-sqlite-journal/src/lib.rs:402-410 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-sqlite-journal/src/lib.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ee82e1647a6e74569232e91e1fe2f90d99aa0f17adc5bb7e8275bb03ed99a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/connection.rs:1698-1715 | crates/common/xai-computer-hub-sdk/src/connection.rs:1717-1734 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"184a00a77aa199c95cdfa0d01e2cda779de0600ca31cc286e401aa7d2e4e294f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/harness.rs:457-465 | crates/common/xai-computer-hub-sdk/src/server.rs:558-566 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/common/xai-computer-hub-sdk/src/server.rs:557\u0060 calls \u0060connection_tuning\u0060 and \u0060crates/common/xai-computer-hub-sdk/src/harness.rs:456\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e51ba5d1bebe7a8ee9307eb7fb2a5beffee9d21e9f969330c3493944e93bff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 16): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2423-2430 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2466-2473 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2533-2540 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2577-2584 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2614-2621 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2799-2806 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2841-2848 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2882-2889 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2923-2930 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3005-3012 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3101-3108 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3162-3169 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3215-3222 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3274-3281 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3320-3327 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4910-4917 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaca47e60210279ba2c6b61a5bb0f463b040083e7b59dc9c59218d79d56d87c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:196-203 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:736-743 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:755-762 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:772-779 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:105-112 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:134-141 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:161-169 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:322-329 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:695-702 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:737-744 \u2014 there are 10 copies across 5 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dd46006288e6f3ce474e2c250bd62e132e535a3684574de5b47b59d7c23062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): crates/codegen/xai-file-utils/src/queue.rs:797-802 | crates/codegen/xai-file-utils/src/queue.rs:957-962 | crates/codegen/xai-file-utils/src/queue.rs:1046-1053 | crates/codegen/xai-file-utils/src/queue.rs:1181-1188 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:797\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"61694446adafc314af081fc63b26d59523bf23439ce6f2970991d7d27c9fbd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-agent/src/config.rs:261-268 | crates/codegen/xai-grok-agent/src/config.rs:392-399 | crates/codegen/xai-grok-agent/src/config.rs:471-478 | crates/codegen/xai-grok-agent/src/config.rs:499-506 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-agent/src/config.rs:269\u0060 calls \u0060wait_tasks_tool_config\u0060 and \u0060crates/codegen/xai-grok-agent/src/config.rs:400\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75020f2bd02a3211a9f9ca632b57ce7e85fdf462dff1329ac2b9d9397cd54d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 4): crates/codegen/xai-grok-markdown/src/mermaid.rs:3127-3131 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3194-3201 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3228-3232 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3253-3257 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:3127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":3127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b910b5fac34f69e3ba5ae72a6574ed3c61b2d17988d7a5e074b1ecf647eed22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1785-1794 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4350-4359 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4617-4624 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4674-4683 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6d818f78fd9affb9e78570c12674af341a4c511fbc0a6521b3e0a8b32ab3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-sampler/src/actor/request_task.rs:935-942 | crates/codegen/xai-grok-sampling-types/src/error.rs:398-405 | crates/codegen/xai-grok-sampling-types/src/error.rs:479-487 | crates/codegen/xai-grok-sampling-types/src/error.rs:502-510 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"64949386b62a90ac37736df69110377029fcc9ca35f5353714eb4557656de0ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-workspace/src/hub_server.rs:465-472 | crates/codegen/xai-grok-workspace/src/hub_server.rs:477-484 | crates/codegen/xai-grok-workspace/src/hub_server.rs:491-498 | crates/codegen/xai-grok-workspace/src/hub_server.rs:544-551 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb83bb68b0d5f7e60af0ca495af216f0da716b4be5c6196757fc90840b50162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:805-814 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:969-978 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:1173-1182 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/worktree/execute.rs:805\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"4711c5f194d23338187dc99f843e13e3add4423eb3a71b48823215a3c77c2272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:154-161 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:205-212 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:760-767 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"081ba0764d6b9111d0c1cd7f70dd3b92fe1e6bb9f0e4262b1dbbe2b2b570240e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/app_view.rs:3674-3681 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3697-3704 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3737-3744 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3682\u0060 calls \u0060matches\u0060, \u0060Action\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3745\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6a4d249af61a2f541d386e5d1043bbff9b24ccb287d4d5254b05a20f386853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1786-1794 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4351-4359 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4470-4477 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1786\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd42c35314d074882c230c52134e0ef76dcc1bae3a3a9b4771639ff7669f011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:2016-2023 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:2058-2065 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:2111-2118 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn accept_file_search_result_no_space(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a08a3d1c511d67fadd11c03332b05f09b41348c2a0f6cb0fc5e1c7d08b529a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:877-884 | crates/codegen/xai-grok-sampler/src/client.rs:1337-1344 | crates/codegen/xai-grok-sampler/src/client.rs:1694-1701 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:877\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc8ec2e4f070a6be19154b207d918ad059ca449be24a0c0080c7f2aa525055a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:961-968 | crates/codegen/xai-grok-sampler/src/client.rs:1329-1336 | crates/codegen/xai-grok-sampler/src/client.rs:1686-1693 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:961\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"82022829a27ab683756df652ac448135c3ab2b2558ce9d9362ba8b773d793b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:1138-1145 | crates/codegen/xai-grok-sampler/src/client.rs:1523-1530 | crates/codegen/xai-grok-sampler/src/client.rs:1850-1857 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-sampler/src/client.rs:1520\u0060 calls \u0060extract_model_metadata\u0060, \u0060headers\u0060, \u0060extract_retry_after\u0060 and \u0060crates/codegen/xai-grok-sampler/src/client.rs:1136\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c875048217e5ae45bf43214b3d3cf38550b1d82dd4f6a6fe356cfea3ff092c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs:888-894 | crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs:913-919 | crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs:963-970 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"552c7a018ff85cd497477c38bf3fd1719712a14eb48b4e65ee4e29457155a3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/common/xai-computer-hub-sdk/src/log_donate.rs:391-398 | crates/common/xai-computer-hub-sdk/src/metric_donate.rs:378-385 | crates/common/xai-computer-hub-sdk/src/trace_donate.rs:99-106 \u2014 before extracting anything, compare \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs\u0060 and \u0060crates/common/xai-computer-hub-sdk/src/metric_donate.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs:391\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"515bdcc348e86af66a3dab2d911c217abcdb8c6e78091d2174d65ab115a3dfdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:177-184 | crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:224-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3321cea4a23ebc9d4227f958d6fe46466c194c7c7d806d3b02b7f78f8745d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/index_manager.rs:630-637 | crates/codegen/xai-codebase-graph/src/index_manager.rs:660-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/index_manager.rs:630\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a61395b8bd71ffc8d8bc99e5afa585bff701499710c287e3ab2e1c5f2cad736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/interner.rs:208-215 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:400-407 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/interner.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/interner.rs:208\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ccc47ffbae02820ff881447eec855a3c09cb36dd9aba542ab12d87912c76b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/navigation.rs:223-231 | crates/codegen/xai-codebase-graph/src/navigation.rs:280-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/navigation.rs:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/navigation.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51865c9c2911bdb75e0db9d81e619483b67dbd11da53dd52379d48e0abbda8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:367-374 | crates/codegen/xai-crash-handler/src/handler.rs:669-676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-crash-handler/src/handler.rs:367\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b56c033876bf005d047726d25f748af68dbe3305178ccdd53d8858e34d6da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/api/gc.rs:546-553 | crates/codegen/xai-fast-worktree/src/api/gc.rs:569-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/api/gc.rs:569\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/api/gc.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"51916d67a77ab7237301307d8927b3914d6290d860c6b3480c4950a8d28bc021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:155-162 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:279-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3475a44c4e8983c08d23a2a9272e266f788526aa61c39a9f405c94239f76d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs:423-430 | crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs:456-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs:423\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/worktree_lifecycle_bench/runtime.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c922a4545aaeb4620016215fd7e2a7f24f46f3810acc92697e23f1aeea0d964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-file-utils/src/queue.rs:856-863 | crates/codegen/xai-file-utils/src/queue.rs:1034-1041 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:856\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb74dc4ef4e1ef1ad27f725ed033e65642555147059432be54bcba61b56ded2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1076-1083 | crates/codegen/xai-file-utils/src/storage_client.rs:1187-1194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1076\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce52e7a398011098819f37bbb1a059cb8f80924acca66f1c7af33fa972d4814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-config/src/fs_atomic.rs:1429-1436 | crates/codegen/xai-grok-config/src/managed_text/transaction.rs:251-258 \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/codegen/xai-grok-config/src/fs_atomic.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb6a15ae842d9988a52ff568f32480d7cddf417837ca503471825a345fe1ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-egress-proxy/src/http.rs:243-249 | crates/codegen/xai-grok-egress-proxy/src/request.rs:77-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-egress-proxy/src/http.rs:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/http.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f742f14ee53a46caa0a0b9894c87c01f194748e44b75d7f707d12acc9fd5722f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/colors.rs:268-274 | crates/codegen/xai-grok-pager-render/src/render/color.rs:27-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/colors.rs:268\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4454f0319a106b2539cb968b9989c129e5112de3f41cfa8c467217aafa9b231f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:94-101 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:114-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:103\u0060 calls \u0060from_u32\u0060 and \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:123\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"74714e2005a3f9137cb679269c8773b001b7a72933105cdda4f576390a245a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:118-125 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:131-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:118\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a5c9822bc966fa14cbd4f6adb65e22bffb37365a8f81b97ee6b8014adcbdb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:1259-1266 | crates/codegen/xai-grok-markdown/src/mermaid.rs:3441-3448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f3eccc0e336184dbf58365efd033f5196d44945c3bf5722cb091f9c6ea202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/render.rs:431-438 | crates/codegen/xai-grok-markdown/src/render.rs:856-863 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:431\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a73b5f19af9118431ef1e1132487ee514fa7ce522f5605a537bd5b3398cfd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/render.rs:466-473 | crates/codegen/xai-grok-markdown/src/render.rs:929-936 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/render.rs:466\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"92df88485bc1c768d5ceb558e6e28a4c55bea346a85e881e69017b798da54291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-mcp/src/servers.rs:711-719 | crates/codegen/xai-grok-mcp/src/servers.rs:722-730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-mcp/src/servers.rs:711\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34423bf353656fc5a9730db8f90285537e76405e60a446875c88ede551c0730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-memory/src/batch_dream_io.rs:16-23 | crates/codegen/xai-grok-memory/src/batch_dream_io.rs:163-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/batch_dream_io.rs:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/batch_dream_io.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"623878d697949136e84385926f8442d95001fd15710a42100ef09c07d153ce95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs:29-36 | crates/codegen/xai-grok-pager-render/src/render/video_overlay.rs:28-35 \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/codegen/xai-grok-pager-render/src/render/gboom_overlay.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6304f1285da0ab464919d72437274fdb59943b95119df4e0bd84a1a537110ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:357-364 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:194-201 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs\u0060 and \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f989fd6576c88df29eb8ab3b6f2e13d8e522192c992d22206763bccbe5789876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:604-611 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:332-339 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs\u0060 and \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"4956c8839043cf8802c9f642b4ad5e4cedc7c58f347dbc5ff51055bb9681cc86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/acp/tracker.rs:1038-1045 | crates/codegen/xai-grok-pager/src/acp/tracker.rs:1503-1510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"51354e137f9eb28b337837f45efd356b44b3f8a911bf858bf530da4d97e04e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3287-3294 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3853-3860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3287\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef01dcfdf40d3a45638210a997a0f08ffd5d34b5a909026042fcdfd74b04c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:170-178 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:222-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:220\u0060 calls \u0060display_mode\u0060, \u0060markdown_body_line_offset\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:169\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66d6b4047a70554ea4f4f204a0a0a63a0eb9eb337a63aa17474a13c96356ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs:91-97 | crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs:186-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2376a60fd7e05a6e49efced93c89db61123bb2fa2b57d9747a9431ac8048d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2342-2350 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2455-2463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2342\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"668451a4b6bbf1e221c6061b35c127cab33955c877d1e1089b35818799a10fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2367-2374 | crates/codegen/xai-grok-pager/src/app/dispatch/permissions.rs:155-164 \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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2367}}}],"partialFingerprints":{"codehealthFindingId/v1":"14abcd7a05b6232436ee0789680cf29a0311e9eb647128f6d4aac49be6718242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/import_claude.rs:14-21 | crates/codegen/xai-grok-pager/src/app/dispatch/import_claude.rs:75-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/import_claude.rs:14\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/import_claude.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeac4e1608d5c8cc19bd9215686f9a1f15a843ad22757a656da6d57232b43ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:403-410 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:1548-1555 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c128fed7a2fb95bb3c39f50fb5d9dad5d28735921194857c98fce2fa110a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/plugin_cmd.rs:870-877 | crates/codegen/xai-grok-shell/src/extensions/marketplace.rs:692-699 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/plugin_cmd.rs:870\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4769809b4d8fecf98874c115d8b56c61635981f08616f4726cae6db78820c083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/pty_wrap.rs:124-131 | crates/codegen/xai-grok-pager/src/pty_wrap.rs:166-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/pty_wrap.rs:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/pty_wrap.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70203f9808eb6f1c46eda6ce4c5e1971f7f00a99c28fee2c2afc863bea85c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs:57-64 | crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs:66-72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd24414222bc93ed7b1afa101f2ca56f9b24bcdb100c382d06a6d4ce719c2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:119-126 | crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:162-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/selection.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"074847c0eb383d8638273eaafec0d5558f8d89a90d7a79770c82a4ff41526f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2008-2015 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2030-2037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2008\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2c0ac5952fba2fe4cbf2e9b5cb58f45996ee7f324db41d6a9c7f23599dce0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3422-3429 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3710-3717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99fc227bbba3aaf734eefe0ab2198f47a3e1887736c402f1f53adc9af48b9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3436-3443 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3617-3624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3436}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b1a1d206398f59ffabe6693aa006439862db3cde8c0e5acbb820031b93fda3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3451-3458 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3678-3685 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3451\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3451}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be14e4a0a3bef308da81107a7198fe06cbb7f35fe0e6fad4def206cffb157d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1815-1822 | crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs:1830-1837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e89420fbb734866e513ee0ae2b04b02f8eddc49e4bb0b4453166cdd7444ac19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/persona_detail.rs:881-888 | crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:575-582 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/persona_detail.rs:881\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06e48802cf4ac325bd00a761d1923ef8316c61aebbda274117dd9ba963ebb14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/picker.rs:977-984 | crates/codegen/xai-grok-pager/src/views/picker.rs:990-997 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/picker.rs:977\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"768a6dfdfd7dfadf279f47689795f2d14bec4c857c45fe0def5dad5c587bbafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:3437-3444 | crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs:3447-3454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":3437}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd125b04fca09802592f384fc0932cd733a7350ef7f95e5c1a8c98d72e086eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/queue_pane.rs:107-115 | crates/codegen/xai-grok-pager/src/views/queue_pane.rs:143-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c943dc373da296a5a11f85fdce562167fbfbd9ec3f239ba0be6fd26c3283cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:280-287 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:899-906 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9879004a1118500f4db564240da13b8705784da5beeb29c52ddab8c0a3d1ab9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1253-1260 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1379-1386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9f23eb8b9e2f9ff69f446eb0e82e386a7c9eef6d1142a2426c679866ad4c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:114-121 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:218-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8109c85d7ea0d1d49aa864aa14eb03b5b6ac41c833a47f8824afcca1e7fe067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-sampling-types/src/provider_error.rs:212-219 | crates/codegen/xai-grok-sampling-types/src/provider_error.rs:227-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampling-types/src/provider_error.rs:212\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/provider_error.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62bd4f7ba4e4133c06af472faadcbbce666cb8631a389097eb78abe1454bdb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-session-search/src/fts.rs:521-528 | crates/codegen/xai-grok-session-search/src/fts.rs:617-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-session-search/src/fts.rs:521\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/fts.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"574054fb022b1704f4986e2b771bf3e7f98fc2185037eb4cd26b1dc6e1fd8819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:851-858 | crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:872-879 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs:851\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8ca8b433414bda411d0286b794564c5565e11b417570aa6d2ffbc991c9061c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:807-814 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs:759-766 \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/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c2b26cba5647f9935aef425dee660a8fd44450f62a076204198f4bee3e6c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/bin/chat-history-downgrade.rs:104-111 | crates/codegen/xai-grok-shell/src/bin/chat-history-downgrade.rs:113-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/bin/chat-history-downgrade.rs:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/bin/chat-history-downgrade.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27c9d6f6d33001b1c5d8027b62da73d5e113ec04a242e19abc5d73bd34fbe30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/consent.rs:77-84 | crates/codegen/xai-grok-shell/src/extensions/privacy.rs:69-76 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/privacy.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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/codegen/xai-grok-shell/src/extensions/consent.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5be707a9cfccbd0187c5fee09168174d9080a4bc611c90a28fc00f27251172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:170-177 | crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:247-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_admin.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6244960ec0426a95e2ae6d0b62013489fbc1a2817c8331dd0b0cd64df46fcce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:507-514 | crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:567-573 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_admin.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3e5328bdc8304d2c2641085cd13b7f612f96357b481c565edcec614e2a9f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_state.rs:196-203 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:706-713 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/session_state.rs:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060session_id\u0060 to \u0060\u0026str\u0060 in one and \u0060\u0026acp::SessionId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_state.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"282c9a542bd8dfeb2d0f5e31322edb589c8ab15f45654e6bcf82fdb1dfc2a2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/skills.rs:368-375 | crates/codegen/xai-grok-shell/src/extensions/skills.rs:429-436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/skills.rs:368\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d4500fcf16dea05256301efd021bbdf78812e9a82b9c09516ac8d79c8da82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/client.rs:247-254 | crates/codegen/xai-grok-shell/src/leader/client.rs:271-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/client.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e2818fd6bdd3c1c44677abe01373559d0faa9c22fdf0cf33ca4a38f8a4f20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:583-590 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs:1572-1577 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs:583\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7796cd79d5a95345ddc380be964d37c1b07c858684029ce478ac750e2e4f36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/interjection.rs:273-280 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:778-786 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/interjection.rs:273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/interjection.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"450f9fe1fecd60c9fb3fccfec06ccf9da765f3bf86f4409867876d666774d539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:434-441 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:501-508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"164d259307797d866dd16099291b591f8cf8e40aa1c87091cd456f2a07c2bdd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:398-405 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:443-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs:398\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dadce045b22b436dd9704fed97659349abb37c9beaf383516652e8ca1ebe81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/fs_watch.rs:180-186 | crates/codegen/xai-grok-workspace/src/fs_notify.rs:182-189 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/fs_watch.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/fs_notify.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"151789820b823b6142fdfa7e6a09b0dc7f613cc9d9faa8ea796b49e035fb681d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:932-939 | crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:966-973 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_tracker.rs:932\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060crate) fn budget_limit(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_tracker.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"7972a12c9639cf1d84e7fad42c8ce7f9eacaec2fb32563bce2dd2ee749d51acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1857-1864 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1872-1879 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1857\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec092ae6178287ba2df737179b735c5fecaefea3a31a50f8f72a3233d8f8e899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/mcp.rs:601-608 | crates/codegen/xai-grok-shell/src/util/config/mcp.rs:639-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/util/config/mcp.rs:601\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/mcp.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"11446b22c354c6b691a2fab0441017748f1f1a82d0c898cee71f3b94bd853a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/client.rs:276-283 | crates/codegen/xai-grok-telemetry/src/client.rs:376-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/client.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"039f0bbd72c8d5527f79a3f6100daf9e046392de3538d0f5fc5620aaaa9bf5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/external/config.rs:584-591 | crates/codegen/xai-grok-telemetry/src/external/config.rs:592-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/config.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17a33dd0e91d9172a81b307c0f2e0fecff9e62772e6c426d87c926bfd378a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:782-789 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:902-909 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:782\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:901\u0060 calls \u0060snapshot_exports\u0060 and \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:781\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"c872ba7f10736494dd08cae642cee6aee4f4767b269f4643298b6bd634724eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2149-2156 | crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:2208-2215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc76ec79d215c0b2b4048b201a0bfd98d37454811b42d771ea2afa9d508c99db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:713-720 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:749-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:713\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e72614f944efaee131818727baff9d29c9131c22de018dd92280d558fdfc05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:152-157 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:160-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:152\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"493dd10d766376151ba88954b1c6ff863bba6978a8d4bf6e8c7d5a5d4f5a479e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/registry/types.rs:1735-1742 | crates/codegen/xai-grok-tools/src/registry/types.rs:1939-1946 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"833f48713800e96519313d34d3713c75e8cfdf4a1d6808c71d06dde26b7f5f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/schema.rs:74-81 | crates/common/xai-tool-types/src/serde_lenient.rs:218-225 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/types/schema.rs\u0060 and \u0060crates/common/xai-tool-types/src/serde_lenient.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62eb35806f123511f457647f40c7394a7e8fa08c8c3aae4d85e9f2a475dab41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/schema.rs:122-129 | crates/common/xai-tool-types/src/serde_lenient.rs:205-212 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/types/schema.rs\u0060 and \u0060crates/common/xai-tool-types/src/serde_lenient.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/schema.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c555e8dfc9bc78da307ffdda1a2b6b19f8558f480b768e8ab118eda03d5d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-update/src/auto_update.rs:2054-2061 | crates/codegen/xai-grok-update/src/auto_update.rs:2162-2169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-update/src/auto_update.rs:2054\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"46040a9b248520622cc402e127b4788d13df9f1d416409fe088bab987b66350a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-voice/src/audio/capture_linux.rs:307-315 | crates/codegen/xai-grok-voice/src/audio/capture_linux.rs:353-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-voice/src/audio/capture_linux.rs:307\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/audio/capture_linux.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb47e1876527d9b347b9ab277c3d74572c2b7909ca4e9120a4a2ba6cecd69964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-workspace-daemon/src/preview_supervisor.rs:519-526 | crates/codegen/xai-grok-workspace-daemon/src/preview_supervisor.rs:620-627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace-daemon/src/preview_supervisor.rs:519\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-daemon/src/preview_supervisor.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"809dfb77ffde48120c06270b6be6eba7c057d23e3925da32d12a996557ccf3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/mcp.rs:983-990 | crates/codegen/xai-grok-workspace/src/mcp.rs:1217-1227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/mcp.rs:983\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/mcp.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6ae3e8076a751ac63bb730a3e1eae73ca47781e1dd3fd075fea62de7a9ffd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1979-1986 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2300-2307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1987\u0060 calls \u0060clone\u0060 and \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:2308\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b477339eecf20de90cca3b6424c296ba75f3721825cf89384c2459fb90f7f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:82-88 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:126-132 | crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:195-201 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:735-741 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:754-760 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:771-777 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:104-110 | crates/codegen/xai-grok-pager/src/app/dispatch/session/modal.rs:133-139 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:160-166 | crates/codegen/xai-grok-pager/src/app/dispatch/status.rs:321-327 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:694-700 | crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs:736-742 \u2014 there are 12 copies across 5 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 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:89\u0060 calls \u0060show_toast\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs:202\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/rewind.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"90037388f22b3c15b652c2fd615da92c2b58dde4a5b4d281f9f8a7bb7ca2916c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:821-827 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:837-843 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:853-859 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:869-875 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:886-892 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:905-911 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:925-931 | crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:946-952 | crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:147-153 \u2014 there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:821\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:154\u0060 calls \u0060show_toast\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/router.rs:828\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd275a2c9dff746d5e9434fdd21d6cd9492c021962fc8a4ff4c67ced0fe5e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codegen/xai-grok-agent/src/config.rs:271-277 | crates/codegen/xai-grok-agent/src/config.rs:401-407 | crates/codegen/xai-grok-agent/src/config.rs:479-485 | crates/codegen/xai-grok-agent/src/config.rs:509-515 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-agent/src/config.rs:269\u0060 calls \u0060wait_tasks_tool_config\u0060 and \u0060crates/codegen/xai-grok-agent/src/config.rs:399\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/config.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1bfbd308250deef62b55fc21c89c72bdba9f1445ac3551945801281176e270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2066-2072 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2123-2129 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2180-2186 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2240-2246 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ff2ff77ffa59593794e5717e7f26b2f8d9f9a0c86de4a6628ae7f7def09a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1481-1487 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1501-1507 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1541-1547 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1481\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"6469b6fcafe3fa1347f1a4726afca57106e8cc446ecaa8e313171d7c54bb5bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:96-102 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:116-122 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:129-135 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:103\u0060 calls \u0060from_u32\u0060 and \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:123\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"318408a8e4f4b74f1f8a994c4c94894be2c939dac21442c07c5dfe3bf786c39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs:1778-1784 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:2832-2838 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:2976-2983 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5a3a536194239ed1bff00ad9c3c06e53dd4f7f00318d9556632d24cbec0caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:1781-1790 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3279-3293 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3845-3859 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3b5d9d8e1b524b806ebbd64810dd641df36e3812e34dd03fcf69f80b1b751d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1675-1683 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1697-1705 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1720-1728 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a84357c45369dd3157db41c0ba64fb17565fbe5955a92c1d539ee4b4ca20ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-shared/src/clipboard.rs:840-846 | crates/codegen/xai-grok-voice/src/audio/capture_linux.rs:238-246 | crates/codegen/xai-grok-voice/src/audio/capture_subprocess.rs:75-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shared/src/clipboard.rs:840\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a200326644abe7d9560636a98ac73105b8dc0bbbea12d494a2481e3a24c664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:324-330 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:566-572 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs:376-382 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"949378b6d257b2f45caa927bad118ea8b50a2998f93204b31652aaa1489e2b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/workflow/registry.rs:461-467 | crates/codegen/xai-grok-shell/src/session/workflow/store.rs:327-333 | crates/codegen/xai-workflow/src/journal.rs:273-279 \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/codegen/xai-grok-shell/src/session/workflow/registry.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efd18094591d8501bd86d86652c24af1bce7c0e087cf8dc42c4bc1e64cc6c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:324-330 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:712-718 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:294-300 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"57691b91aa06d8e30e68fb02d373f833eaef4d25017e0220a32b137c50ad624f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:715-721 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:727-733 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:751-757 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator/active_message.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce08992a262e8896f914c2cf9c648f9fee7f6886c2445ae96acd4307ec617db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-chat-state/src/actor/mutations.rs:258-264 | crates/codegen/xai-chat-state/src/actor/mutations.rs:321-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-chat-state/src/actor/mutations.rs:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn push_message(\u0026mut\u0060 in one and \u0060super) fn push_user_message_with_repair_reason( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/mutations.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"433351b818d4aa5c15af35820f9dbe8090589dd61b1502e12e9f0598bc51bc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-chat-state/src/compaction_utils.rs:250-256 | crates/common/xai-grok-compaction/src/intra_compaction/fit.rs:431-437 \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/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2df5199bd9bae7f8f606b425388e350d2787ee71c04bd0fedd9b76b4deacbb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1025-1031 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1067-1073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1025\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42688e66ad9f23f08fe0aea2194c3290b8a7b62374d10d37497d4a9dcf764d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1580-1586 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1587-1593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"8600cb8cd22510df7f2490c4353bd38ec1fd623ee4016aa931d65c336cb9a5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:152-159 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:307-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"862a774e9a6c322f0828289415030c3d4903c999f52fbd855ce66310ba0012f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/mount_info.rs:102-110 | crates/codegen/xai-fast-worktree/src/mount_info.rs:125-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/mount_info.rs:102\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/mount_info.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c5c703f3138af637a08863d8c2cfa4d6159b4c49d8cbd2d184450792f9235d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-config/src/global_hook_sources.rs:147-154 | crates/codegen/xai-grok-config/src/global_hook_sources.rs:217-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-config/src/global_hook_sources.rs:147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/global_hook_sources.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dd45ed87d5540384879d08033b07e065e2b43a345593951b40b411fd909a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/runner/http.rs:103-109 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/ssrf.rs:140-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/runner/http.rs:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/http.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adeef15a9e920a6dc823eb66d54063baaccb8326268c59c6cb92eb9c5c52687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-mcp/src/servers.rs:4364-4370 | crates/codegen/xai-grok-shell/src/session/mcp_descriptors.rs:127-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-mcp/src/servers.rs:4364\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca66e06d14428aceb6f69eafb1ca68854b7f1e6fc670c999d302f54401d05d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/codegen/xai-grok-memory/src/index.rs:523-529 | crates/codegen/xai-grok-memory/src/index.rs:743-748 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/index.rs:523\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/index.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b87d6d6a8c59db415c97a63b1627e63f78aabee6c97046f0f598480a535d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/media.rs:360-366 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:4165-4171 \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/codegen/xai-grok-pager/src/app/agent_view/media.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"db207630eff7c7c3fa6f6fb4721bcbef36ed96a857149c93415d0bfd97e40735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3867-3873 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3895-3901 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb8dfe6aac499288f74362b6354668f681fcc619b49cebce2008857f490b966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:194-200 | crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:235-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs:194\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"24406daf391edd2a6e3ba4995fc0332ed81d0b603fae52814b2c314a911d2dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1804-1810 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs:978-984 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1804\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf58247ea9307b3b8b2ce1fa4bb8991c54762c12c92461151517941bec6f225d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/diagnostics/probes/mod.rs:192-198 | crates/codegen/xai-grok-pager/src/diagnostics/probes/mod.rs:357-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/probes/mod.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be3a1223ab2c61336014e2de466b47a7b1da815a1aa14afa2d366be57b01e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/git_info.rs:207-213 | crates/codegen/xai-grok-workspace/src/session/git.rs:666-672 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/git_info.rs:207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/git_info.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4737fd5d4322a3ea2191e52f8ea3ffdd5f58a4f780efc4f19594a93f7badfab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:760-766 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:780-786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67fa647587ebf6d4b2ec0ee1b684fde14449e907659567db54eb3713bc1ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:168-174 | crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:302-309 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:310\u0060 calls \u0060map_or\u0060, \u0060fg\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:175\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d85eca3afaccc32e65f29d039eefeb32728bcf805a55eac6945037c24e6bf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:4233-4239 | crates/codegen/xai-grok-pager/src/views/goal_detail.rs:433-439 \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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":4233}}}],"partialFingerprints":{"codehealthFindingId/v1":"61906ec4995b5bcd6bf27e8f2265b627923714c61462045ff5ffa34925a3038f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:660-666 | crates/codegen/xai-grok-pager/src/views/welcome/menu.rs:83-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac708e17130cf2eb06fd3db94ac05c3bf753481374ef9fb7335e1ad74cc75d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:895-902 | crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:1710-1717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs:895\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e671fc9a161c9f6e2121a2ff4f774ffbb7e58904b2f1da220a40aa5fb97c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:551-557 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1638-1644 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs:551\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/hero_box.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbf30ce01c42359ab1e5483c8b3446c1452d6b1f99c984586ebac4891606526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/config.rs:83-89 | crates/codegen/xai-grok-plugin-marketplace/src/config.rs:154-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/config.rs:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/config.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"103f40dd1718245a19d58dc4aae840e84653ee8b150bbeb54bf7dbe26399af78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/config.rs:222-228 | crates/codegen/xai-grok-plugin-marketplace/src/config.rs:245-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-plugin-marketplace/src/config.rs:222\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/config.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf64d42982d14bd1b2ad37ae145555fd0a21dba8a0f3f95a368705ff5baaebb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1694-1700 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1818-1824 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"459067f934a10ae89ffb39a25f1232e14b7b4b5405ffb7f2730d02147f9369fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:3777-3783 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:2149-2155 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs:3777\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":3777}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2532aa0dd3320bb2a2d3a03f3e5073ad1aab66dacd5c0616e5bdf79273e6c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:120-126 | crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:213-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_admin.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9c761b28de364df38496bea403650430608897bcc2e922a6daf3e4fd6aeda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:614-620 | crates/codegen/xai-grok-shell/src/extensions/session_admin.rs:672-678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_admin.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68c2540be9da600fdcac195c4e5ed4f184a1e300187679176f733b9b86eb6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/worktree.rs:181-187 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:237-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/worktree.rs:181\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee55498f2a6fbb67b16ec598c9783b94c102a5c38cb80fae214f60496f32b20c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/external/redact.rs:133-139 | crates/codegen/xai-grok-telemetry/src/external/redact.rs:223-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-telemetry/src/external/redact.rs:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/redact.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e5c7418549ca4a3db8f9eae15888f18c0418267e87023e31d4b93aa115d925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:430-436 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:526-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"31276b42f1d57796a1441476b8aa153cc0b75fba13cf00291c44320da21fcde1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/storage.rs:141-149 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/artifact.rs:115-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/storage.rs:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/storage.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9679da228528e55ac415d77472f845f531d6c914a2334a1d05c2e22c5241302d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:324-330 | crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:349-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295baa5e0bf1dd7847ec10122ba6e8e2d04da3a69eb20526c88b1a983f77ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:273-279 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:299-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs:273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/listing.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1593c7abc50ddbd733edf113eff6c8bfce03b6a755fc2c75f15d20e2a3334960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:409-415 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:448-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"de96ce12ad6774532ce1ee06b446b68ae5313d4cf6fbf2f6c777259515cd82db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-update/src/auto_update.rs:1275-1281 | crates/codegen/xai-grok-update/src/auto_update.rs:1310-1316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-update/src/auto_update.rs:1275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-update/src/auto_update.rs:1282\u0060 calls \u0060inc\u0060 and \u0060crates/codegen/xai-grok-update/src/auto_update.rs:1317\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f746577693cd8b1f14c95c9854213dab3e0676741165746641608f6b131bb5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:157-162 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:225-230 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:260-265 | crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:311-316 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/btrfs/detect.rs:157\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/btrfs/detect.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e41124883afa31ea3975895d60227b99b1c030ddf078b6285d46bde4a8ed85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1246-1251 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1323-1328 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:1347-1352 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"034146d94fb2707b231e49a098a9221ed87d0c3ddab69e294b088964b0dae120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1587-1592 | crates/codegen/xai-grok-shell/src/extensions/mcp.rs:1655-1660 | crates/codegen/xai-grok-shell/src/extensions/mcp.rs:2164-2169 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0c307f6a8cace5800fd88cc35c72663dd475262035adc08609ae62402e9111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:555-560 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:1840-1846 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:2196-2201 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs:555\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_file_input.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9199f3457f0cdaaa64082ce1027112e0fd5bc745d0edd17e2b821c6f50f29990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:56-62 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:74-80 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:114-120 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20b2152f0911c7ecf5f5ed39c414c3603ee89dc5610ee5125deb31f6a54821c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-acp-lib/src/gateway.rs:171-176 | crates/codegen/xai-acp-lib/src/gateway.rs:233-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-acp-lib/src/gateway.rs:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ab0684312ada7e6c8fd83e015c67957056d6c3d2a59da1e3b09a6392483d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1030-1035 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1041-1046 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1030\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"035ae108691d753d73ae1dace2d5381c8e742b7bd5a665937a051d4127b34f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1082-1089 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1095-1102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"412f5586f266f970374887039d69d15a3157b50f7ff89c2190bf5b7872090907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:660-665 | crates/codegen/xai-crash-handler/src/handler.rs:676-681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9341f9867acc51aa421c2fdbfc96ae1f80ed6eba96109d0d8ad0ca3d77d27da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:608-614 | crates/codegen/xai-file-utils/src/storage_client.rs:659-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:608\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b50e629c4648cc71560aa42c734dd8aaa7b299e735e83c74d34932dbdcb8a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-config/src/compat.rs:254-259 | crates/codegen/xai-grok-config/src/compat.rs:373-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/compat.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d7edd2eec8328fd4c77eea2eff1aef8d33ddcbca8ddf71c29e044aaab0c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-config/src/managed_text/format.rs:207-212 | crates/codegen/xai-grok-config/src/managed_text/format.rs:221-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_text/format.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8da530a7aebdab98a650bae51d5ab3f1784ceabff868de2f051f494d2b3877b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-egress-proxy/src/http.rs:187-192 | crates/codegen/xai-grok-egress-proxy/src/request.rs:50-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-egress-proxy/src/http.rs:187\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/http.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e108dc8ed5168f41263517c3759da5267c709e4c524465aa9bce055ed7897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-egress-proxy/src/request.rs:183-189 | crates/codegen/xai-grok-egress-proxy/src/tls.rs:21-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-egress-proxy/src/request.rs:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-egress-proxy/src/request.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ce86f777a4bc2ac23fa0b00dd6a892a10592e0ae0aa5a89f1b5e5372d21a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-gboom/src/assets.rs:132-137 | crates/codegen/xai-grok-gboom/src/assets.rs:187-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-gboom/src/assets.rs:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/assets.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"805b350af1e130d590788c8d411f802daba9841a3648df5c3df74764bafdcc06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/colors.rs:256-261 | crates/codegen/xai-grok-pager-render/src/render/color.rs:13-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/colors.rs:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b2168509e915dc13ef856ba229ade67373abf35aa64f3a3ab30ebd020c34a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:1625-1630 | crates/codegen/xai-grok-markdown/src/mermaid.rs:1641-1646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:1625\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c650486c5453c72776fef2872f1fa8b7ccf164ac4e4e10be40bbd12f6b47e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-memory/src/index.rs:463-468 | crates/codegen/xai-grok-memory/src/index.rs:484-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/index.rs:463\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/index.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ece96d9f6dd7b88b32b53d2bcdb33d19020cd5ab3dd0a7b1ab831f9854069f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_consolidation.rs:371-376 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:497-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_consolidation.rs:371\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_consolidation.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c409a5a724afb8566bf39ca04a917b08a1928ea3e70484eb62f662d093b5c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/bidi.rs:484-489 | crates/codegen/xai-grok-pager-render/src/render/bidi.rs:513-518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/bidi.rs:484\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5b17f57ef85bf33494735107e1c949bf8635dece20e8f36bf813851c108f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:368-373 | crates/codegen/xai-ratatui-textarea/src/wrapping.rs:204-209 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs\u0060 and \u0060crates/codegen/xai-ratatui-textarea/src/wrapping.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-render/src/render/wrapping.rs:368\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/wrapping.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"701fd07d7d45be5999b332f34c9226922cb6d293a024a9ac39304aad44022afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:389-395 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:400-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:389\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ea8f075b090382bf948c5641caabcce1271dfa14dfcf822b615717425bf9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3314-3319 | crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3328-3333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44d96fa600f0f3a17db7c68c199354e6505306a2a5af1c8b50adc3b2f5ce157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3742-3747 | crates/codegen/xai-grok-pager/src/views/picker.rs:680-686 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/agent_view/render.rs:3742\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":3742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0a280ba458bd5614ff9c1277a3575ff17af4c37dbd6d7b9865a1b151939e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:1853-1858 | crates/codegen/xai-grok-pager/src/app/app_view.rs:2131-2136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:1853\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da9a28e3580113e963fb6c414d65b7c81538c0f3aca277981a1adfb11aa5023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:3774-3779 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3895-3900 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3774\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3774}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ddad0859d788809bbe8f6b6507d95a69d5ec26aad5b763abee2097c042b72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:293-298 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:425-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc4ab5f791018e94ac346520c062ce7a0a11f8aedd8d2bd341f2185a8a8d530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:326-331 | crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:484-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b784dbd78f013e075f3b1de3e86a7675264a107423c6237083b2cbebeddd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3722-3731 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:5242-5247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3722\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3722}}}],"partialFingerprints":{"codehealthFindingId/v1":"4068e46c8fbbb3fd984cfbc14306e20ba01fcd29142f25ba0188e66dd4c6f481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:2468-2473 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:2497-2502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/agents_modal.rs:2468\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":2468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f18c3a69f0f1879e049fcbf43fa945a24bae764543429c38986c90b04a548da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs:368-373 | crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs:543-548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs:368\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"29889eecf6178f9e8bd41cbfc168a4cc55906694fb6ebfb764d2f5a017d31c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs:418-423 | crates/codegen/xai-grok-pager/src/views/dashboard/render.rs:2191-2196 \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/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c6954f67c856b37a18492b106940d18469eba5ec294951db0402cce75e715f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2655-2660 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:2666-2671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbff19db2cc720fb642aaf9e4c2061c82ccc1bc22f4017d14fdbd116ebb0b394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3404-3409 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3584-3589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3404}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fcdbdef4c911f9f2945bb3ecae73ec3ddb7098d98e4f9dc581c76b5f6659ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3425-3430 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3439-3444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:3425\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"175215a6a2e77af0365581b567918fa14b55836250e197392c92f41da4ff3499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/modal_window.rs:458-463 | crates/codegen/xai-grok-pager/src/views/modal_window.rs:640-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/modal_window.rs:458\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"765b5084e24101331b500512a319bd1c469421e77820d3ad7fe121aa829fa8a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tutorial.rs:180-185 | crates/codegen/xai-grok-pager/src/views/tutorial.rs:244-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/tutorial.rs:180\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tutorial.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb5d3e8c95c516a1f2283079cc2cd52341156a676f141021fe3b847c42a5eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1392-1397 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1483-1488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1392\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c8e5171e2c5fe24792bc692279e6b65afefb99ee40cb867738824a60db6ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shared/src/clipboard.rs:927-932 | crates/codegen/xai-grok-shared/src/clipboard.rs:1618-1624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shared/src/clipboard.rs:927\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shared/src/clipboard.rs:934\u0060 calls \u0060from_secs\u0060 and \u0060crates/codegen/xai-grok-shared/src/clipboard.rs:1626\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd17d4a3bdbab355d0ff5a0875dccd7d2c4fe1c9134263b18094f7ec6ee224a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:395-400 | crates/codegen/xai-grok-shell/src/agent/app.rs:779-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d54925899a484bdea386dc57d2be27805c18d90aa7ca8f87576d2649787ac61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/remote_config/manager/mod.rs:1345-1350 | crates/codegen/xai-grok-shell/src/agent/remote_config/manager/mod.rs:1359-1364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/remote_config/manager/mod.rs:1365\u0060 calls \u0060read\u0060, \u0060clone\u0060, \u0060as_ref\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/remote_config/manager/mod.rs:1351\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/remote_config/manager/mod.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d362322a140b41f763620fe0556e60e43ff8b1e792280360919980e082b63fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/consent.rs:69-75 | crates/codegen/xai-grok-shell/src/extensions/privacy.rs:61-67 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/privacy.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/consent.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"de94b450afe40fb0366d49e85ef1fc8d452f65453c13737990510291e4db25bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/session_updates.rs:244-250 | crates/codegen/xai-grok-shell/src/extensions/session_updates.rs:476-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdd0fff9a2edce346a322008ccc4e1181b01ef56ab27751e7aea7633656be4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/server.rs:1718-1723 | crates/codegen/xai-grok-shell/src/leader/server.rs:2586-2591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/leader/server.rs:1718\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98b8b5bfdec3f93446d607b56837e79ca086c0b76d1d0481d3f899f0a891e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:419-424 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:544-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:419\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"8918e3110fde01cfa20a324f485ba6a7375f82ed05554ce2136b47f51775365f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:734-739 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs:818-826 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"755d6b3bfc4f46f057eb05f82cd437ae3cc0c4855f1ccf1a225e352179dfd8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/mod.rs:2113-2119 | crates/codegen/xai-grok-shell/src/session/storage/search_content.rs:132-137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/storage/mod.rs:2113\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/mod.rs"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"485544aa81dfd60b379d7b9d9f2fa5bcd49a502cfb0948366277b2f7772633de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/client.rs:294-299 | crates/codegen/xai-grok-telemetry/src/client.rs:397-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/client.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e883659e8769f2bb6d66de24b443477d2ffae4c9fe7d29d183ea89e04b7f1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:791-796 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:913-921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:791\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"91df0837e1333c888f7de5bd22c06958c479697000eef6d8183322351a2e2f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:623-628 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/versions/legacy_0_4_10.rs:54-59 \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/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87abaecd4ca2564aea85b886de354d5d0de8064c65d5491c7934a3396b658a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:646-651 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:694-699 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:646\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58786a84b705982ff889573510af41823a9b44a43a59913227c5acb48af7245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:295-301 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:333-338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f87ff8a0ea7774a3fc8fe484657b529a5c79a783bc9bbcb9d3b597710cb232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:417-422 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:481-486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d316aa8af7fdbee2aac4a9e8dc1820865180ff3ddc7e72c9a4f1e36d51b092d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-update/src/version.rs:186-191 | crates/codegen/xai-grok-update/src/version.rs:242-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-update/src/version.rs:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95465fbae9ef8c6cb7cf1a72afc6171635719105213ce88df6c3ca47c1b679d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs:135-140 | crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs:175-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc4cc2dacd095ed35222410aa2f263b1c55e318fc0f57e5a73a15d1f033d653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/handle.rs:1907-1912 | crates/codegen/xai-grok-workspace/src/handle.rs:1924-1929 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21639afcc7f58b839d792a12c67f4a6c045327d551fa88c0d26268a773cd446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/actor/git.rs:250-255 | crates/codegen/xai-hunk-tracker/src/actor/git.rs:413-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-hunk-tracker/src/actor/git.rs:250\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"161066ae2072d5c8493ced7db80e2862e97e73219b611494c579bab617596467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/harness.rs:536-541 | crates/common/xai-computer-hub-sdk/src/harness.rs:895-900 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/harness.rs:536\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"32766921fb9a2a95bd3e1e2517e4a90ec092f9c558640dfad2629c6377b120b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/codegen/xai-grok-shell/src/remote/client.rs:483-488 | crates/codegen/xai-grok-shell/src/remote/client.rs:507-512 | crates/codegen/xai-grok-shell/src/remote/client.rs:520-524 | crates/codegen/xai-grok-shell/src/remote/client.rs:563-567 | crates/codegen/xai-grok-shell/src/remote/client.rs:577-582 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/client.rs:483\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/client.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a2e8971f188b07c19a7800b1b8b695a0b1f296266e703fca8c6a01df1ac074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:192-198 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:220-226 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:249-255 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:279-285 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/code_nav.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd7f7a3446202f7fdff3d033e9c0dafddadd165f8f4f066872ef0283dcf87a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codegen/xai-file-utils/src/queue.rs:713-717 | crates/codegen/xai-file-utils/src/queue.rs:799-803 | crates/codegen/xai-file-utils/src/queue.rs:870-874 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:713\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"b447faf949997e1b4c142eb412616651fdbd64a2d09818629cc65718814570de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codegen/xai-grok-gboom/src/assets.rs:133-137 | crates/codegen/xai-grok-gboom/src/assets.rs:158-162 | crates/codegen/xai-grok-gboom/src/assets.rs:188-192 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-gboom/src/assets.rs:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/assets.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b29d5bf23bd0d08b96250e83fc6f4131e55347ae7f536647a070da4870ba4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1320-1324 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1330-1334 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:1340-1344 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7288c9e590dfe01c1306375d3082790fee6e2f362b01b37110dc81f9558d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2339-2345 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2389-2395 | crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2452-2458 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs:2339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d680574b60f82cf4ca9aa4a630a587d403c12d16bf27965a5b99decd457c4246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:294-298 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:420-424 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:545-549 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"5089dbacc2291faafd2c2011ba73fc15fe817c2ddf69462fba594802366fafaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:650-654 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:675-679 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs:703-707 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b86ed9ada1cd8a702a91ceb14c65bb00d142669d7aecc3fceca754aa1c55ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/session/git.rs:220-225 | crates/codegen/xai-grok-workspace/src/session/git.rs:2824-2829 | crates/codegen/xai-grok-workspace/src/session/git.rs:2849-2854 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:2830\u0060 calls \u0060env\u0060 and \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:226\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"758f8abde60813ce07a12a91d9d48d8a0264c051b8929be157c93c83d3135668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-chat-state/src/compaction_utils.rs:389-395 | crates/codegen/xai-chat-state/src/compaction_utils.rs:416-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-chat-state/src/compaction_utils.rs:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4af361d39e371c8f93f2f58356ea0588c5f2d559ed49d42f64f7634c6674ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:15-20 | crates/codegen/xai-codebase-graph/src/bin/bench_index.rs:15-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdad25427cf48286cff466f1ff5895e334390c678e2b8eabbccc9400bf468aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:998-1002 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1124-1128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:998\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"979e12ccef28ef4687a6afbf6d0288d418764018a5d1fd1e01bd2b621170537e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1009-1013 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1139-1143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1009\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac8495600d017d50e184fdba0abf3f86725ff64c774533f99e0fa75b4c7a402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1390-1396 | crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1401-1407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs:1390\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e2f214e278a5b716131c9591ceca439a985045152e7d54803376840f842013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-crash-handler/src/handler.rs:357-362 | crates/codegen/xai-crash-handler/src/handler.rs:374-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-crash-handler/src/handler.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f600a21ac2de28204ff5a08a47046e7ebd1d905ccc98bb218da481417ff0491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:734-738 | crates/codegen/xai-file-utils/src/storage_client.rs:870-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:734\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b70a19e47fc0ad5bac4a9cd1ee001bbc3c4e819246f27cdfb1c8e639f583a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/registry.rs:454-460 | crates/codegen/xai-grok-agent/src/plugins/registry.rs:466-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/registry.rs:454\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a677fc466f6400e17f68fd14dcff3593e1a43bd11d4bc222a9a000555c3006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-config/src/endpoints.rs:262-269 | crates/codegen/xai-grok-telemetry/src/external/config.rs:223-230 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/endpoints.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48186176d1b6201306ff87f2be87c5f6aebc7e05758f30dd49c65b26a7d10fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-login/src/manager.rs:1982-1986 | crates/codegen/xai-grok-workspace/src/sandbox/mod.rs:301-305 \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/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f1d27984d23437aa4cc56c078348c255257b1a3e2eebf1a081f14b025c2881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-login/src/oidc/protocol.rs:512-516 | crates/codegen/xai-grok-shell/src/extensions/consent.rs:73-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-login/src/oidc/protocol.rs:512\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/oidc/protocol.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5b58e8bf34625bc9dded29da1e485ddefb20196b83303b70879703f8c4c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/latex/symbols.rs:101-106 | crates/codegen/xai-grok-markdown/src/latex/symbols.rs:142-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/latex/symbols.rs:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/latex/symbols.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4765e834406c6ddbc11c5f27e64ed8874cdbf87e9f711fa1a8e7418e4817f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-markdown/src/mermaid.rs:2402-2407 | crates/codegen/xai-grok-markdown/src/mermaid.rs:2576-2581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2402\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2582\u0060 calls \u0060Some\u0060, \u0060get\u0060 and \u0060crates/codegen/xai-grok-markdown/src/mermaid.rs:2408\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c295703341b437d12bb100f51b205d8585986de5ba0194e3130e199e0ad65ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_access.rs:240-244 | crates/codegen/xai-grok-memory/src/v2_access.rs:453-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_access.rs:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_access.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"68179897093831cb22678cc0b3a463475edbd892af8ffa636ab91d1e1bc6bced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_maintenance.rs:203-207 | crates/codegen/xai-grok-memory/src/v2_maintenance.rs:233-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_maintenance.rs:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_maintenance.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a5de9a9b15339e15b9a71047d6c8512d540b969427a8f3891c6e38e32ec3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/input/key.rs:177-181 | crates/codegen/xai-grok-pager-render/src/input/key.rs:218-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/input/key.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27923cd48ed3d0d64e4fc4713e79588d2c3d1f90411916abacac7c1eec04e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/render/bidi.rs:248-252 | crates/codegen/xai-grok-pager-render/src/render/bidi.rs:307-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5a12dbad948136c62ecf47aaad3845a0fc7f6d72bdcd3fde7e0e42d6b4e5e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/app_view.rs:3196-3200 | crates/codegen/xai-grok-pager/src/app/app_view.rs:3239-3243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/app_view.rs:3196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6979e59d5f3b76fa4c7aad38a03506309809257e7e2c10d0d22e993f9537285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:1176-1181 | crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs:1366-1371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4234ead4aa9de1ddaa08758bf7620c6f7662a186561ee6de305c20a4f458cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/render.rs:637-641 | crates/codegen/xai-grok-pager/src/views/btw_overlay.rs:441-445 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/scrollback/render.rs:637\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-pager/src/scrollback/render.rs:635\u0060 calls \u0060filter\u0060, \u0060is_none\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/btw_overlay.rs:439\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7629d91e3cc25f798b9aef136c6a677645729dc6e85a60607245a4e5424955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:99-104 | crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:81-85 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.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. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5ac29dee91ae378e2cc8da52c4c4f0fa144e287810019972f580282c3f13ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:175-182 | crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs:315-319 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/views/slash_dropdown.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. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d27eb11ce5bfcdd9b4dc33240571b0067ac2ce5c9fc7f39de266e268447ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2349-2354 | crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:3331-3336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/extensions_modal.rs:2349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"983c78c287ed54c52c03f98f213c979e6ab93ef205dd7658e0097d2330a24a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/persona_detail.rs:449-454 | crates/codegen/xai-grok-pager/src/views/persona_detail.rs:541-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/persona_detail.rs:449\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f338b6adec8f7610da5e17d3acd962557c2c365ee698284e82ca197af20b9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1351-1355 | crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1478-1482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/tasks_pane.rs:1351\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c92033d87e658f71e20a877a284a7c971f7dd87d79c00965cc7aa4b938dca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-plugin-marketplace/src/matcher.rs:90-96 | crates/codegen/xai-grok-plugin-marketplace/src/matcher.rs:98-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/matcher.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ab4791c53e25360f2fd6b04099f97d8d1d636f35a47567490fd3ca1658a023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs:48-53 | crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs:307-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"97edfa17fe3463433e33bf71b9f73909fee72bea404d10edb6ebdb1d53965539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/bundle.rs:263-267 | crates/codegen/xai-grok-shell/src/extensions/bundle.rs:293-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/codegen/xai-grok-shell/src/extensions/bundle.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6116b9b46587744df2366251c38bac14b6be2de44aa7b1aa05e616b1639580d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/server.rs:691-695 | crates/codegen/xai-grok-shell/src/leader/server.rs:780-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/leader/server.rs:691\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060json\u0060 to \u0060\u0026serde_json::Value\u0060 in one and \u0060\u0026mut serde_json::Value\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d813bf64df82f14365e548e6149711ce2a5238f4578f98574b7d358b7515c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/client.rs:94-100 | crates/codegen/xai-grok-shell/src/remote/client.rs:563-567 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/client.rs:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/client.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bde44f9d761cf74ac4a73240d90891c3b64529c1d2ccfb1ae0968dc7179e440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/sync.rs:233-237 | crates/codegen/xai-grok-shell/src/remote/sync.rs:243-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/sync.rs:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/sync.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb284ef59085dfc26552152366e70ef78ed432494ee4aa62e94982dc8404e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:346-350 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:565-569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"158f50fa2ead9a8368a345c846bca78a0e71be0f29362d5a7850ef7a48814437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs:407-413 | crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:154-160 \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/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f8e0156bf0208e2b62a950d0fc738d49f48953f3e66cd87ec449bfc9361e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:334-341 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:182-189 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:334\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4489f4ac5d3df3ba085932332925304341251703a57b100a517d8f110883794d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-tools/src/reminders/task_completion.rs:751-755 | crates/codegen/xai-grok-tools/src/reminders/task_completion.rs:822-826 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/reminders/task_completion.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ad6a35a8870e0f585c48d5bb7b5346ddf3d0d1617b6e3e0d5138d90f4c5ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:514-519 | crates/codegen/xai-grok-workspace/src/session/git.rs:1031-1036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:514\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed26225e035fde3ddd1492f406919bb5fd060bb46ba2e00c9a7a637f35d3ae53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:1022-1030 | crates/codegen/xai-grok-workspace/src/session/git.rs:1082-1090 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:1022\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"502fbd66cf72f13623221f5dd5d2b50685a65ac792b6725e2b5cdbe6aa464451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-ratatui-inline/src/terminal.rs:1069-1080 | crates/codegen/xai-ratatui-inline/src/terminal.rs:1110-1121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-inline/src/terminal.rs:1069\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9cd22cb307c2bfbc7007d22d608692aeb4dfb2ad46ed9ae2c69d36bf59681f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/common/xai-tool-types/src/schema_utils.rs:174-180 | crates/common/xai-tool-types/src/schema_utils.rs:209-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-types/src/schema_utils.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"472251cf9cdf5c904999e917fd833e3ee88e827dee6051e28a2e07c97f7f39e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-chat-state/src/compaction_utils.rs:568-575 | crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:131-138 | crates/common/xai-grok-compaction/src/reminder.rs:53-60 \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/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"be224a70cbdd08d6116f2ab231f48847ce28b62901d7c2cce9a5af6c5471db8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-chat-state/src/compaction_utils.rs:802-809 | crates/common/xai-grok-compaction/src/code_compaction/summary.rs:111-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/common/xai-grok-compaction/src/code_compaction/summary.rs:123\u0060 calls \u0060is_degenerate_summary\u0060, \u0060format_compact_summary\u0060, \u0060chars\u0060 and \u0060crates/codegen/xai-chat-state/src/compaction_utils.rs:813\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"35040c1b41b142fa67cf88c9a1341972a3623d89726a9eb7177e14f69b0c4758"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/interner.rs:95-104 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:251-260 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/interner.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a951d046e651cd33ec04d93fb9ee82d07aade621c7a80b0261bfd6682ed126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/interner.rs:143-154 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:312-323 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/interner.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4a14c3abad3ff023ae6368c0005de47eb58d43a60756b1885f150be8269754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/interner.rs:163-167 | crates/codegen/xai-grok-workspace/src/file_system/index.rs:345-349 \u2014 before extracting anything, compare \u0060crates/codegen/xai-codebase-graph/src/interner.rs\u0060 and \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060id\u0060 to \u0060StringId\u0060 in one and \u0060SegmentId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-workspace/src/file_system/index.rs:354\u0060 calls \u0060get_bstr\u0060, \u0060get_bytes\u0060 and \u0060crates/codegen/xai-codebase-graph/src/interner.rs:170\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/interner.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d676d601c4acf79086b232a222edc582c3a7c61227900757bcaa63972f9b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/nfs_off.rs:24-28 | crates/codegen/xai-grok-workspace/src/worktree/create_root.rs:207-211 \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/codegen/xai-fast-worktree/src/nfs_off.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0835592321ab98d590bbf3a72bdcc7023ae29468e6d48afecc9505d80a923813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-active-sessions/src/lib.rs:102-109 | crates/codegen/xai-grok-file-lock/src/lock.rs:30-37 | crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs:444-451 \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/codegen/xai-grok-active-sessions/src/lib.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba234208f1856733f5e89622a31a5658dcd39aa4d97d28c20475e5b641f24da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:493-497 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:569-573 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 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/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b539fdec095c12cb55efff79dda375c32873cb1aa272ec51da5ee1e1b2b59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/git_install.rs:645-658 | crates/codegen/xai-grok-plugin-marketplace/src/installer.rs:667-680 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs\u0060 and \u0060crates/codegen/xai-grok-plugin-marketplace/src/installer.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-agent/src/plugins/git_install.rs:645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060plugins\u0060 to \u0060\u0026[DiscoveredPlugin]\u0060 in one and \u0060\u0026[StagedPlugin]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a9cf2e61bd26976d1be5452e436eb2975cbc039e7ea4563236756eed693301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-agent/src/plugins/manifest.rs:71-78 | crates/codegen/xai-grok-shell/src/leader/mod.rs:1604-1608 \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/codegen/xai-grok-agent/src/plugins/manifest.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b62c6007c8f1604fbc1e4ea6ce79a4ee1d3075fecad48d36791c22300233ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-cloud-config/src/remote_settings/cache.rs:76-84 | crates/codegen/xai-grok-cloud-config/src/settings_cache.rs:158-166 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060scope\u0060 to \u0060\u0026ModelsCacheScope\u0060 in one and \u0060\u0026SettingsCacheScope\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/remote_settings/cache.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"84efbb91cc0d752eaac0cd5260f953a16b0479b895ea322d8048c2316263d3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-dashboard-store/src/types.rs:354-363 | crates/codegen/xai-grok-tools/src/util/truncate.rs:67-76 \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/codegen/xai-grok-dashboard-store/src/types.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"70964f00d91570f3c99cb1a659a0c64e93b23f7cbcd8a4ef90841325f2049abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-diag-server/src/lib.rs:313-318 | crates/codegen/xai-grok-pager/src/memory_trace.rs:182-187 \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/codegen/xai-grok-diag-server/src/lib.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b877e0c45610703ed9f7d573ab4055161907f6cc2f59e3e08c15da081c1cc7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-http/src/lib.rs:81-88 | crates/codegen/xai-grok-telemetry/src/http.rs:11-18 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-http/src/lib.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"120d733fced8edc9ccebffa1e82d6a7cfe96aa2e3979c7425eda92ca88ace79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-login/src/config.rs:414-419 | crates/codegen/xai-grok-pager-bin/src/main.rs:545-550 \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/codegen/xai-grok-login/src/config.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44f2c81e033f5102fb4fd7be86efb13a161406ef66bb7b4a0062de211ba3ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1003-1009 | crates/codegen/xai-grok-shell/src/session/goal_stop_detector.rs:180-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9b12f3b65bdb4a2c51d02b7f773e06a6c6e6cbef24e93937a83fdcedf27c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/signal_handler.rs:147-153 | crates/codegen/xai-grok-pager/src/signal_streams.rs:75-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060sig\u0060 to \u0060\u0026mut Option\u003C$ty\u003E\u0060 in one and \u0060\u0026mut Option\u003Ctokio::signal::unix::Signal\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/signal_handler.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae34cb8198c5c8fe75b43f7e905bb678facb373fd1b8389e72dd3a0d12559912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs:846-853 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:91-98 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:60-67 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:48-55 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:93-100 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:116-123 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:121-128 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:71-78 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:56-63 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:70-77 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:67-74 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5e2e1dd860461345ea2547fec7a8a748900cc087c974392aa935d2198214cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs:857-864 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:81-88 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:72-79 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:57-64 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:105-112 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:128-135 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:133-140 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:80-87 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:65-72 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:79-86 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:76-83 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edd793be3e15ca20e5e943329fafd94cdb1e10248a6cf58c4de10bb12bceb6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs:866-873 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/execute.rs:106-113 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:81-88 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:114-121 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:137-144 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:142-149 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:88-95 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:90\u0060 calls \u0060set_output\u0060, \u0060into\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:124\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc2c9571f27db11a136e2ef783cebe306a432db73fed32d332172ba46256545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs:1388-1396 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs:195-202 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/read.rs:402-409 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search.rs:501-508 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/list_dir.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"076720ecc8a8a5d15b4cccd378734062f3dbb4ed4e3e7b5c62ee688c0e23a453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:66-71 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:89-94 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/sent_message.rs:261-266 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:74-79 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:85-90 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"faceec81cbc6bcd12b3623d465eb81d173827b0bca742916b66e42334c498d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs:257-266 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs:330-340 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.rs:272-281 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/use_tool.rs:247-256 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_fetch.rs:293-302 | crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/web_search.rs:334-343 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd97a7c195cdcbea60ca3a702108a3e0143bbb159a03f021c4a93fba8a4729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/agents_modal.rs:1011-1022 | crates/codegen/xai-grok-pager/src/views/persona_detail.rs:652-663 \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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24530a67a3eb99cce39c1b56b4ee844cf25a6a6170debbdc22689e8f13e4ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/block_viewer/selection.rs:30-36 | crates/codegen/xai-grok-pager/src/views/drag_select.rs:28-34 \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/codegen/xai-grok-pager/src/views/block_viewer/selection.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68623837d2245e0d0d42111f7ec8613119d17efe8eac26253b466064a6a54c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/codegen/xai-grok-shell/src/extensions/mod.rs:71-75 | crates/codegen/xai-grok-shell/src/extensions/subagent_message.rs:92-96 | crates/codegen/xai-grok-shell/src/extensions/task.rs:356-360 | crates/codegen/xai-grok-shell/src/extensions/terminal.rs:136-140 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:48-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mod.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"127e409645aa5f1fb2fe9b9d253541730c5754967a8af59c432e68623bb84dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/telemetry/tool_call.rs:509-514 | crates/codegen/xai-grok-telemetry/src/config.rs:178-183 \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/codegen/xai-grok-shell/src/session/telemetry/tool_call.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6024619169f8bff43f076b3ec6a0be1afeca73cf0baf0ac024fb240fdf899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/worktree.rs:24-31 | crates/codegen/xai-grok-workspace-types/src/rpc/worktree.rs:22-29 \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/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"df474fce394335fc96e958e74a61cca53406b4dd9ed18ce03a4296383ad51f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-telemetry/src/external/truncate.rs:22-31 | crates/codegen/xai-grok-tools/src/util/truncate.rs:169-178 \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/codegen/xai-grok-telemetry/src/external/truncate.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef3f34262f541b03e48549c57f348ee90201ddb08a0b333496218d0a233a0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs:64-69 | crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs:43-48 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b40a0fbed53061e6c46fb9f3c7730b29c27c9a525545bfb2f9c573d0419a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:157-164 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:273-280 \u2014 \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e75ca38a7923fa1488e481846b25bae6816a8a467683e548c6a2bfe94bd4112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs:162-166 | crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/versions/legacy_0_4_10.rs:105-109 \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/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"08274e9ee6ea79303e3e5c285f29d8bd5b4545c4b1be4cdc7dd379c304c5e487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:249-260 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs:185-196 | crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs:126-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c5323277dd78bd95146d622c10b0ba5592e7b657b1ef2b93051b20b07a6668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-tools/src/util/mcp_truncate.rs:184-195 | crates/codegen/xai-grok-workspace/src/permission/state.rs:206-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/mcp_truncate.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"255fd7ed342ca9c4dd697dc4610f8162c9392575fae4722df854c7b5f6b7377b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-agent/src/discovery.rs:21-27 | crates/codegen/xai-grok-agent/src/plugins/discovery.rs:239-245 \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/codegen/xai-grok-agent/src/discovery.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"18202b59533c4124dabc66696f6ecfd16c05ff49b8b239a1b542375d24401c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-egress-proxy/src/ip.rs:3-8 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/ssrf.rs:43-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/codegen/xai-grok-egress-proxy/src/ip.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ed46dc7c26e8ca2df27ba4f89985e002a138992c519031d8f01034706ac441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-foreign-sessions/src/claude.rs:333-338 | crates/codegen/xai-grok-foreign-sessions/src/codex/files.rs:208-213 \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/codegen/xai-grok-foreign-sessions/src/claude.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"6209012df4412bbd44722ef95e3207fd5d05354916a730e43e4dc6249d2fb0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/matcher.rs:66-71 | crates/codegen/xai-grok-mcp/src/tool_name.rs:108-113 \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/codegen/xai-grok-hooks/src/matcher.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a4709b7ff103e612d3ea1403655fa4542014f1bc530c2917ed932dc547126d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_capture.rs:1770-1774 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1892-1896 \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/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdaca178815f72a2f44e3b0f59fb27122bc00b57635e3320e9832ea5b9e9a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-pager-minimal/src/live.rs:766-771 | crates/codegen/xai-grok-plugin-marketplace/src/git.rs:208-213 | prod/mc/cli-chat-proxy-types/src/deployment_config_types.rs:102-107 \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/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95f34d7bc5491534863196d0fd45cd4677030e42022b9486ff907167faec764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs:52-58 | crates/codegen/xai-grok-pager/src/hyperlink_route.rs:20-26 \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/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de69a7663dbdce975b402e647cce1ab390b2ab341f34ea8202358922d6dfade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/app_view.rs:97-104 | crates/codegen/xai-grok-pager/src/views/agents_modal.rs:2066-2073 | crates/codegen/xai-grok-pager/src/views/dashboard/state.rs:4246-4253 | crates/codegen/xai-grok-pager/src/views/persona_detail.rs:853-860 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f660c50a4b649759f8d99d2c9395c132315dc20ca7458d0743db34c3966fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/bg_task.rs:185-193 | crates/codegen/xai-grok-pager/src/scrollback/blocks/subagent.rs:252-260 \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/codegen/xai-grok-pager/src/scrollback/blocks/bg_task.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc058b4ec6cd8c994d9d7e982c8b17604153c2f8dd16c0b7586c5e561afee6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/codegen/xai-grok-pager/src/slash/commands/context.rs:17-23 | crates/codegen/xai-grok-pager/src/slash/commands/queue.rs:21-26 | crates/codegen/xai-grok-pager/src/slash/commands/session_info.rs:17-23 | crates/codegen/xai-grok-pager/src/slash/commands/tasks.rs:20-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/commands/context.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e642714f5d9a1d74b47e3c71bacf46844561453ea0db7e3688f5ad6c2a88f19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/handle.rs:105-112 | crates/codegen/xai-hunk-tracker/src/handle.rs:244-251 \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/codegen/xai-grok-sampler/src/handle.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fd442f56b8eb791cb70d3b35e53b8899f42a9cb8f8591b432305622abe0149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/config/mod.rs:537-546 | crates/codegen/xai-grok-telemetry/src/config.rs:281-290 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060Option\u003C\u0026str\u003E\u0060 in one and \u0060Option\u003CString\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd032d65f4e81ccfec21d5d4afee39df7933eed75d5b1c7d1d8f0685e53c8732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs:151-159 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:195-203 \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/codegen/xai-grok-shell/src/extensions/hunk_tracker.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eb59787ca5c055015fb5d0be6e6e770403d1bf3b2fb80abff22ca49d08f6be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/conversations_client.rs:111-117 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:419-425 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/conversations_client.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6177b58f80320b2ac4b560e99f3307c28595e981c6f2a24a5ad46e9812afd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_planner.rs:468-476 | crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs:317-325 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/session/goal_summarizer.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_planner.rs:468\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_planner.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"427640ea60fae0d1c14ff189d0afe76ab823c4b64a690988de0263ea6c3411e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:48-57 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:50-59 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:48\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"917ffb22a151ae5aafdf2fcb62837ec5f3c635632dd65cff546966af7cc479cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:82-87 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:79-84 | crates/codegen/xai-grok-shell/src/util/config/resolve/session_recap.rs:103-108 | crates/codegen/xai-grok-shell/src/util/config/resolve/turn_summary.rs:90-95 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1e3d91f9833eca61b54ea9cfc998f615b14ab1a050c4d88546baf06691f14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:90-94 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:86-90 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2200a9bd3665fd1de2e4d7129a10f85de16ca691dadc3d20d7a5ad25b370f357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:96-101 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:92-97 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"97643ed211a1e3cb5161f02ad89530eadf1181060461da7b88a008546b9bd836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:289-294 | crates/codegen/xai-grok-tools/src/types/output.rs:557-562 \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/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66783ff93fcc7157cfa2a88dcdabf18069d69047400a275ee16a1859082ea2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/common/xai-tracing/src/grpc_client.rs:96-101 | crates/common/xai-tracing/src/http_client.rs:9-14 \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/common/xai-tracing/src/grpc_client.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00583ce42be76194ecf791dac9818dcbb0266505116c55abfd2f57846aee3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:26-38 | crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:109-125 | crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:236-253 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf16535f6af13b4b6694eb0a88c44624a1922e53954d5314e644dc427b0a461f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1050-1065 | crates/codegen/xai-file-utils/src/storage_client.rs:1157-1172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1050\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1175\u0060 calls \u0060create_read_at_stream\u0060, \u0060clone\u0060, \u0060wrap_stream\u0060 and \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1068\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c02e16c0f0baf6745a116e1b28574ccd5e301f14bb8628f34a709f3a5e71a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1219-1234 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1554-1568 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:1219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cd019e8fcbdb702ec5e9f7b0b0d6d59255ecabb93cf3254990a677eb16cba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-shell/src/config/mod.rs:767-781 | crates/codegen/xai-grok-shell/src/config/mod.rs:796-810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/config/mod.rs:767\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc369416ebe2a39cb4814978e58e94b25837d2172a3ea414ac9ba6cec9c166ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/goal_detail.rs:820-834 | crates/codegen/xai-grok-pager/src/views/goal_detail.rs:899-912 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/goal_detail.rs:820\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76cbc5930ea89f84e31c9509d20c68c0a94904af1fb2ed33b5723642f5eee9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:519-545 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:557-583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/skills_client.rs:519\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedbe156783c31f7495273440e466ed9d77ff0be1e4484f7a6ab940a3365b6d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:508-521 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:585-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:508\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c641be6dbb44007706e55289db419ad0a4ee118b7bab4cb53a0f6f01cec5651f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codegen/xai-grok-memory/src/v2_capture.rs:1581-1595 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1721-1735 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_capture.rs:1581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca5904542cda70dcf375ab4195c9d89afc57f9e50cdaeb88141aa53d1f810ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:782-795 | crates/codegen/xai-file-utils/src/storage_client.rs:899-912 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:782\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67acbfec2fe9b5fb8a4611224412893bafc0f3cebfae9a44f31fbfce8cd588d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:368-381 | crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs:20-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b81372c9804670a21fc92ff64ce8842e1dab49d1b09d244976e33c7bdc1af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3431-3444 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3493-3506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:3431\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bb4062e7c5be24e4b4376bd45d2b3d4169168ffefbf25eba7afff81245ee32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1308-1320 | crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1335-1347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/worktree/mod.rs:1308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9856d3751dba051e9b5a2fd78834e00d8512f4538c4360335f33eddcedb8b607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:73-85 | crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs:967-979 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6591dc5be6d0dd6530a89bd8fc5cb6f88962fee7444444d64f85bd4548190a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): crates/codegen/xai-grok-workspace/src/permission/prompter.rs:341-353 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:389-401 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:425-437 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:633-645 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:692-704 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/permission/prompter.rs:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"909ea5ddd1e9b1c96422ed6633d70c35dd55604e3f0e48c1f07d8f8099ddc14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-login/src/flow.rs:305-316 | crates/codegen/xai-grok-login/src/flow.rs:323-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-login/src/flow.rs:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"163d6405c908dbdd33ccd80e440fa67809a1dd7cd6a7fe7ad0e574bb2f525af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2166-2178 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2226-2238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c112a19d22450de5d2b554d51e20550296e21a36487aaf28139cac1f2b8c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/compaction.rs:1730-1742 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1746-1758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/compaction.rs:1730\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":1730}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58d5a2e82df489cf0fd10a91e6bd50412753222b8ab0993e4549ccc9347f5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-shell/src/upload/trace.rs:697-708 | crates/codegen/xai-grok-shell/src/upload/trace.rs:731-742 | crates/codegen/xai-grok-shell/src/upload/trace.rs:862-873 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/upload/trace.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20e60d244e7eacdc430e892e85b165c15aa1716c56a6a99dff8f5fb8b5a433d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager-render/src/prompt_images.rs:1469-1480 | crates/codegen/xai-grok-shared/src/placeholder_images.rs:509-520 \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/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"57791bbfabfbfc41249067fd827c49e62af2b08f8a3a0e3ac58163e620437d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/skills_client.rs:596-607 | crates/codegen/xai-grok-shell/src/remote/skills_client.rs:616-627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/skills_client.rs:596\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/skills_client.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b65c893e2f3623b5b3b34e5a58482c14beb2a9bc164da686ecf1c28c76b540"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/log_donate.rs:228-236 | crates/common/xai-computer-hub-sdk/src/metric_donate.rs:284-295 \u2014 before extracting anything, compare \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs\u0060 and \u0060crates/common/xai-computer-hub-sdk/src/metric_donate.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"655ef42305d1d2c35b022c8e77dd69beff455f713de8ebd9387b7dafa0bbf623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:2227-2238 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1729-1740 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1745-1756 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs:2227\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bb79ca3c44880eb1b925ab92af10c19350b206c13877a4917741891660dcbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/permission/prompter.rs:377-388 | crates/codegen/xai-grok-workspace/src/permission/prompter.rs:414-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/permission/prompter.rs:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e228dc1114309b522506ce64797df01c03bfe9d4d549755e9460f87696e3886a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1274-1285 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1444-1455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c183cb0644a0aa9c92defeef6489cc327cb9df44efac2f5fb9c8a9aabdce7b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2626-2637 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2662-2673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"265f8ffae255fe43205bf31ed6a2e7adf42b2e9086933b032d4fe744ede1450f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1004-1014 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1085-1095 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1004\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"7037739b61cea0af06f6c90ea58c4fbb09da95fc3d48382d722b41cf12374ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:231-241 | crates/codegen/xai-grok-workspace/src/session/git.rs:290-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:301\u0060 calls \u0060from_utf8_lossy\u0060, \u0060trim\u0060, \u0060to_string\u0060 and \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:242\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f6d859020fcd0b843c0ae3536916b5aa63496395f198fda5d00f8f01d26222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-file-utils/src/storage_client.rs:1430-1440 | crates/codegen/xai-file-utils/src/storage_client.rs:1497-1507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/storage_client.rs:1430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f95f80e2790b9ff5ff09d6d64fe5fff21c5095dc90e53a4756a8cc37ebe08e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:171-181 | crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:200-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs:171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/mcp_elicitation/validate.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba2a27d59a12f1811a3a4ced594cadc2bd78ca6af7ac6db76688072a7e1eeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/harness.rs:1163-1173 | crates/common/xai-computer-hub-sdk/src/harness.rs:1227-1237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/harness.rs:1163\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e36bae097aaf6e302b83d2f5a23f910474524f9e68661633010930790200d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/billing.rs:167-177 | crates/codegen/xai-grok-pager/src/app/dispatch/billing.rs:269-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/billing.rs:167\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/billing.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82bdeb64d240e9abdd2696958aa1d9a1d41aa59034d906123ec9c7afa1642d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:283-293 | crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:333-343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-codebase-graph/src/bin/code_graph.rs:283\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/code_graph.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1473c31221e4d5299b41bb3883926a38bdbde0adab11a3c34ace60efdc0a18bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:204-214 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:233-243 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:263-273 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:293-303 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/code_nav.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77de24d239a6772fdf06c9280b11511d533531f2161dcc050b77f2cd0052f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs:60-70 | crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs:230-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/diagnostics/doctor_format.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba525877fd599744a4c373fc5bebc8ef92d7c743d6f0cf13f6f93cb9e2ac7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codegen/xai-grok-shell/src/inspect/mod.rs:1199-1209 | crates/codegen/xai-grok-shell/src/inspect/mod.rs:1211-1221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/inspect/mod.rs:1199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe1d377fe1b865712a034e8b2106f5d74014a373e22d4ff6f9cc37e32638db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/question_view.rs:1332-1341 | crates/codegen/xai-grok-pager/src/views/question_view.rs:1352-1361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/question_view.rs:1332\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c93df34cb41a417c07a579fec7529056838e321ab1f9c2a7f5ad833897e67d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:638-647 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:666-675 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs:638\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"484f72641c3505aad900bd5ea5ab895c21386c0e2deaf98655ef932d4ce1642b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1599-1608 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2177-2185 | crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:2215-2222 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/computer/local/terminal.rs:1599\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f1b5ab6033a813928ee5faf3b65090213691df9fcb7a59058b821cb9497bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/sync.rs:518-527 | crates/codegen/xai-fast-worktree/src/sync.rs:545-554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/sync.rs:518\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/sync.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cbd9242756cdf19113a7540a5153dcdd2163a65d2d5cb71489805b1ba69d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:748-763 | crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:766-782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs:748\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4513dc2c8c24e822f3b1d51278147a2d5825906bcb5c5c9820585e2e199e1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/server.rs:1605-1614 | crates/common/xai-computer-hub-sdk/src/server.rs:1691-1700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5a77d18748920b804e799e3b683c6b0e0946d09e95b851d37177d528b5d242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:429-444 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:476-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8b5ee3228d12748c2e84d2c9641079046d3c98272379f2611e50fd5f08a5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/worktree/execute.rs:273-282 | crates/codegen/xai-fast-worktree/src/worktree/execute.rs:287-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/worktree/execute.rs:273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/worktree/execute.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b0a187f34cb2933558c6d64d1def6666a14504980d24b4d2f01e5f1c59ba37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/headless.rs:1767-1776 | crates/codegen/xai-grok-pager/src/headless.rs:1781-1790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/headless.rs:1767\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6ed1468ed25e09e02e211ac252eb21173b877443a93072bce3f22ee72dacfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-hooks/src/dispatcher.rs:169-178 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:194-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:169\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97fe9a25ac8944d9254e0e16915f15f516e34d867cf11b2ac9987a8fc3e6552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:126-135 | crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:254-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bd4546e946032c3b1f6cb3836609f6c2347a32be0008909bb058bed865efc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1287-1296 | crates/codegen/xai-grok-sampler/src/client.rs:1655-1663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb665d046635f9d5c315a0f3d7163ff38972ef35227892cc39f1ef1499de4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-pager/src/plugin_cmd.rs:764-773 | crates/codegen/xai-grok-pager/src/plugin_cmd.rs:779-788 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c6b2e8cf8c1443d76a0383765cbb376c2be975b552a43e0e97a37c746d54e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:136-145 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:155-164 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:136\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:152\u0060 calls \u0060validate\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:133\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8033a37af5db8dff4e79cf087dc950437a5fef8ff2864d7f5218b7ece107e0b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/common/xai-computer-hub-sdk/src/connection.rs:2008-2013 | crates/common/xai-computer-hub-sdk/src/connection.rs:2023-2032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ac58651972e8df638567e1480c00977cc50252e7334c5de174daf77b29c6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-shell/src/config/mod.rs:111-118 | crates/codegen/xai-grok-shell/src/config/mod.rs:151-158 | crates/codegen/xai-grok-shell/src/session/mcp_descriptors.rs:197-206 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/config/mod.rs:111\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0fa27ef41b9ec98c9b69cda15c4c072d8e5aae8b6ebcf6cbfb8e598057a3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/common/xai-computer-hub-sdk/src/log_donate.rs:231-237 | crates/common/xai-computer-hub-sdk/src/metric_donate.rs:287-296 | crates/common/xai-computer-hub-sdk/src/trace_donate.rs:60-66 \u2014 before extracting anything, compare \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs\u0060 and \u0060crates/common/xai-computer-hub-sdk/src/metric_donate.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/common/xai-computer-hub-sdk/src/log_donate.rs:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/log_donate.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"65556a7e907d5265d801ae706506494fc6854596e60331966cd78be2ab9066a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs:141-150 | crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs:152-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6cc224b2ea79d5efeef3c4e8ebb9d90a6b04f51c29ffc679646094f5207c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:958-967 | crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:995-1003 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e16f55dff93166acd7df1ca8d2d2fb9abcd73bf7a6e89b1e2b92cc302ae5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-hooks/src/dispatcher.rs:549-558 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:797-804 | crates/codegen/xai-grok-hooks/src/dispatcher.rs:902-909 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:549\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:795\u0060 calls \u0060absorb\u0060 and \u0060crates/codegen/xai-grok-hooks/src/dispatcher.rs:900\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/dispatcher.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61113f85d5f957cb35a92eec51da9d4bd57aabc540d51fdab0ac268bb5b4566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-shell/src/extensions/worktree.rs:497-505 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:518-526 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:538-546 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/worktree.rs:497\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"abac0a8c24e125115f33de5ebf983db501da077833a8fc5d88a6a7f7910cb1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1523-1531 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1583-1591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1523\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e981d5b6f71c29b8f3862a6ced12a9bbeb24c450d4411557fd27d396f823e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:596-604 | crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:640-648 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cc460c54ace0538f2e53fe685b192f46b4a09e2769149aee340a42e5593532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2567-2575 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2604-2612 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2872-2880 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2913-2921 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:2567\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ca99996405a97b1bb22c3022cdbb5acc2232cf8c8023478f0f10647d2154b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:457-465 | crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:486-494 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:457\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3e0e81daac58dd6673d1a853918782e6ae020af672103ae7fe98f26a1aa394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/codegen/xai-grok-login/src/manager.rs:876-894 | crates/codegen/xai-grok-login/src/manager.rs:922-940 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-login/src/manager.rs:876\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-login/src/manager.rs:875\u0060 calls \u0060spawn_user_info_enrichment\u0060, \u0060clone\u0060 and \u0060crates/codegen/xai-grok-login/src/manager.rs:921\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0a06f1202082291493d0c8d95cfefc0c66bae40e760dd7ba1ef6a2a09eea2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:507-515 | crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:555-563 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:507\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b20bf5ac563494d76bba7ed83e878ebd274eccdff54d31a0eb455b8a38e4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1542-1550 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1602-1610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1542\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ac6a7af4e3a4937b41851cd2cd03139c8073bc6721209ab83b00a7abbd9ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1784-1792 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:4616-4624 | crates/codegen/xai-grok-pager/src/app/effects/mod.rs:5094-5102 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/effects/mod.rs:1784\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ffb175f704c0803a0fe5813c7edf138e01c86df1801908a9dc574c3a8b5fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1053-1061 | crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1082-1090 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs:1053\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ca239ba814336847b3a2e92bb32000016d61c6f733764a0a4052a57e8faa2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-sampler/src/client.rs:1092-1100 | crates/codegen/xai-grok-sampler/src/client.rs:1805-1813 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b0274462860c6dac5a6fa4656b6a486f4bcc9aa7036d57259815701bd8b625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:145-153 | crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:259-267 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:145\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4308802be7fd185fe9bc4c33f9684a7a4ce4487b8633524c670daaf3ea7200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:417-425 | crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:263-271 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d97b3ba14ca2203a42a752177571d244bcef78a3ea4d005e340fb7295726a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/tutorial.rs:476-483 | crates/codegen/xai-grok-pager/src/views/welcome/mod.rs:2461-2468 \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/codegen/xai-grok-pager/src/views/tutorial.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e9da0cba9840dcbcb3e3a2f29f0e78a4b63538956a17e6ad693eefc0cb4dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/worktree.rs:219-225 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:227-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/worktree.rs:219\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a9cb2e4dbf2495f697af634afef7fea6e211151d37008e1f8802285387521a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/views/goal_detail.rs:839-846 | crates/codegen/xai-grok-pager/src/views/goal_detail.rs:859-866 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/views/goal_detail.rs:839\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11cf5d26139e0a3c29af4821394e600863c4e576740e55775d01a3ee63796f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:246-253 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:369-376 | crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:435-442 \u2014 \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs\u0060 and \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b929e4fb85176cd1ea2a223ec2a13bc6c3c00ab526b387eb101064cd95899305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/compaction.rs:1603-1616 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1633-1646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/compaction.rs:1603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f505c69fb60146e453cef2fbbe6f8034045f9626390e0008f7a8c5541a6975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/mod.rs:365-372 | crates/codegen/xai-grok-shell/src/leader/mod.rs:374-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/leader/mod.rs:365\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df94cf9918ae43a9542a7584115e41b0937dd6859c47b0772e00823492866e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/git.rs:433-440 | crates/codegen/xai-grok-shell/src/extensions/git.rs:482-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/git.rs:433\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/git.rs:432\u0060 calls \u0060into\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/git.rs:481\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/git.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d8c9ab2eef3afe8842a83c3edfc02252a3fd19dcc72a44cfee2de8bf8cc8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-sampler/src/client.rs:1129-1136 | crates/codegen/xai-grok-sampler/src/client.rs:1512-1519 | crates/codegen/xai-grok-sampler/src/client.rs:1839-1846 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-sampler/src/client.rs:1129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-sampler/src/client.rs:1520\u0060 calls \u0060extract_model_metadata\u0060, \u0060headers\u0060, \u0060extract_retry_after\u0060 and \u0060crates/codegen/xai-grok-sampler/src/client.rs:1138\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1acf3a2ac11a819d54019ca5ec0155a4d22edd4aee065020830f1850f75efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/hub_server.rs:1002-1009 | crates/codegen/xai-grok-workspace/src/hub_server.rs:1017-1024 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/hub_server.rs:1002\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d015551217ab8638ce84feebce76c0a1d174a674f6d3de1242f83f2f8e827e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2076-2083 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:2250-2257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e80398869001c4e0e070db9607f69605098bc31f141d4a8a72054a9464d1a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codegen/xai-grok-memory/src/v2_capture.rs:1906-1913 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1551-1558 | crates/codegen/xai-grok-memory/src/v2_consolidation.rs:1857-1864 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-memory/src/v2_capture.rs:1906\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/v2_capture.rs"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e82300b0a0891e58c28bdcc1931c1b4c953d6dd296e633b5d8d73d642064877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:477-484 | crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:521-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs:477\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"adaf10ddcecf9419382256084007f4b6790d8b314b02e019e63956d6c44ee619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/common/xai-computer-hub-sdk/src/connection.rs:1682-1689 | crates/common/xai-computer-hub-sdk/src/connection.rs:1704-1711 | crates/common/xai-computer-hub-sdk/src/connection.rs:1723-1730 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"041366b14d30aabb6938cdcf936040156f1b464345021a70078f77fafd353c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/remote/sync.rs:200-207 | crates/codegen/xai-grok-shell/src/remote/sync.rs:219-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/remote/sync.rs:200\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/sync.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d20da7d1344c48c347463f68a1643ff682fdc714452f5d370570adf0ed4b1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:400-407 | crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:246-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:400\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d04d0ce51ce3280eaa8dc61345a462b16194cd7bd074ed5a4da2f3e516e7037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/app.rs:1225-1232 | crates/codegen/xai-grok-shell/src/agent/app.rs:1256-1263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/app.rs:1225\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a37c48627297f452e8cf3cd12aff5073edfa52c81fd7badb84c5b3f1e9aca89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:307-314 | crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:236-243 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"136a262edac960c93d80ff961f41a2ca23e1f3969807a90d8cdc315a6daabb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-pager/src/acp/subagent_message.rs:150-157 | crates/codegen/xai-grok-shell/src/session/storage/mod.rs:603-610 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/acp/subagent_message.rs:150\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/subagent_message.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fad852689363a8646e32ca6015885d47e9d7e5c695b0fbf017b5dd2d9748ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:664-671 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:2272-2279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs:664\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc332b3fe4453cfd251e7104b735cbfd08ccbbc3abbdba1ae856ba613e6e663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/consent.rs:34-40 | crates/codegen/xai-grok-shell/src/extensions/privacy.rs:31-37 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/privacy.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/consent.rs:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/consent.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ca1028988ccefc317dcefe66a86537a6aa0a73e16a545b37c1244d8c853d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs:149-155 | crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs:147-153 | crates/codegen/xai-grok-shell/src/util/config/resolve/tool_approvals.rs:93-99 | crates/codegen/xai-grok-shell/src/util/config/resolve/toolset.rs:81-87 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/util/config/resolve/prompt_suggest.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/resolve/auto_mode.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007fbd7950cba0f67da0265364c3ecf4be679fdaa7db7cc6e9b5be7ee7ece00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:160-166 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:236-242 | crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:284-290 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/bin/pool_perf_bench.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5273579d2bbee7cfb248665acf146e9f40e77634fea0b6eed6adc0e5bbdf40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-shell/src/session/compaction.rs:1390-1396 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1604-1610 | crates/codegen/xai-grok-shell/src/session/compaction.rs:1634-1640 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/compaction.rs:1390\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5d7b71919338e289555ab431c9fef7e187a7885d90527ee63fe6cb486ecaef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/worktree.rs:219-225 | crates/codegen/xai-grok-shell/src/extensions/worktree.rs:442-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/worktree.rs:219\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3b23f690d9a7c64ae37483cd130c9a83a5a5a19813a72d085bd2111b8cee60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-fsnotify/src/vcs.rs:111-117 | crates/codegen/xai-fsnotify/src/vcs.rs:132-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/vcs.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ec2a48eeab338fe586868fe0fa4790213ae853c47561986f1811bf53e48712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs:158-164 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs:606-611 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs:158\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"560b5688bd7dc6dae6f11a07c67f1513fd796d871b34fe3743fe985a03c09de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs:47-53 | crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs:224-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs:47\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/git/safety/git_dir.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f3a4fff87b87410c3d6dec05e42fc931214fb4f2793e952fd2097dc53191f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs:127-133 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:225-231 | crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs:280-286 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs\u0060 and \u0060crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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/codegen/xai-grok-pager/src/app/dispatch/session/fork.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1947ff85d11c38344730a7247105e6e84d48fbd035fc8084a800ce9a80e5cfaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1501-1507 | crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1610-1616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs:1501\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"296e83ab59b229d7fe700b2095f323d64fa746c5a23d3cafe38f429257db5cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:585-591 | crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:605-611 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_conversion.rs:585\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f95e69a8b1d11187395a055a881901c910161578490a2d772de62d4dca88957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs:469-475 | crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs:500-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273e45cf5195c568b12c12438d3a0226b846908ad793e823a36bbffcabe2851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/handle.rs:2416-2422 | crates/codegen/xai-grok-workspace/src/handle.rs:2448-2454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/handle.rs:2416\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":2416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bd47760f5e180aaa15dde889dde2af1bef17fd2c7a69dfe9d458ce4406b5de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:922-928 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:958-962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fb94b2e818d0578a9bca802c8ea89e1f06c490c638a23ab63a987384a7a4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:392-397 | crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:588-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs:392\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e433bc133271a045eeeaa831c778db321bb731ec028f7079c20ad9635900d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-config/src/shell.rs:70-75 | crates/codegen/xai-grok-config/src/shell.rs:121-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-config/src/shell.rs:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/shell.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0778a22feb0d393e6dd27a1d0a5a57c2a639cf95d1f4cd3ca749d2d19541d5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 5): crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:192-193 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:220-221 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:244-249 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:274-279 | crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:309-310 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:249\u0060 calls \u0060map_err\u0060, \u0060invalid_params\u0060, \u0060data\u0060 and \u0060crates/codegen/xai-grok-shell/src/extensions/code_nav.rs:193\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/code_nav.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"16047869c5e1ddb21c9fb5e3e01a4abee4e2a85348a505cbad9fc96d7ce3381f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-workspace/src/session/git.rs:1649-1654 | crates/codegen/xai-grok-workspace/src/session/git.rs:1777-1782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/session/git.rs:1649\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2a01c93eced42539b5f0dfc4a3fd6606f8acc3ac3f73cdcd6df077478ecbe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1348-1353 | crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs:1354-1359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea51680bde9b0ddb5b4d805de22d3373a63ddd2c1d61c29c8e4ca07bc5fd801a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/repair.rs:82-87 | crates/codegen/xai-grok-shell/src/extensions/rewind.rs:77-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/repair.rs:82\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/repair.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2ffb64ff158dfe8224ff2ff1a500878f1beecdec7b69b8a0ec6c508e619afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:207-212 | crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:77-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/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e83f1ebad1ee739458edc874f64314c7d6f85adddace6d2b18ad5d5f95b1bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/extensions/billing.rs:217-222 | crates/codegen/xai-grok-shell/src/extensions/billing.rs:302-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/extensions/billing.rs:217\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/billing.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5132060682920b6b714882d150a78d3165ce1a3beaed91c16d38e2c0f0c629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/spawn.rs:590-595 | crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs:345-350 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/spawn.rs:590\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/spawn.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1353807b1fe298c660536c4b961c6f7ae64ede7dd42ba66abd9b25b955ca6fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/config.rs:1290-1295 | crates/codegen/xai-grok-shell/src/agent/model_providers.rs:75-80 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/config.rs:1290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d08b108cd29cd28c596c44d3217b9f3a0e8f7dd6ce5725eed2b799272ebc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codegen/xai-grok-workspace/src/hub_server.rs:1002-1007 | crates/codegen/xai-grok-workspace/src/hub_server.rs:1017-1022 | crates/codegen/xai-grok-workspace/src/hub_server.rs:1046-1051 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/hub_server.rs:1002\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"733b24c62053abad7c4e420594769ae6be251295134d6578b6216ce6f003c02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/ptyctl/src/session.rs:136-141 | crates/codegen/ptyctl/src/session.rs:143-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/session.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbeef5bbdcf83d38ef500e4a9fceb66e88e94fb05dcf9a94e0d7f0028b4dda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:134-140 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:153-159 | crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/rewind.rs:125-131 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/recovery.rs:152\u0060 calls \u0060validate\u0060 and \u0060crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs:133\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/completion.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5111303c5797d1ad291347adcd9e44b9e6b618eda71795dcac99ed947d1bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/leader/server.rs:2174-2178 | crates/codegen/xai-grok-shell/src/leader/server.rs:2215-2219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/leader/server.rs:2174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4246c2fb9a2a0178a573a1f5bc42becdbfe957196d947b90ee8c5821ae110f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:836-840 | crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:843-847 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs:836\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b14be0cfa4cddd220ddd19939fbd6685fc1363c6f04ae404b813aad3be24a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:344-348 | crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:364-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/session_registry_client.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f292a3f15a20fbc30aea95bf18d68d82d8223bc13b16cf1640e670276c8cc98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager-bin/src/main.rs:967-971 | crates/codegen/xai-grok-pager-bin/src/main.rs:983-987 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-pager-bin/src/main.rs:967\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8010e024aea890616f5af0005ada204f7c7ba70cf2d7ad881010ee301f9aa97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs:430-434 | crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs:916-920 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs:430\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8643628361182850b1488e0e545114e8a19ef910427e9a0227397248eb44f966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-shell-terminal/src/adapter.rs:256-260 | crates/codegen/xai-grok-shell-terminal/src/adapter.rs:295-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/adapter.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90b86aaae8eeedc4dac4df9cb8036ac4748eb32d5511f4844c686585b179d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-file-utils/src/queue.rs:963-967 | crates/codegen/xai-file-utils/src/queue.rs:1189-1193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-file-utils/src/queue.rs:963\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"64975a2801a4fadfeecd7b54f62e9d1804b262ed34311e134df27aff7820ec01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-gboom/src/lib.rs:333-337 | crates/codegen/xai-grok-gboom/src/lib.rs:369-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-gboom/src/lib.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fba92d61791164c258710f12af119959549974e014dcacd60dae1ebb90ee0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-image/src/lib.rs:56-60 | crates/codegen/xai-grok-image/src/lib.rs:332-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-image/src/lib.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80ec788b3d37e3bcc0570f4d9246afb1ad06b1c88f322fe1e66fc6e46bf07bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs:382-386 | crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs:407-411 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f5411863ce38fef3661324eca24474313965842d3659df7a5d26ba66a4eb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1925-1930 | crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1937-1942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs:1925\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060\u0026crate::extensions::notification::CompactionRequestFile\u0060 in one and \u0060\u0026crate::extensions::notification::RecapRequestFile\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"766b3cef85d4709aeac106ccf37996d0381c4afaa6b099a00b89f136f100ec03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:186-190 | crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:217-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/skill_discovery_tracker/mod.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"61726d2dc94725478f0096c1c03eb49320dbb4ed7e9fa2087b3332c0d9fcf2c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1436-1440 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1454-1458 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1471-1475 | crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1487-1491 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-workspace/src/workspace_ops.rs:1436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/workspace_ops.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"3350fb77c1d4abe24aaeb1250b97687ef97a2603fbb1c6d1492c27ce068b3258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-hunk-tracker/src/loc/mod.rs:341-345 | crates/codegen/xai-hunk-tracker/src/loc/mod.rs:377-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-hunk-tracker/src/loc/mod.rs:341\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/loc/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"052b05f42a4aa7b12385e624c6dca8165fe650aa8571680ff75a48efd25f8d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codegen/xai-ratatui-textarea/src/textarea.rs:1281-1286 | crates/codegen/xai-ratatui-textarea/src/textarea.rs:1299-1304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-ratatui-textarea/src/textarea.rs:1281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9fb10ef55245771c5ee96c28c2fb812ca5fd03039066705ac51d5b652722d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): crates/common/xai-tool-runtime/src/error.rs:312-316 | crates/common/xai-tool-runtime/src/error.rs:326-330 | crates/common/xai-tool-runtime/src/error.rs:341-345 | crates/common/xai-tool-runtime/src/error.rs:384-388 | crates/common/xai-tool-runtime/src/error.rs:395-399 | crates/common/xai-tool-runtime/src/error.rs:408-412 | crates/common/xai-tool-runtime/src/error.rs:424-428 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-runtime/src/error.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dba92ef3ec50f8c80c890364860f92749a9783eb4f11cb01a514dd74100829"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (81 shared lines): crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs:33-151 | crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs:18-133 \u2014 These two members are variants of one another: 81 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"07334e6c1877eb357529a24047327252346d2c61d40ce4aee722a5d9721a62fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codegen/xai-grok-test-support/src/sse.rs:389-465 | crates/codegen/xai-grok-test-support/src/sse.rs:566-634 | crates/codegen/xai-grok-test-support/src/sse.rs:650-752 | crates/codegen/xai-grok-test-support/src/sse.rs:983-1071 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75175d3a0b637be1d9a66410f0dd53ad8bd8775ed14931d9e416a39210a9743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/codegen/xai-grok-test-support/src/env.rs:172-208 | crates/codegen/xai-grok-test-support/src/env.rs:279-326 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/env.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab03e6ff75e7f6df54ce11e0a5fc98544f936df16b36606bf0584fa99888325"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codegen/xai-grok-test-support/src/inference_request.rs:202-237 | crates/codegen/xai-grok-test-support/src/inference_request.rs:281-310 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/inference_request.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e4dd6c759b3bc4d306365d7ab335e117e5f059aa91351944a320be68b833e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codegen/xai-grok-test-support/src/leader.rs:316-339 | crates/codegen/xai-grok-test-support/src/leader.rs:418-443 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/leader.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24568fc0c752ae899ca77304cf5fb37cc64162de69b16470eaf70043b9f3f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codegen/xai-grok-test-support/src/otel_recorder.rs:219-235 | crates/codegen/xai-grok-test-support/src/otel_recorder.rs:359-375 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/otel_recorder.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2a8d418cea2faf97bf830821896c24f512d132a6830859263ee033a3cb8915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codegen/xai-grok-test-support/src/otel_recorder.rs:199-217 | crates/codegen/xai-grok-test-support/src/otel_recorder.rs:319-337 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/otel_recorder.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dc1501754ec99194897bc9748e73c74760bfd9730840282876b7f5546cc82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codegen/xai-grok-test-support/src/leader.rs:364-377 | crates/codegen/xai-grok-test-support/src/leader.rs:397-416 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/leader.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f7be80abf5cdf1d0cc33d6a6f47be498627063697c5126d0df132ee55dcc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): crates/codegen/xai-grok-test-support/src/managed_gateway_endpoint.rs:51-57 | crates/codegen/xai-grok-test-support/src/storage_endpoint.rs:47-53 | crates/codegen/xai-grok-test-support/src/telemetry_events.rs:26-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/managed_gateway_endpoint.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"41372b267da5d34516064af993f7d1400290521a5752f47f17e84b0c39ae8258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codegen/xai-grok-test-support/src/otel_decode.rs:28-40 | crates/codegen/xai-grok-test-support/src/otel_decode.rs:45-57 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/otel_decode.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa5c7a84667384264fc1a9ea581cf3250233894952dc23a97bf42f0c47114bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codegen/xai-grok-test-support/src/sse.rs:867-878 | crates/codegen/xai-grok-test-support/src/sse.rs:900-913 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"59aed63af06d763795943ee19f3e673c00f0da73e086d050195b714b5f34e5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/codegen/xai-grok-workspace/src/sandbox/grants.rs:194-208 | crates/codegen/xai-grok-workspace/src/sandbox/grants.rs:223-238 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/sandbox/grants.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac824ec40c540445f1439eb0f8e68e6dc3f27cadc8faba83db826cd95ac4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/codegen/xai-grok-workspace/src/sandbox/calls.rs:699-709 | crates/codegen/xai-grok-workspace/src/sandbox/calls.rs:726-736 | crates/codegen/xai-grok-workspace/src/sandbox/launch.rs:269-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/sandbox/calls.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e091cd8405bc1911a59a0f28d875eaa8c70f46aefca306014e29d502f0a8edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codegen/xai-grok-workspace/src/sandbox/calls.rs:672-681 | crates/codegen/xai-grok-workspace/src/sandbox/mod.rs:1097-1106 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/sandbox/calls.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"e591c12e66af4970e5490978f229a1ad5fbed5dd08a017039b551f86842d15f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codegen/xai-grok-test-support/src/acp_client.rs:471-480 | crates/codegen/xai-grok-test-support/src/leader.rs:699-707 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/acp_client.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c7c909d4cc18cf602a6c351dcec3d4bb9d2aa3231c606fa392d5b4fca46bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/codegen/xai-grok-test-support/src/process.rs:105-109 | crates/codegen/xai-grok-test-support/src/sandbox.rs:65-69 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/process.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa62b0b4ed53dc18f86d98eb2fe06adba497379ec59d2b6e9fc1eef2b26c398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs:56-90 | crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs:38-72 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 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/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9d024ba34782354932f505ac7f04cbb9ccdb23202cc03c0e10a19733eeaa29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): crates/codegen/xai-grok-test-support/src/sse.rs:571-600 | crates/codegen/xai-grok-test-support/src/sse.rs:667-696 | crates/codegen/xai-grok-test-support/src/sse.rs:988-1017 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:571\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codegen/xai-grok-test-support/src/sse.rs:698\u0060 calls \u0060split_whitespace\u0060 and \u0060crates/codegen/xai-grok-test-support/src/sse.rs:602\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7808e62704ae57a4b39e299f6bbb4cb14a374259d0294c4d1477757d81473e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/sse.rs:390-414 | crates/codegen/xai-grok-test-support/src/sse.rs:651-675 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:390\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c569d156211cd3148bfaff2236907a56185b08797e1f1155739fc6f52f5dd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs:119-142 | crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs:101-124 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 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/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"910fafeef7ee2437712d8fd8698d4e7c8091ce614b1b580b889eeec76b95ef7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs:92-113 | crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs:74-95 \u2014 before extracting anything, compare \u0060crates/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs\u0060 and \u0060crates/codegen/xai-grok-shell/src/test_support/lsp_runtime.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 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/codegen/xai-grok-shell/src/agent/subagent/isolated_spawn_e2e.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1450bc7d91fafa558e9798fb14aab38d4eb97964dbdf8383f9a9b2054115803a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): crates/codegen/xai-grok-test-support/src/sse.rs:402-420 | crates/codegen/xai-grok-test-support/src/sse.rs:567-585 | crates/codegen/xai-grok-test-support/src/sse.rs:663-681 | crates/codegen/xai-grok-test-support/src/sse.rs:984-1002 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe917325d88ea5e6a594723620cf3573cad41ab4a403cb3ec9a812286c1a5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/env.rs:188-206 | crates/codegen/xai-grok-test-support/src/env.rs:301-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/env.rs:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/env.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aa5f4c426d67e0d577be73db12a71ae79c52f569575515e42adb1d80f3c211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/sse.rs:598-615 | crates/codegen/xai-grok-test-support/src/sse.rs:709-727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:598\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"74402f570d38250d1dcb017fa57368accbdea08fcac7544223f0f99757b2eff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/sse.rs:449-465 | crates/codegen/xai-grok-test-support/src/sse.rs:735-752 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d4a6a21571d13c4d797ad6f032fd194c4ec068e752bf26359f4704de801c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/codegen/xai-grok-test-support/src/sse.rs:432-447 | crates/codegen/xai-grok-test-support/src/sse.rs:597-612 | crates/codegen/xai-grok-test-support/src/sse.rs:708-724 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1237e16601962779a490ec7f779699158f1ed2d8e36560d7767fb734dad1d78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/sse.rs:89-100 | crates/codegen/xai-grok-test-support/src/sse.rs:133-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/sse.rs:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"818fadafb93bfb0d85b452e2efac7c60f072c048efc512708a957489315e2139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/counting_server.rs:19-27 | crates/codegen/xai-grok-test-support/src/counting_server.rs:39-48 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/counting_server.rs:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/counting_server.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f86bffef592464b58d93f6bc5a8ebdf3cd3feada62e0b230f3a4bf44cac78ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/otel_decode.rs:29-38 | crates/codegen/xai-grok-test-support/src/otel_decode.rs:46-55 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/otel_decode.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a926492e922d6143a5c6dee862d7d1398cb927add856a7b88d1bcba3c5e2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/codegen/xai-grok-test-support/src/env.rs:137-145 | crates/codegen/xai-grok-test-support/src/env.rs:188-196 | crates/codegen/xai-grok-test-support/src/env.rs:301-308 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/env.rs:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codegen/xai-grok-test-support/src/env.rs:185\u0060 calls \u0060args\u0060, \u0060join\u0060, \u0060build_jobs\u0060 and \u0060crates/codegen/xai-grok-test-support/src/env.rs:136\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/env.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf6d64dccd21d404f2c0d375302c1164e47d7ea55c55f2e01edc09b689fa1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/env.rs:127-135 | crates/codegen/xai-grok-test-support/src/env.rs:175-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codegen/xai-grok-test-support/src/env.rs:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/env.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8d9490d06fc1fc58430f8feb83028e818c18f6ef327722419cfad242ed9ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/sse.rs:154-161 | crates/codegen/xai-grok-test-support/src/tool_call_turn.rs:244-251 \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/codegen/xai-grok-test-support/src/sse.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b712315896a4b0f31fb163741de43e1499800a0ad4d1825a8fe3d8d0fc165a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/acp_client.rs:447-455 | crates/codegen/xai-grok-test-support/src/leader.rs:660-668 \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/codegen/xai-grok-test-support/src/acp_client.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b591d3c4d89ac7ea81cd35c04e94d606b701e44bf2f37e6802cdac81a885e10a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/process.rs:116-122 | crates/codegen/xai-grok-test-support/src/sandbox.rs:77-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/process.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9662a8b80ba4e17ebcc925992977b623762e1a830fd959cebcd93854a3a8a8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codegen/xai-grok-test-support/src/headless.rs:115-119 | crates/codegen/xai-grok-test-support/src/headless.rs:121-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-test-support/src/headless.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"55965dd899cd9a29be3cc13ab1ce2776b0c72843902e0fdbcb8059efc88c92c3"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project xai-grok-pager: xai-grok-pager has instability 0.88 with 2 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6242995737a4a68bd4342d7ac163a1edd271a8b5fc99e62bae3dee73143de944"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project xai-grok-shell: xai-grok-shell has instability 0.83 with 4 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"577085f6766ce91a01e1968814b00e542748ed1b6fe77b95573dffd9b805b6c1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: prod-mc-cli-chat-proxy-types: prod-mc-cli-chat-proxy-types: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5027a8b20c30c8df67c14163cdd978a4e35dd4c153c0399d58462629888afafd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ptyctl: ptyctl: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1f2626b48b41baec5340199e9e90df319dd41d627ad0021ee1ba411a42809132"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-crash-handler: xai-crash-handler: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a32844cd042e1feb15956310f38d9deee03c7c071ae3cb78044a0aa0947eeabd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-fsnotify: xai-fsnotify: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e680e4b05b6530b8ee9c87b85b0641216c2b1cf6ab3e121806f237740f63c880"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-gboom: xai-grok-gboom: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a96755590c323d7b1a147f0d09d1ac2e467ab674429eacacc3e0def7911b951"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-pager-diff: xai-grok-pager-diff: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"74bf948f4b5b2cb8569c6c111e231173e0e7fec1e7aa0359e3696b96aa348abd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-plugin-marketplace: xai-grok-plugin-marketplace: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c146c7e4b052cc7ce93bf650b00b99df603749beee7c62ff34560f6ae91c80a0"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-tools-api: xai-grok-tools-api: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c88d657c0ea9aaa7be494f7770ef9079026f18a81e1ee94aa0f2764ce9fbc0dd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-workspace-client: xai-grok-workspace-client: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"10394655c997203e954b38f4f2f503023a2f94130dfc222d4b6136dcf25a92c7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-hooks-plugins-types: xai-hooks-plugins-types: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"234d5cd93e93dc59828809a9b0788552a4fcc42dccc2a670c60e09bf5076dfa1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-workflow: xai-workflow: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"da681f1d1f4d736f139e0167d0f5aebeda0aee9a28e238b0c6ed554d9546d827"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-workspace-types: xai-grok-workspace-types: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2b4c782535b7bf5b3f2bbb6fc1f811610f7e4483fc1a0e011b5bec5787e60e20"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-fast-worktree: xai-fast-worktree: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5313ed9b207f5632218daf451d0f625e12492863e894f8b6c881d97a5b31477c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-sandbox: xai-grok-sandbox: abstractness 0.03, instability 0.00, distance 0.97 \u2014 zone of pain \u2014 concrete and depended on by 10 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c5894d5ec89a63ea427ff3a9ad83dc4910045fe5301c709653a2ec06d22e0a27"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-hunk-tracker: xai-hunk-tracker: abstractness 0.04, instability 0.00, distance 0.96 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4b4df557fd24fa9235fa2fa2e5b01a99d130fc9eb202a92cbfde4cfec8f6eed1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-voice: xai-grok-voice: abstractness 0.10, instability 0.00, distance 0.90 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5ff5642cb6de66db010e6513db6639e1a60ecf10638db8aab4df773893d0c8f7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-computer-hub-mcp-adapter: xai-computer-hub-mcp-adapter: abstractness 0.13, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"be6f86f9c193e07d5b3f6f13e3e4a151cb1643b9c2615fafe8a77ab8beff153c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-workspace-daemon: xai-grok-workspace-daemon: abstractness 0.13, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a27963cac6c0a96805ba4f44f1ceb9d9de3c8cdd077dce373a25f997853da34d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-sampling-types: xai-grok-sampling-types: abstractness 0.02, instability 0.13, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6d09cb09b1666bfa908797589f3184137de80d7e81bb75737c0fb79605254708"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-hooks: xai-grok-hooks: abstractness 0.00, instability 0.20, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9dc3fb1a6c1675c8d046239c3042e7af52f037a1d9d8b2ea11a89fda49dd732a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-grok-compaction: xai-grok-compaction: abstractness 0.27, instability 0.00, distance 0.73 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"995c3712da023ac668a15a88b75bc83227ece063d5eb179daed23090b5f66052"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: xai-file-utils: xai-file-utils: abstractness 0.07, instability 0.22, distance 0.70 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2cc458e661f1320f165ab1bb76103499bdabbbcaf562068cfd4e1fb9060df285"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ToolDescription (LCOM4 4): ToolDescription\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tool-types/src/types.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce39747c011a6e9fe5be5f81c7ced5d56cca794f30e5ae8980e506ceda10a202"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/render.rs: crates/codegen/xai-grok-pager/src/app/agent_view/render.rs changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 511 in AgentView::draw at line 562. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/render.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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7d71863dce180dcc63820564a6105a03526ede8ce65e2f1cd09099b2420525"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/router.rs: crates/codegen/xai-grok-pager/src/app/dispatch/router.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 458 in xai_grok_pager::app::dispatch::router::dispatch_inner at line 165. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/router.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/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c520fb684b22c0a8c394321f672da1d0d65755ca40570e901a596c44898785"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/effects/mod.rs: crates/codegen/xai-grok-pager/src/app/effects/mod.rs changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 342 in xai_grok_pager::app::effects::execute at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/effects/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9886a5e8759e27c5c000a6e8629d5c635fbbdf0c8e25fc4a421f23dee1846e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/app_view.rs: crates/codegen/xai-grok-pager/src/app/app_view.rs changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 242 in xai_grok_pager::app::app_view::handle_welcome_input at line 3078. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/app_view.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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"49755ead51ade995c30683f6543318b3ad90ddb2055e125c6a55e5134a273af2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs: crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 313 in xai_grok_pager::app::dispatch::task_result::dispatch_task_result at line 457. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/task_result.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/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e258c249020167c46d7d6c2bea3d433d2b153ddaa9f40cc9f186576363fcc649"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/event_loop.rs: crates/codegen/xai-grok-pager/src/app/event_loop.rs changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 264 in xai_grok_pager::app::event_loop::run at line 1034. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/event_loop.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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0932fb2360e61bb59e4b0e99c1eb548fe2e8adec1f94931dfb5693ffc3ab56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 250 in xai_grok_shell::session::acp_session_impl::run_loop::run_session at line 354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.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/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c103f25c7b1190408f518c5fdc29f0159391dc11fd0af840068b291346d21ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/input.rs: crates/codegen/xai-grok-pager/src/app/agent_view/input.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 231 in AgentView::handle_input_inner at line 328. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/input.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/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"df56d79e43d34b8a0711ba2dac0124cb0b5e9ded665c6c6720772e705d7478a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs: crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 170 in xai_grok_shell::agent::subagent::handle_request::run_shell_child at line 357. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/subagent/handle_request.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/codegen/xai-grok-shell/src/agent/subagent/handle_request.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5347eb1287a8be74efde94d8c6ed7bd6b76f61347cdf6c2674c54314290b38d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 142 in xai_grok_shell::session::acp_session_impl::spawn::spawn_session_actor at line 217. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.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/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"39025a502933439bbb2b5dff65590c43990cd2d19de8604d355d2a2a17967b34"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/mouse.rs: crates/codegen/xai-grok-pager/src/app/mouse.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 224 in AgentView::handle_mouse at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/mouse.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/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b654a7ea38f7e4cd3a7d659ccec6eac06a69480589c47f36ed3edc1aa88f8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 154 in xai_grok_pager::app::acp_handler::session_notification::handle_session_notification_with_origin at line 184. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.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/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce819c6f10d25c6478e9bf71b518bf3a1db2a61a8e9fdc94d69007d257f52068"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in SessionActor::handle_turn_input_inner at line 503. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.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/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d7681b158d008c8e398139f9f26775d4d3faa508dac24cb3391248a0006f16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs: crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 140 in xai_grok_workspace::permission::manager::spawn_permission_manager_with_pin at line 438. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f158a1bfdc6880a714d99d7f17b5a90ccd015b0934a467f1d2ac7ece53d9f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs: crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in xai_grok_pager::app::dispatch::prompt::dispatch_send_prompt_submission at line 643. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1281ec733dcf5183ee05f7d6c9e27c327da3cc3dfc8b822712533b47011b0ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/persistence.rs: crates/codegen/xai-grok-shell/src/session/persistence.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 97 in SessionPersistence::run at line 2082. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/persistence.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/codegen/xai-grok-shell/src/session/persistence.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6539ab2bad8f9ef894e80cb3d8247a78b3c221a3d21014559a3f7ee8322992"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/hub_server.rs: crates/codegen/xai-grok-workspace/src/hub_server.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in WorkspaceRpcHandler::dispatch at line 392. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/hub_server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/hub_server.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"461cb58d64384139343f5928721886c4513558c0df46193ae6e663bd87a33fb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in SessionActor::cancel_running_task at line 251. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.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/codegen/xai-grok-shell/src/session/acp_session_impl/cancel.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bac39dc1a87064097b4d016b6f49dc72e70e83a97c0b1cd108a965c293b871f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/extensions_modal.rs: crates/codegen/xai-grok-pager/src/views/extensions_modal.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in xai_grok_pager::views::extensions_modal::render_extensions_modal at line 2768. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/extensions_modal.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/codegen/xai-grok-pager/src/views/extensions_modal.rs"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f86728311e26c3fd0cdc0b9475b4279863144715c05d9c344a92313bf49fa54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/compaction.rs: crates/codegen/xai-grok-shell/src/session/compaction.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in SessionActor::run_compact_inner at line 922. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/compaction.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/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcf76956452540adbcbc7693a2476b1ba7afca7fc75a6a533c70516e3f07b65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/leader/server.rs: crates/codegen/xai-grok-shell/src/leader/server.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in xai_grok_shell::leader::server::run_leader_server at line 1505. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/leader/server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6da6858d06931df63a75fd0c15910c39045d03379e6d0c9fb341d10c7b7e029"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in MvpAgent::spawn_and_register_session at line 4134. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.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/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":4134}}}],"partialFingerprints":{"codehealthFindingId/v1":"da41f4bc74c3bc0d7ea9d624256a78e3fae809118177c9b9b7ae0babd928c495"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs: crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in AgentView::handle_prompt_key at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb4b8a299f08560d147160cd521e56d8daeabdc83a4e010800a379dd5948fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in SessionActor::execute_tool_calls_batch at line 484. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.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/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a904683b240dbcaafc6e0b2774a3d008a4f139050fecb2595ca641788ccfa14b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/effects/helpers.rs: crates/codegen/xai-grok-pager/src/app/effects/helpers.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 99 in xai_grok_pager::app::effects::helpers::persist_setting at line 987. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/effects/helpers.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/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a33c24b5f34774d9fb60dcc58bd942001e879c84576fb5fba711222716689"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/dashboard/state.rs: crates/codegen/xai-grok-pager/src/views/dashboard/state.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in DashboardState::handle_key at line 2982. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8497fc3abdd802c846c6b549277adbb9ed58fff337a1a5b43615a2d0a4c776"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/acp/tracker.rs: crates/codegen/xai-grok-pager/src/acp/tracker.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in xai_grok_pager::acp::tracker::tool_call_to_block at line 1816. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/acp/tracker.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/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cf4ebb12ea963a59fb4e55bc77759111eee179d7959f862309510faf284e5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/mod.rs: crates/codegen/xai-grok-pager/src/app/mod.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in xai_grok_pager::app::run at line 707. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c0e51aad2b98d35bb698f01d00eea0365fedf097845bc13d0fc6b377b0732a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-agent/src/builder.rs: crates/codegen/xai-grok-agent/src/builder.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in AgentBuilder::build at line 696. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-agent/src/builder.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/codegen/xai-grok-agent/src/builder.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6220d3ac641f8b7f02de2fbf59152d85d4b1335a3d5f07d3c4b526bdbd2f75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/headless.rs: crates/codegen/xai-grok-pager/src/headless.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in xai_grok_pager::headless::run_single_turn at line 804. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/headless.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/codegen/xai-grok-pager/src/headless.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05298d3d3cab84ded7e4465a91f5654926b68333358739d883a43b281416552"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-bin/src/main.rs: crates/codegen/xai-grok-pager-bin/src/main.rs changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in xai_grok_pager_bin::run_agent_command at line 1227. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-bin/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae7b7634741f049cefa076227af5a0b8b8d75ab318d631b2895938fc894e803"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in xai_grok_pager::app::acp_handler::handle_inner at line 154. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"320cd7159009274c140b9802bc0310439e76f8bcd5ffc6ace3c78f262959e0f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in MvpAgent::prompt at line 1032. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.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/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8ab9e260f6af82a2ce91509866f450894db83549d3fa1263ada31660db7fe4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs: crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in PromptWidget::draw at line 2979. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"4783ff618a0c13d229d114fba10c007d60a812f1d7f094fb483cf21951480d97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/config.rs: crates/codegen/xai-grok-shell/src/agent/config.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in ConfigModelOverride::apply at line 3520. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/config.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f54e021dea66e9ded188f9282a02e10790895ffdd30a507260e07b9e27e1aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs: crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in xai_grok_pager::app::dispatch::settings::ui::apply_setting_rollback at line 824. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.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/codegen/xai-grok-pager/src/app/dispatch/settings/ui.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f8f39f4bbb50570a21cbf071aca14bfebcf9c0acc340e970407672e8d003b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/modals.rs: crates/codegen/xai-grok-pager/src/app/modals.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in AgentView::handle_palette_or_arg_input_with_registry at line 701. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/modals.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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a7c949dee17fd7bd9848d044a4ad01bc9b84f56e6a81e4e854be36d9283309"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/picker.rs: crates/codegen/xai-grok-pager/src/views/picker.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 175 in xai_grok_pager::views::picker::handle_picker_input at line 2480. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/picker.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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5f9693e7c9304e3c9d100a9237f1892acf07ccb926d636a2a38743a55b4eaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/agent.rs: crates/codegen/xai-grok-pager/src/views/agent.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in xai_grok_pager::views::agent::build_hints at line 685. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/agent.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/codegen/xai-grok-pager/src/views/agent.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8ff32856f250f4ef234629ba4637333f83b903063855d935c272eda98340f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs: crates/codegen/xai-grok-pager/src/app/agent_view/modals.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 113 in AgentView::execute_modal_button_action at line 1681. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/modals.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/codegen/xai-grok-pager/src/app/agent_view/modals.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33cf4b10444cd68c2ebbc7f131c45523f0ff55d1cbe95f0604cfce8c5fd7fe0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/handle.rs: crates/codegen/xai-grok-workspace/src/handle.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in WorkspaceHandle::session_bind_resolver at line 3217. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/handle.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/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826dd44b2308e4e371dfee1a28a2bdfb7d3c4416979e32daff360378edfda8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in SessionActor::execute_builtin_slash_command at line 5. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ac465b7b587d5aba87719b6fd74d516becf35b6089f9398056f9d4086d1c33"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs: crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in AgentView::handle_permission_key at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/interactions.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/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe12a140324336b8f05980305d4c6d7fe637644248ae7e8a1bce28efa0811fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/dashboard/render.rs: crates/codegen/xai-grok-pager/src/views/dashboard/render.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in xai_grok_pager::views::dashboard::render::render_footer at line 2577. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/dashboard/render.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/codegen/xai-grok-pager/src/views/dashboard/render.rs"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dad66d5be3f7ac9b0518905f2951d179a68479e8d49d573103879bef08c6440"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/app.rs: crates/codegen/xai-grok-shell/src/agent/app.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in xai_grok_shell::agent::app::run_leader at line 698. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/app.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f8dc90d232059b349d6b6ccef0de8cdf87614bc91f7bd35f9aa47c2e6da41e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in SessionActor::handle_sampling_failure at line 1189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.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/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad9280f6258b2541eb0eae38fae1a081ba28755027d369dae410a46343215ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs: crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in xai_grok_pager::app::dispatch::dashboard::dispatch_dashboard_dispatch_slash at line 1134. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/dashboard.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/codegen/xai-grok-pager/src/app/dispatch/dashboard.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"036dcff5acaf00a0be4814a51af6e6ea4f01c54024b20ba1afc2485c3bfe6b87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/config/mod.rs: crates/codegen/xai-grok-shell/src/config/mod.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in xai_grok_shell::config::apply_requirements_inner at line 1075. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/config/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef36775b44b4b89b445b13ee5166035b038fc2b3d7f437da201192746c24b84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/welcome/mod.rs: crates/codegen/xai-grok-pager/src/views/welcome/mod.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in xai_grok_pager::views::welcome::render_welcome_done at line 1709. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/welcome/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/welcome/mod.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f5fb757450d9f714fe6736838c4ba7e61e57557d01da2d1323cf021f6791a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/settings/registry.rs: crates/codegen/xai-grok-pager/src/settings/registry.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in xai_grok_pager::settings::registry::current_value_for at line 561. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/settings/registry.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/codegen/xai-grok-pager/src/settings/registry.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"683b2a475b2407ea02af4271425a1b8e78d67cf9da94a2044eaf795675b6797d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/types/output.rs: crates/codegen/xai-grok-tools/src/types/output.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in ToolOutput::to_prompt_format at line 655. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/types/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/codegen/xai-grok-tools/src/types/output.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f4ef253653950c65984ea4666d2548e4ed53024af9dafed46413cb3388d520"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs: crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in AgentView::handle_line_viewer_mouse at line 387. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/viewer.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/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"337e712491c8edb2e80cee1fc99835f35b83eb97cd7404e1f7757b177bc5cc0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/turn_status.rs: crates/codegen/xai-grok-pager/src/views/turn_status.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in xai_grok_pager::views::turn_status::render_turn_status at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/turn_status.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/turn_status.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21120f5d168ef9767fc99b4fe20fa9df2ebc4af2dcca623b8bba92464c60d93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/inspect/mod.rs: crates/codegen/xai-grok-shell/src/inspect/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in xai_grok_shell::inspect::print_human at line 1515. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/inspect/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"39be4504a3a95ccd1e7c1bdd7a3e203b3b4b61ea9c0372a8edc9baf4bc110141"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in xai_grok_pager::app::acp_handler::settings::handle_settings_update at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/settings.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/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9145019c6011d0d6c43ff84f65ef332dfbc25a7293093e931296f378c6cbacc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs: crates/codegen/xai-grok-shell/src/tools/notification_bridge.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in xai_grok_shell::tools::notification_bridge::handle_notification at line 239. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/tools/notification_bridge.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/codegen/xai-grok-shell/src/tools/notification_bridge.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"48895cbeede93cd2806fdf58d9a4c3fa9e17f6df5a23e0bc5f671c9e92ceb832"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in MvpAgent::new_session_inner_impl at line 388. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_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/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f6057c5f93fb228c1b890a687fd994a42f136134ab72b2ddf32f4bab6882f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/registry/types.rs: crates/codegen/xai-grok-tools/src/registry/types.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ToolRegistryBuilder::finalize_with_trunc_config at line 1025. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/registry/types.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/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f5d41cc032978f0b50c3efec8740dc44569bd99266afde00dd27259c26659d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs: crates/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in EntryRenderer::render at line 561. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.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/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2a8452a40618d7c895a64ff327a990f2e2dc76a1ef4e763f224efa2917bb69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs: crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in ScrollbackState::prepare_layout at line 1318. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/state/mod.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a844140ae280435e567d2456a647fc0cd7ced74701c30598186f1b0ffa91d1dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/common/xai-computer-hub-sdk/src/connection.rs: crates/common/xai-computer-hub-sdk/src/connection.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in xai_computer_hub_sdk::connection::run_writer at line 1533. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/common/xai-computer-hub-sdk/src/connection.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/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c7e905ac7d876d461c8262a47247dbc79d0bf0aecee2b5657f945cb8ccaaa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/folder_trust.rs: crates/codegen/xai-grok-workspace/src/folder_trust.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in xai_grok_workspace::folder_trust::collect_repo_config_kinds at line 433. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/folder_trust.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/codegen/xai-grok-workspace/src/folder_trust.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec545c516a71b28cbde0a550a57134119024da011b7afd7073c2115865e9dae1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs: crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in xai_grok_pager::app::dispatch::session::lifecycle::dispatch_new_worktree_session at line 1117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.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/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc077e309309b4966030334d65b5e764ecba682567ef2b3d558091f1ad16c26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs: crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_shell::agent::subagent::bootstrap_initial_context at line 1157. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e554e8cd426b78a8b0191d83f022a1105197acc2c38a3c0f34bd235e96c8aeeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs: crates/codegen/xai-grok-pager/src/app/dispatch/queue.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in xai_grok_pager::app::dispatch::queue::maybe_drain_queue at line 315. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/queue.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/codegen/xai-grok-pager/src/app/dispatch/queue.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a973bca93053a5f401e1902ea3d71337ecccda994db55ba75d642e99ec6b53"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs: crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in AgentView::handle_scroll at line 1102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/panes.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/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"631f39dc5a8932bb2653685483ba282335f8da2e0c7d4843763ecc65d1423f91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs: crates/codegen/xai-grok-pager/src/views/shortcuts_help.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in xai_grok_pager::views::shortcuts_help::handle_input at line 800. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/shortcuts_help.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/codegen/xai-grok-pager/src/views/shortcuts_help.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1f8a599d9a936ccffb54a02b7ec63c10b9c553b4e1cc563cd24845129e89ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/queue.rs: crates/codegen/xai-grok-pager/src/app/agent_view/queue.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in AgentView::handle_queue_key at line 517. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/queue.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/codegen/xai-grok-pager/src/app/agent_view/queue.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"34328d35a0a49763bb66e4fde860f693e50241c4e8ead62d4b201fdb0c02ed40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs: crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in xai_grok_shell::session::helpers::session_compact::generate_session_compact at line 433. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/session_compact.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b5ab2055d0779b4fe3db6feacd08f7a2f56f86e4bf40ff0b5e224e9842aa55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/mcp.rs: crates/codegen/xai-grok-shell/src/extensions/mcp.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in xai_grok_shell::extensions::mcp::handle_list at line 968. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/mcp.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/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1157592a3820b80e88abec72f2ff1f7c00b9ee3903ec87801bba062f853ecc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/render.rs: crates/codegen/xai-grok-pager/src/scrollback/render.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in xai_grok_pager::scrollback::render::render_scrolled_entries_with_selection_boundaries at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/render.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/codegen/xai-grok-pager/src/scrollback/render.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f389edf867293bb130c768177a7c6d16dd729924d01faa6145b374534cd5375"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/shell_access.rs: crates/codegen/xai-grok-permission-rules/src/shell_access.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in CompiledPolicy::evaluate_shell_file_access_inner at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/shell_access.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/codegen/xai-grok-permission-rules/src/shell_access.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b94653c9c02b104ad35dc6ac4e4a539d6a14d57c24a61e4fa77d58115c815c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-chat-state/src/actor/mod.rs: crates/codegen/xai-chat-state/src/actor/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in ChatStateActor::handle_command at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-chat-state/src/actor/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"82355e646b7b933ed1ce5b46d8e2e769991f6484f67bc0929e1627fa704c1ef1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/policy.rs: crates/codegen/xai-grok-permission-rules/src/policy.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in xai_grok_permission_rules::policy::shell_dash_c_script at line 420. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/policy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/policy.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa784f779d9271a146624d1bd5b774d12ff7fd6f8621fee4bda99d73dea5e4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/blocks/session_event.rs: crates/codegen/xai-grok-pager/src/scrollback/blocks/session_event.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in SessionEvent::message at line 373. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/blocks/session_event.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/codegen/xai-grok-pager/src/scrollback/blocks/session_event.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0e380ab016ac95aabdd6ec124b20cfeace40c0239868f93342b44f1c5863d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/computer/local/terminal.rs: crates/codegen/xai-grok-tools/src/computer/local/terminal.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in LocalTerminalActor::poll_process at line 1828. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/computer/local/terminal.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/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19c4bdf9277ffcc75208103b54708bfe77b06ee0d157279cd029e5dad06bc68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs: crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in xai_grok_workspace::bin::workspace_server::run at line 333. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"048ae71b045f382cf1b024a6e437528d8dab008042ce8bd396af9371622c419b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs: crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in xai_grok_pager::app::dispatch::session::load::dispatch_pick_session at line 302. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/session/load.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/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1abd0539d2a103a8e9ebfc9d4c0f93f96313787a690926c4b8c1d600732b30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MvpAgent::retry_subscription_check at line 1494. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5de474112beee677e8f8c9aff0aa31470c9c9cdad7e0682e0fd31e8fb59ec1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in TaskTool::run at line 352. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e7cfa64aaf56ba391a199dddd0ae1192c47494b19ac38a61db52c32639ff60"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in xai_grok_tools::implementations::grok_build::read_file::run_read_file at line 396. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d69583b0cb820e0ae25e0afa3cbf15dd0c492a6bdfe6a34357d9e2a2bc9d49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs: crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_grok_pager::app::agent_view::translate_local_submit at line 1582. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/mod.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd7eeb3a2892456e24ec742dd7b86333453a7bdb91538cfa5ca299c195a1d81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-ratatui-textarea/src/textarea.rs: crates/codegen/xai-ratatui-textarea/src/textarea.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in TextArea::handle_mouse at line 1076. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-ratatui-textarea/src/textarea.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/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad0bed1ae3fbf5c3a7fa702be7199fe198605908189efe72b3020107eb5a736"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs: crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in JsonlStorageAdapter::read_chat_history_sync_bounded at line 964. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f24c6d1178ef93b454e2c0d04fdb685a61640addf9e41d5132b8f8e8ff8f276"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/stream/responses.rs: crates/codegen/xai-grok-sampler/src/stream/responses.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in xai_grok_sampler::stream::responses::stream_responses_tracked at line 210. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/stream/responses.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/codegen/xai-grok-sampler/src/stream/responses.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"467a320e585216ccac2a078b1f867d81757115eb0ea0a99b5aa203cf6a86713a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/stream/messages.rs: crates/codegen/xai-grok-sampler/src/stream/messages.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in xai_grok_sampler::stream::messages::stream_messages at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/stream/messages.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/codegen/xai-grok-sampler/src/stream/messages.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6056b236ff3ddea85be5f65757d416eb8b20c621f58b737930fabbb5e317fde7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/session.rs: crates/codegen/xai-grok-pager/src/app/agent_view/session.rs changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentView::apply_reload_outcome at line 936. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/session.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"282c84e7daabca7f3356626980430cb01cf5e9753e113aaa3229af17970204c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/queue.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/queue.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in xai_grok_pager::app::acp_handler::queue::handle_queue_changed at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/queue.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/codegen/xai-grok-pager/src/app/acp_handler/queue.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a340d63317991748f65009ad5d537fd38784ee24380a6542da48b44417770ab0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/agent_rebuild.rs: crates/codegen/xai-grok-shell/src/session/agent_rebuild.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AgentRebuildSpec::build_agent_inner at line 200. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/agent_rebuild.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/codegen/xai-grok-shell/src/session/agent_rebuild.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"19757c702ed5a2296904c96b5b1675d98b41b8891582085e1197ef8fc79bb5e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/agents_modal.rs: crates/codegen/xai-grok-pager/src/views/agents_modal.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in xai_grok_pager::views::agents_modal::render_personas_tab at line 1462. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/agents_modal.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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca6d6718ede0f670d862eca471461bd1ca4ac9b0098b92a2a502584cc7b714"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in SessionActor::queue_input at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.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/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b48ca5d2caae552af0deff79497d446225d6636781c62a9925de48a168f081a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs: crates/codegen/xai-grok-pager/src/views/settings_modal/render.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in xai_grok_pager::views::settings_modal::render::render_picking_enum at line 929. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/settings_modal/render.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/codegen/xai-grok-pager/src/views/settings_modal/render.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a29f6db26b3b36f4f70726564cf29f93338be944733b5094f4e6105ddbcd223"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SessionActor::maybe_start_running_task at line 119. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.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/codegen/xai-grok-shell/src/session/acp_session_impl/notification_drain.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"91112747aa3b0ca579bbc6b3a2d6592adbdf2c068decbae4f22a761b738a147d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs: crates/codegen/xai-grok-pager/src/views/dashboard/peek.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in xai_grok_pager::views::dashboard::peek::extract_last_response_type at line 688. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/dashboard/peek.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/codegen/xai-grok-pager/src/views/dashboard/peek.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52f60cb6450abd22a87032f7c45734e193ef0d5a4fed4b91f7b19caf8d54ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs: crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in xai_grok_pager::views::file_search::line_viewer::render_line_viewer at line 1440. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/file_search/line_viewer.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/codegen/xai-grok-pager/src/views/file_search/line_viewer.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b35632c6d9c97d0ae17a67cc0fbef8aacc331adda1ecab26a99f3965dbd74d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in SessionActor::handle_plugins_action at line 362. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.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/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"158011410fbd84efefb2520bf51a2389a2aeaa0de5415551b64a68160cc47f05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/common/xai-computer-hub-sdk/src/server.rs: crates/common/xai-computer-hub-sdk/src/server.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ToolServer::run at line 1532. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/common/xai-computer-hub-sdk/src/server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/server.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d291a110338243f0e311f08e58a37d7e30c9e070a539595704fd9177d6a034"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/workflow/manager.rs: crates/codegen/xai-grok-shell/src/session/workflow/manager.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in WorkflowManager::launch at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/workflow/manager.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/codegen/xai-grok-shell/src/session/workflow/manager.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1a165f8fdacf6cd8fc8d63e1b2ffad3a1dc5dcd9c49bc9728942fa35700cd3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/signals.rs: crates/codegen/xai-grok-shell/src/session/signals.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in SessionSignalsActor::run at line 1073. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/signals.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/codegen/xai-grok-shell/src/session/signals.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da9bac645d478c1831370f4f5839231fd7798b7a21ff87b181b9faa8ae621f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/permission/prompter.rs: crates/codegen/xai-grok-workspace/src/permission/prompter.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in xai_grok_workspace::permission::prompter::map_selected_outcome at line 903. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/permission/prompter.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/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffb85b7806b1357e603cd3ebbe79c6458b82559420a755d69d576d2aa0477f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-update/src/auto_update.rs: crates/codegen/xai-grok-update/src/auto_update.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in xai_grok_update::auto_update::run_update at line 2561. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-update/src/auto_update.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c53127f7eb7fe8bf8d9eaea9881c45bf95bccb08adf39e722fe2492189edcf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/worktree.rs: crates/codegen/xai-grok-shell/src/extensions/worktree.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in xai_grok_shell::extensions::worktree::handle at line 169. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/worktree.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/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3e27178779091e956d3ca69df18e71f40ef7222eca9e4f58d68f7651ba216c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in SubagentCoordinator::handle_command at line 400. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.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/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"957befcbf93938e97a45e7a000f6cb9f83cd67b1f3fba3288520e28709e4f5e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-hooks/src/runner/command.rs: crates/codegen/xai-grok-hooks/src/runner/command.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in xai_grok_hooks::runner::command::run_command_hook at line 103. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-hooks/src/runner/command.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/codegen/xai-grok-hooks/src/runner/command.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafaef2a0a0c53112d6fb10f3f2748fbfdd41ecb5b323fd425cb5420b8556481"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-login/src/manager.rs: crates/codegen/xai-grok-login/src/manager.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AuthManager::apply_refresh_outcome at line 1409. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-login/src/manager.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/codegen/xai-grok-login/src/manager.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a641a63a2f0a4e3f7c171b2ad1472869db9090d13f5b0724d851749366134d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs: crates/codegen/xai-grok-pager/src/app/agent_view/selection.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AgentView::handle_scrollback_click at line 1082. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/selection.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/codegen/xai-grok-pager/src/app/agent_view/selection.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"95896e6d345ffaf185c12ecfe6171af85304ebc4aeb4c3853939f984c382318b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-login/src/flow.rs: crates/codegen/xai-grok-login/src/flow.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_login::flow::run_auth_flow_steps at line 448. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-login/src/flow.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/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e73dca9323642e1d1255fdee4221f115776b826f6a53dc5548b3a46dde1d38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-minimal/src/live.rs: crates/codegen/xai-grok-pager-minimal/src/live.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager_minimal::live::draw_live at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-minimal/src/live.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/codegen/xai-grok-pager-minimal/src/live.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"89eb4944326548da63e1823afa6b63c8b4fda9ee6540650f2144253e53eb96a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/question_view.rs: crates/codegen/xai-grok-pager/src/views/question_view.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager::views::question_view::render_question_chrome at line 1753. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/question_view.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/codegen/xai-grok-pager/src/views/question_view.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0169bf1b9ee115fc1ca500314b321f011b01bff01e43ab90e7493aee1791ba6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/render.rs: crates/codegen/xai-grok-markdown/src/render.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in ParsedMarkdown::render_ratatui at line 530. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/render.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/codegen/xai-grok-markdown/src/render.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"096b63f079a1fdd67ba572f4b2a0551eea106f180454c13a8770dfd59925e686"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in SessionActor::handle_xai_session_notification at line 635. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/updates.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/codegen/xai-grok-shell/src/session/acp_session_impl/updates.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e98365ec327b16ac3ad7c1152e7e93b22ede493723ba3937abec2641e385e4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/relay.rs: crates/codegen/xai-grok-shell/src/agent/relay.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in xai_grok_shell::agent::relay::run_websocket_session_with_liveness at line 474. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/relay.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8898c5885deee080ea788a1280bf8f45d76d10e0acf38ace6f42168ddff870"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/permission_view.rs: crates/codegen/xai-grok-pager/src/views/permission_view.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in xai_grok_pager::views::permission_view::render_permission_view at line 423. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/permission_view.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/codegen/xai-grok-pager/src/views/permission_view.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5651def5dfb61e7498ae56aab0c46db79a9eed3bac3d905fd441e54a738f18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_conversion.rs: crates/codegen/xai-grok-shell/src/session/acp_conversion.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in xai_grok_shell::session::acp_conversion::acp_tool_update at line 116. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_conversion.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/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa1535ff76e49813525279f6e9d0a8f6a7df2562461db9171ac1deb0c26869d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs: crates/codegen/xai-grok-pager/src/app/agent_view/plan.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AgentView::handle_plan_feedback_key at line 741. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/plan.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/codegen/xai-grok-pager/src/app/agent_view/plan.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9841b748a0619324372f2701fb73ab91d4c16b6c5fce9165f7a3d5f146649bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs: crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Summary::apply_patch at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/storage/summary_write.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/codegen/xai-grok-shell/src/session/storage/summary_write.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d136eb2605632db28abc7dcd6c6a15e5f9a0c55ac36be750389cb0d05f38bad5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampling-types/src/conversation.rs: crates/codegen/xai-grok-sampling-types/src/conversation.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_sampling_types::conversation::transform_conversation_cwd at line 1861. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampling-types/src/conversation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/conversation.rs"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4e2846bfb1fc5a81a1e24d837f41f79ded0da374a027c194e9d205e401f243"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SessionActor::run_init_pass at line 1269. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.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/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6966d33b7615d56a293cf11dd58b625ef54e7c9ecd13d37822b7687bee4cb766"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in BashTool::run at line 1868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22fb43cd9f777542ae8a950c2a639183442eac92ed8fd8804a5f5c3c91cdefb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/slash/mod.rs: crates/codegen/xai-grok-pager/src/slash/mod.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SlashController::command_suggestions at line 975. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/slash/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/mod.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecf82ba8a0a2398fc4386b888b3ea955284df819d807a025d0828019994dfc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/tasks_pane.rs: crates/codegen/xai-grok-pager/src/views/tasks_pane.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in TasksPane::sync at line 698. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/tasks_pane.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/codegen/xai-grok-pager/src/views/tasks_pane.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"0296af4be9ba2e709e75a536f2388d7708a1a68ab0772a63c7a6075c2f4bd3a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-render/src/terminal/mod.rs: crates/codegen/xai-grok-pager-render/src/terminal/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager_render::terminal::detect_terminal_brand_from_env at line 659. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-render/src/terminal/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/terminal/mod.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0f8fd6d26295aa37d21254ff8802b79a842668aab0168be82b98b9d266160c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/notes.rs: crates/codegen/xai-grok-pager/src/app/dispatch/notes.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager::app::dispatch::notes::dispatch_submit_feedback_modal at line 154. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/notes.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/codegen/xai-grok-pager/src/app/dispatch/notes.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46e8d266431dd6854a5efaaa83a99cf68d1b33517746ea9ddc8a6c6b1e8a3ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-mcp/src/servers.rs: crates/codegen/xai-grok-mcp/src/servers.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in McpClient::ensure_initialized at line 3639. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-mcp/src/servers.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/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":3639}}}],"partialFingerprints":{"codehealthFindingId/v1":"393fc6f06dffcb4ced97ec9df3ce98be35480675cc55708c7fb63215a07be375"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/hub.rs: crates/codegen/xai-grok-workspace/src/hub.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SessionRoutedToolHandler::handle_call at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/hub.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/codegen/xai-grok-workspace/src/hub.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec855b639fb2fca44b100b3a6d64f0caf865e59d817d5f02157ee01baac750"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/queue_pane.rs: crates/codegen/xai-grok-pager/src/views/queue_pane.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in QueuePane::render at line 844. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/queue_pane.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/codegen/xai-grok-pager/src/views/queue_pane.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3983ac0ac7acc1a15fc535d07006be8a9a9949f90a1f585e5a59a633f762d1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/goal_detail.rs: crates/codegen/xai-grok-pager/src/views/goal_detail.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in xai_grok_pager::views::goal_detail::render_goal_detail at line 405. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/goal_detail.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/goal_detail.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f87e378fb79bad58d8b8a0ac2d26a4a137ff257900fa66e21d25c87303bd12"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs: crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in xai_grok_pager::app::dispatch::modes::dispatch_cycle_mode_inner at line 690. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/modes.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/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb404109a79b00fcc88a655cd7b4e35ad634e061080b0bdc6264ab36e0a73f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SessionActor::handle_recap at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/recap.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/codegen/xai-grok-shell/src/session/acp_session_impl/recap.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff3b84180d66a836baf89785af0f4dba58b901330ee9235e39295358f6d7bfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs: crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_grok_workspace::permission::auto_mode::bash_command_is_routine at line 619. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/auto_mode/mod.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f21dc14cb0f85b7006c43bf663212765215cfe9363511a54f26d14afc21c272"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/client.rs: crates/codegen/xai-grok-sampler/src/client.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SamplingClient::new at line 510. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/client.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4f4a30a87aadef4bec3760380debeaa0ce37877b6c00d9b0f8d1fe6d59d21a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs: crates/codegen/xai-grok-pager-pty-harness/src/scripted.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in xai_grok_pager_pty_harness::scripted::run_step at line 698. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-pty-harness/src/scripted.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/codegen/xai-grok-pager-pty-harness/src/scripted.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa4fb894c9e37443a2eebadc0516d748240d9dd94b8d93c45e5adff9b6ef2fd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs: crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_pager::app::dispatch::turn::dispatch_cancel_turn at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/turn.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/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"612fbd385e869a907f052659bbed9edbbd57815be0042c1b04c347137b5e1cde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/actor/request_task.rs: crates/codegen/xai-grok-sampler/src/actor/request_task.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in xai_grok_sampler::actor::request_task::run_request_task at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/actor/request_task.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/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"202a8fded68106bd0aa953f1041b3833de0d3825882c175f215173ac49961f7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/leader/mod.rs: crates/codegen/xai-grok-shell/src/leader/mod.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_shell::leader::connect_or_spawn at line 1376. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/leader/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc911c08cd0029f700f3a46278507b2fe0df7e565635ca00a48a6949bbdc081"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SessionActor::handle_completion at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.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/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f2fff2e8a2d31c25b8d50a2c32381080e272d48fca1af7fa13ad59cf27d98d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/reminders/task_completion.rs: crates/codegen/xai-grok-tools/src/reminders/task_completion.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in TaskCompletionReminder::collect_reminders at line 699. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/reminders/task_completion.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/codegen/xai-grok-tools/src/reminders/task_completion.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"89748dd2ead284e01b07fd79f78ab201e8568ed85b7ea0d0bd8d8041135396a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs: crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in JsonlStorageAdapter::copy_session_data_sync at line 270. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/storage/jsonl/copy.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/codegen/xai-grok-shell/src/session/storage/jsonl/copy.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a147029bd4862bde6bf5bc3e860bf5603cc7bc5492fd26dc95ac5e3aa018b94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SchedulerActor::fire_next_task at line 295. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.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/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e0118de49491a2f1e131def3d07979c478f719cf6ea139f97ca50e37e7d954"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/storage/search_content.rs: crates/codegen/xai-grok-shell/src/session/storage/search_content.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in xai_grok_shell::session::storage::search_content::collect_all_indexable_content_single_pass at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/storage/search_content.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/codegen/xai-grok-shell/src/session/storage/search_content.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af4c3f4491c1ddd47cf4dde43c63d883b1f01d22ceae7ac0017179767aaa88b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SessionActor::run_memory_flush at line 541. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.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/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4403d7bb9a6d03d87f27e4510f70a224784b6324e1d45d9a657728c5469821e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SessionActor::resume_goal at line 868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.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/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c07fb2bcb859520388cb204768f19b331823df62e137a48924bdd9d4a5c471"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in SessionActor::handle_rewind at line 121. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.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/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f500e84e6a562a29102ca9b0eb2b74bb094567de97f32683decf3ac0b658fa4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/worktree/mod.rs: crates/codegen/xai-grok-workspace/src/worktree/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_workspace::worktree::create_worktree_streaming_in at line 1128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/worktree/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e354feb45be06d21fe10c67c42b7220f1e91607a0926ddd05c30b9dcf046b9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/btw_overlay.rs: crates/codegen/xai-grok-pager/src/views/btw_overlay.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager::views::btw_overlay::render_btw_panel at line 205. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/btw_overlay.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/codegen/xai-grok-pager/src/views/btw_overlay.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf0ec55b4111b65233efd038c3feb779aad3ec091fbbbfa0837f8c6cb3428eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/session/git.rs: crates/codegen/xai-grok-workspace/src/session/git.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_workspace::session::git::status_ungated at line 1476. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/session/git.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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c4e5e56cbf20454c4469d340683e4cb03ae9794a96a35a20ff12c7c7914f27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/api.rs: crates/codegen/xai-fast-worktree/src/api.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in xai_fast_worktree::api::try_btrfs_remove_from_metadata_inner at line 1089. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/api.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/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3d4829ebc4509e7f72ef1ef82e569f000e56e3745451138f6040d6fb8113e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/memory_modal.rs: crates/codegen/xai-grok-pager/src/views/memory_modal.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in xai_grok_pager::views::memory_modal::handle_memory_mouse at line 1497. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/memory_modal.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/codegen/xai-grok-pager/src/views/memory_modal.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a84d5a4dd42521eb9437bc8d2fc82cc06be9a2753089a42edfb0ee11875ba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs: crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ScrollbackPane::render_content at line 869. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.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/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"af592fe30a9c83434b7fbfd301e427655f02385b38551c6fe1018bc033076636"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/background.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in xai_grok_pager::app::acp_handler::background::handle_task_completed at line 506. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/background.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/codegen/xai-grok-pager/src/app/acp_handler/background.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49c6618d8f14955b9976c6b760214d65c07040e8d34937afe1a3086e9e42f55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/session_startup.rs: crates/codegen/xai-grok-pager/src/app/session_startup.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_pager::app::session_startup::materialize_startup_for_cwd at line 856. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/session_startup.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/codegen/xai-grok-pager/src/app/session_startup.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1d4437ca1dbd4ef3d7d61eabec4f2826932a518954389a4abd80b1711b6597"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/sampling/error.rs: crates/codegen/xai-grok-shell/src/sampling/error.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_shell::sampling::error::map_sampling_err_to_acp at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/sampling/error.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/codegen/xai-grok-shell/src/sampling/error.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a512b79ff5e62966e3d533e21074fb949cce6075e1b843ed5aae2dc7944c6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/parse.rs: crates/codegen/xai-grok-markdown/src/parse.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in MarkdownParser::on_start at line 870. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/parse.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/codegen/xai-grok-markdown/src/parse.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"5817e5d58773e42f8b5bacd60a513f9c0160c11e8657fe6236dcd12538ddfaa6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs: crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ListPaneState::prepare_layout at line 555. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/list_pane/state/methods.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/codegen/xai-grok-pager/src/views/list_pane/state/methods.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87d8acdc4678da6f61079ff40a1a8bbb1b28219ee9653bb6de71b42b6e69814"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/skills.rs: crates/codegen/xai-grok-shell/src/extensions/skills.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in xai_grok_shell::extensions::skills::handle at line 359. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/skills.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/skills.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"481f83c3454f02ffd25bf78545b86e46457e106a15849aeec9db2a546158f8bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/session_picker.rs: crates/codegen/xai-grok-pager/src/views/session_picker.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_pager::views::session_picker::build_entry_map at line 482. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/session_picker.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/codegen/xai-grok-pager/src/views/session_picker.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"6934a2eb818b4c432aa0c1e368df7f7e9be597de59b317f3da95ee6eb5bd7696"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/latex/commands.rs: crates/codegen/xai-grok-markdown/src/latex/commands.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in xai_grok_markdown::latex::commands::render_command at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/latex/commands.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/codegen/xai-grok-markdown/src/latex/commands.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97721e2681a107263a85fa53d63edd8a575a02d5e8446b77bd4ff187f82f1f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/persona_detail.rs: crates/codegen/xai-grok-pager/src/views/persona_detail.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in xai_grok_pager::views::persona_detail::render_persona_detail at line 356. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/persona_detail.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/persona_detail.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"869febea4c7a0a0f497fa099a348b3998b79a055fe2b4abc66dbe6754eb79f5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SessionActor::handle_set_session_model at line 5. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.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/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eea71e1548a039f8d18479506dc73d1349d7e8423d34a2fde73cb80d25f74fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/usage_modal.rs: crates/codegen/xai-grok-pager/src/views/usage_modal.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in xai_grok_pager::views::usage_modal::handle_usage_modal_mouse at line 403. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/usage_modal.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/codegen/xai-grok-pager/src/views/usage_modal.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"56994e6d94ec1c192f47ecee982d64a37abbb967958a672e2c6030f81cfe8d74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs: crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in xai_grok_pager::views::settings_modal::input::handle_settings_mouse at line 769. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/settings_modal/input.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/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"43527dcf54c5e6fb8970c41be1b5515285d1b2db2d8a3c2c853e61d43008ab87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs: crates/codegen/xai-grok-pager/src/app/dispatch/transcript.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in xai_grok_pager::app::dispatch::transcript::dispatch_open_block_viewer at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/dispatch/transcript.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/codegen/xai-grok-pager/src/app/dispatch/transcript.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"79afc2cbcaa34336a6ad0fadb2e787de00735a990dbfa017ef45c7faf88ab203"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_tools::implementations::grok_build::grep::grep_progress_stream at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a663066ec97f6393e0a719a584043cbfa228bd1b8279b9a409375cfb7525686a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-minimal/src/panel.rs: crates/codegen/xai-grok-pager-minimal/src/panel.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in xai_grok_pager_minimal::panel::render_mcps at line 310. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-minimal/src/panel.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/codegen/xai-grok-pager-minimal/src/panel.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ad30b3b854ce1ad3621e934278755115bc9a3a35511faa9b061f6520f5cf89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/server.rs: crates/codegen/xai-grok-shell/src/agent/server.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in xai_grok_shell::agent::server::handle_connection at line 338. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fc1e4657e0ad3dd084512fa5746c6dbc27761b34a3a954804fa1cb767ad5a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs: crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in HostService::spawn_agent at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/workflow/host_service.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/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e958af065d447dafa9f72bad53d3bd626fab69fa56e0b0c56d78bfe451489e67"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs: crates/codegen/xai-grok-pager/src/scrollback/state/nav.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ScrollbackState::ensure_selected_visible at line 592. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/state/nav.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/codegen/xai-grok-pager/src/scrollback/state/nav.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca16c785d665476240b2d6d8010abfcded46c80180278af4ad8ca2b1c7104465"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in SessionActor::manage_workflow_run at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.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/codegen/xai-grok-shell/src/session/acp_session_impl/workflow.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8c3dea8e90a04b11b560deb4b95503c416092eb88f558cc557bfff9add4251"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs: crates/codegen/xai-grok-pager/src/views/import_claude_modal.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in ImportClaudeModalState::handle_key at line 369. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/import_claude_modal.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/codegen/xai-grok-pager/src/views/import_claude_modal.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0bd901968f5e0f853e0208b15b1093e79a549fd5a76c0f57c2291243cab435"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-diff/src/lib.rs: crates/codegen/xai-grok-pager-diff/src/lib.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in xai_grok_pager_diff::build_diff_hunks at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-diff/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/codegen/xai-grok-pager-diff/src/lib.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b0aee54627eb9c29b5b2996a54f4e6542d5e2b3adec58bba3cee3e68fc24e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs: crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ReadTool::run at line 148. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecd033c52c639e8cdfa32d7fa8ac5b60b7641bb64ff25e613076e9022aa740a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/workflows.rs: crates/codegen/xai-grok-pager/src/views/workflows.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in xai_grok_pager::views::workflows::render_detail at line 679. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/workflows.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/codegen/xai-grok-pager/src/views/workflows.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7193b6491ec2932e56398bf07e0d97a55640d00657ef25609b4013038090fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-render/src/render/osc8.rs: crates/codegen/xai-grok-pager-render/src/render/osc8.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in xai_grok_pager_render::render::osc8::scan_logical_line at line 489. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-render/src/render/osc8.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/codegen/xai-grok-pager-render/src/render/osc8.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5494883305e9db21c2f016295bafdf55607b2c663a1e769a99661276b9f33c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_setup.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_setup.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SessionActor::maybe_refresh_model_metadata_on_resume at line 374. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/session_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/codegen/xai-grok-shell/src/session/acp_session_impl/session_setup.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf2613acd3d2ee0fe493dd1a3048cb0a435a03a1cf048d21ff6c024b435d953"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/resolution.rs: crates/codegen/xai-grok-permission-rules/src/resolution.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_permission_rules::resolution::resolve_claude_settings_inner at line 596. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/resolution.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/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a447a0c34a50f2301f5bbcee373a02833af6668335908dbf6733bb4434abf4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SessionActor::maybe_run_goal_planner at line 1157. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.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/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0079c58fbd59c10f0113cc20e15cf2f00450accf83a9cc88837be7aabde18391"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs: crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_grok_pager::app::acp_handler::interactions::handle_exit_plan_mode at line 221. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.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/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab29f4a3efa2421511bba1b01f0a414d6c5ee30059a4478ae48b82b4c19789e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs: crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in GrepTool::run at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9893e3a7c148c61a521d08b60663f8f698d70fff4325f2a99317a744656b736f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/retry.rs: crates/codegen/xai-grok-sampler/src/retry.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in xai_grok_sampler::retry::format_sampling_error at line 165. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/retry.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/codegen/xai-grok-sampler/src/retry.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ded3b9012082cabbbfb4af0165940712e2823b0331f4ee30741b15402c8589"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/common/xai-computer-hub-sdk/src/harness.rs: crates/common/xai-computer-hub-sdk/src/harness.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ToolHarness::start_tool_discovery at line 1830. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/common/xai-computer-hub-sdk/src/harness.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/common/xai-computer-hub-sdk/src/harness.rs"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"a292592893af6b22ce9930bb525d49b0dbd29c41db95486f05d25c6c6cbd2a96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/mcp_cmd.rs: crates/codegen/xai-grok-pager/src/mcp_cmd.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_pager::mcp_cmd::resolve_add at line 300. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/mcp_cmd.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/codegen/xai-grok-pager/src/mcp_cmd.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f362fefa8649f25b7cf712d450143f50797dbda12ee9dfdd4bac44ccf1140ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs: crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_permission_rules::bash_command_splitting::strip_wrapper_command at line 459. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.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/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea62d9858260b1e9e59f3b1f74be3db8797b7afdd9ef94cc6aa3fc44378c489"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sandbox/src/profiles.rs: crates/codegen/xai-grok-sandbox/src/profiles.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ProfileName::capability_set_from_profile at line 256. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sandbox/src/profiles.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/profiles.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"929a606bc84f3795c952ab406d199d2e6228d8e763d6f2531683eabb91fc12ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in SessionActor::handle_sampling_event at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.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/codegen/xai-grok-shell/src/session/acp_session_impl/sampling_events.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6d194dfeded41a654f519c1eb19258de687b4241fefa8f4bd0990bd0df1fd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/discovery.rs: crates/codegen/xai-fast-worktree/src/discovery.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in xai_fast_worktree::discovery::register_nfs_from_union at line 292. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/discovery.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/codegen/xai-fast-worktree/src/discovery.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04f60f50fa1c5649e688fdb9daa5693c161a84e3b074b44f647d51e321fb6dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs: crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in AgentView::handle_workflows_overlay_input at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.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/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"017f25119527138e83c80f13483e6d96d184e4061b79128b560b47c950244e3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs: crates/codegen/xai-grok-sampler/src/stream/chat_completions.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in xai_grok_sampler::stream::chat_completions::stream_chat_completions at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampler/src/stream/chat_completions.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/codegen/xai-grok-sampler/src/stream/chat_completions.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec3bd3384bbd320e6467648e261f39d90e4689535e8a5ed2e10fbb6a5b4db4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/marketplace.rs: crates/codegen/xai-grok-shell/src/extensions/marketplace.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_shell::extensions::marketplace::handle_add_source at line 660. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/marketplace.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/codegen/xai-grok-shell/src/extensions/marketplace.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c14f82e8185a0d85512d7bbed59606625c34274c27fa50c210c3cdb0b46e9c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/diagnostics/fix.rs: crates/codegen/xai-grok-pager/src/diagnostics/fix.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in xai_grok_pager::diagnostics::fix::classify_tmux_assignment at line 1313. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/diagnostics/fix.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/codegen/xai-grok-pager/src/diagnostics/fix.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35cd63f25a873f04a7618f8ce5ab91b194e1d37004db5dcdc8f41464979a7fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/mcp.rs: crates/codegen/xai-grok-workspace/src/mcp.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_workspace::mcp::drive_server_starts at line 480. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/mcp.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/codegen/xai-grok-workspace/src/mcp.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a965b01cde71799a88a222d4cdb30c7f6f5ec40f852a806d0666479435c33aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/goal_classifier.rs: crates/codegen/xai-grok-shell/src/session/goal_classifier.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_shell::session::goal_classifier::run_verification_stage at line 1582. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/goal_classifier.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/codegen/xai-grok-shell/src/session/goal_classifier.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a33fa6b8ca5a875c531166d000ec5c9d7d8887c1a4151d1e544828d576c3d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/latex_delimiters.rs: crates/codegen/xai-grok-markdown/src/latex_delimiters.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in LatexDelimiterNormalizer::process at line 148. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/latex_delimiters.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/codegen/xai-grok-markdown/src/latex_delimiters.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc76218debb9bfacc8b8aa576e8f26933f9c79df5dc28fcb95bcd2bb670c14"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/block.rs: crates/codegen/xai-grok-pager/src/scrollback/block.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RenderBlock::accent_color at line 837. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/block.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/codegen/xai-grok-pager/src/scrollback/block.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6882d02fbd40c7121946dc9d253c3d7af7dd8e50b8405220fc9df110b592ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs: crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ScrollbackState::measure_window_exact at line 662. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/state/layout.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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb795a46f2c77129f199de0ec57914ee0999cd656593eeba1dde489053795dd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in VideoGenClient::generate_with_images at line 313. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1282f143cdbb203e808fbad2e4ff10a29182110e76ede985a90c35eb84772af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/feedback.rs: crates/codegen/xai-grok-shell/src/extensions/feedback.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_shell::extensions::feedback::handle_feedback at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/feedback.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/codegen/xai-grok-shell/src/extensions/feedback.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"731e475dec8e9d17c1ef1265f924277e86bdf47ad6ad2a9752dc1cdf4fafa15b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/mermaid.rs: crates/codegen/xai-grok-markdown/src/mermaid.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in xai_grok_markdown::mermaid::layout_canvas at line 1868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/mermaid.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/codegen/xai-grok-markdown/src/mermaid.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc5099a395dcefba9d5d25b40f7a05698ad5ba78a098ff2e5c9b759cd86158e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs: crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in StreamingLocalTerminalRunner::run_streaming_loop at line 492. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.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/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"04862519f30e74baba654c28a86a140a0ca33886518b0a130f47e8fad78718a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-config-types/src/memory.rs: crates/codegen/xai-grok-config-types/src/memory.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in MemoryConfig::resolve_settings at line 655. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-config-types/src/memory.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config-types/src/memory.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"35009972b038c563632169970ae0c2ab2c28dd8b61973aad75de415320d2c0fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs: crates/codegen/xai-grok-pager/src/scrollback/text_selection.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_pager::scrollback::text_selection::semantic_selection_at at line 1350. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/text_selection.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/codegen/xai-grok-pager/src/scrollback/text_selection.rs"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcccf43fb601b43e54dbbe8bb75fea2a70d81c8d82dcdd93e0b98d31aa85322e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/consent.rs: crates/codegen/xai-grok-pager/src/app/consent.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in xai_grok_pager::app::consent::handle_answer at line 498. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/consent.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/codegen/xai-grok-pager/src/app/consent.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"657e93b73e8b5e573fa7a0324755569c87958f567a9e4e410f32d1237862958f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs: crates/codegen/xai-grok-pager/src/scrollback/blocks/user.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in UserPromptBlock::wrap_prompt_lines at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/blocks/user.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/codegen/xai-grok-pager/src/scrollback/blocks/user.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45a58d85ca022d21b950290185efa2743fed71b189620cb670a54effd7d2f64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/config/reloader.rs: crates/codegen/xai-grok-shell/src/config/reloader.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ConfigReloader::run at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/config/reloader.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/codegen/xai-grok-shell/src/config/reloader.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f3acb7ba32b7f8febada235daa98eec7f283c9908242454a723263edf8f558"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/mcp_dispatcher.rs: crates/codegen/xai-grok-shell/src/session/mcp_dispatcher.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_shell::session::mcp_dispatcher::run_dispatcher at line 489. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/mcp_dispatcher.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/codegen/xai-grok-shell/src/session/mcp_dispatcher.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"818fa1c1cf6960d9712e593ae7e21c2eaaf3fc4d3e5b44bcbdcce8274c8c1da1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/permission/hub_permission.rs: crates/codegen/xai-grok-workspace/src/permission/hub_permission.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_workspace::permission::hub_permission::reply_to_outcome at line 197. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/permission/hub_permission.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/codegen/xai-grok-workspace/src/permission/hub_permission.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b712a978fe6a8038db02b64f992e471d07398011939ea0389c82d6cd157c884"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-file-utils/src/queue.rs: crates/codegen/xai-file-utils/src/queue.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_file_utils::queue::upload_with_retries at line 1875. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-file-utils/src/queue.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/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"694623a4b6ebbcd0fe97aedf7af58f2184d93de8b3048fab4b9f00339d1cc126"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs: crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_shell::session::storage::relocation::load_candidates at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/relocation/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"554aba33a996e5fcd4380a1e4ff944732673baac7053e8594f9d09e20d73cd2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/notifications/title.rs: crates/codegen/xai-grok-pager/src/notifications/title.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in xai_grok_pager::notifications::title::write_item at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/notifications/title.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/codegen/xai-grok-pager/src/notifications/title.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddddb169e1eb274adc8fcacf2b9d05e3264d80404e14fbcaaafccaf6d29b4d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/session/checkpoint.rs: crates/codegen/xai-grok-workspace/src/session/checkpoint.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WorkspaceHandle::on_turn_boundary at line 208. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/session/checkpoint.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/codegen/xai-grok-workspace/src/session/checkpoint.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"308aa81523a6e7b9fe531124088823bfb770cb09ef67bdf05a7c667e60b8c639"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MvpAgent::maybe_spawn_interactive_trust_prompt at line 77. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/folder_trust_prompt.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4421ecba3a5bf9e2e20fa901b4e68bd7fb253a55c5a5afac2e2250de9e921a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs: crates/codegen/xai-grok-pager/src/views/slash_dropdown.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_pager::views::slash_dropdown::render_dropdown at line 126. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/slash_dropdown.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/codegen/xai-grok-pager/src/views/slash_dropdown.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5742c70340088ce70bb3c574ee22bcd776e86a6da3d282766326345c9388a93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell-terminal/src/pty_session.rs: crates/codegen/xai-grok-shell-terminal/src/pty_session.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_shell_terminal::pty_session::run_pty_output_loop at line 395. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell-terminal/src/pty_session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/pty_session.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d36fc12e2a907345a81041e5ee6f900810438607aaeb250a31ea935169c0489"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs: crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in GlobTool::run at line 149. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad87a170756c78ea788965489b4e25e81f62994eb2cc6ef8e3e5eb92dc67c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/rules.rs: crates/codegen/xai-grok-permission-rules/src/rules.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_permission_rules::rules::parse_permission_rule at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/rules.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/codegen/xai-grok-permission-rules/src/rules.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ae7232de84a7f8f45403a46e35e41cfc458dd0583d98c7d54021754a7f3cac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs: crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_tools::implementations::skills::skill::resolve_skill_internal_links at line 327. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/skills/skill.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/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"447807f4b5a8fab45f3f6e0a06eae706077a547a89ee54f71aa79ccac7881545"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/agent_view/cta.rs: crates/codegen/xai-grok-pager/src/app/agent_view/cta.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AgentView::draw_plugin_cta at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/agent_view/cta.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/codegen/xai-grok-pager/src/app/agent_view/cta.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cc848762a5f68908be46da499343b2b0a37a6f9df36172dd8922ce6314f47d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/list_pane/render.rs: crates/codegen/xai-grok-pager/src/views/list_pane/render.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ListPane::render_items at line 214. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/list_pane/render.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/codegen/xai-grok-pager/src/views/list_pane/render.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c857f1d51618b669eb82fd5a31e80a9e2e20f5b24364ebadbe8be13cc1e547"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs: crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in xai_grok_shell::session::goal_classifier::evidence::walkdir_changes_blocking at line 654. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/goal_classifier/evidence.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/codegen/xai-grok-shell/src/session/goal_classifier/evidence.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e671603279574f55072f101a86f5e53fba4e4b4b341e78680092f88dc4b967c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-telemetry/src/external/config.rs: crates/codegen/xai-grok-telemetry/src/external/config.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ExternalOtelConfig::resolve_with at line 351. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-telemetry/src/external/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/external/config.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"30618c5f67e48346d9acb563dadceb871a24d2513dd799ce5ab4b79f2938673e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs: crates/codegen/xai-grok-pager/src/views/file_search/dropdown.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in xai_grok_pager::views::file_search::dropdown::render_fuzzy_item at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/file_search/dropdown.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/codegen/xai-grok-pager/src/views/file_search/dropdown.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"051f5b3d44e33851372b1358e6adf1c7b60c792b93c8002dcef4cf7936fde90e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-session-search/src/bootstrap.rs: crates/codegen/xai-grok-session-search/src/bootstrap.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in xai_grok_session_search::bootstrap::reindex_all at line 441. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-session-search/src/bootstrap.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/codegen/xai-grok-session-search/src/bootstrap.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc93d0aecc51215d612e24c6520fbbc4e9dd3214befee787f34194b87e8df8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sandbox/src/deny/glob.rs: crates/codegen/xai-grok-sandbox/src/deny/glob.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_sandbox::deny::glob::validate_deny_glob at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sandbox/src/deny/glob.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/codegen/xai-grok-sandbox/src/deny/glob.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4c039ca923b213339b5db4227569bc02e06932cfc981dfd48761f0caee837"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in HashlineEditTool::run at line 298. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b3cf95b030d0a919ea4ed76c58f8338a4962179d3de43be9c4b6e7f56340e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-login/src/oidc/refresh.rs: crates/codegen/xai-grok-login/src/oidc/refresh.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_login::oidc::refresh::oidc_token_exchange at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-login/src/oidc/refresh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/oidc/refresh.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c73c63044ba5e6678e1e2b1376bbe042b42d1db74a7ece8ba6f4cb908bb8bf1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs: crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in xai_grok_pager::scrollback::blocks::tool::other::parse_ask_user_qa_pairs at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.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/codegen/xai-grok-pager/src/scrollback/blocks/tool/other.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86e5ea2e05c6782164f5607adbd235b863a95776b3e182fd859bbb86edbc2f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SessionActor::maybe_fire_laziness_check at line 277. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.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/codegen/xai-grok-shell/src/session/acp_session_impl/laziness.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c435eb32dd42c02faaee6cd303334f7cdfea8dd3a294453ec66403597c0a7b08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-test-support/src/scripted.rs: crates/codegen/xai-grok-test-support/src/scripted.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ScriptedResponse::into_response_paced at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-test-support/src/scripted.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/codegen/xai-grok-test-support/src/scripted.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21cfb6cb09657e5f7101ff85d371d580557ed0c32a75f32d5721c8c6c84ec97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown-core/src/lib.rs: crates/codegen/xai-grok-markdown-core/src/lib.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_markdown_core::analyze at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown-core/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/codegen/xai-grok-markdown-core/src/lib.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dd7d4bae86a2585f4fa476ec7cbbe1d2616b8b8cf8fd96976eff1a0d8a2576"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/relay/sync.rs: crates/codegen/xai-grok-shell/src/relay/sync.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_shell::relay::sync::relay_sync_task at line 305. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/relay/sync.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/relay/sync.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55739a0c7c7ff333385e780986d08a6dd4172bec64289d425683cc6c542c91d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.rs: crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_pager::views::new_worktree_dialog::render_new_worktree_dialog at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.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/codegen/xai-grok-pager/src/views/new_worktree_dialog.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c6676f6543737fc3c4cb4f6c761872209492ba1edd0f15a6505ff2296e30c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-agent/src/prompt/agents_md.rs: crates/codegen/xai-grok-agent/src/prompt/agents_md.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_agent::prompt::agents_md::read_agents_config_with_roots at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-agent/src/prompt/agents_md.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/codegen/xai-grok-agent/src/prompt/agents_md.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d95aaa1052f022ddafac7bfba33e7cd25a17aaa34457f906a8212e0f331ac5c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-telemetry/src/external/emit.rs: crates/codegen/xai-grok-telemetry/src/external/emit.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_grok_telemetry::external::emit::emit_record at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-telemetry/src/external/emit.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/codegen/xai-grok-telemetry/src/external/emit.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eca76d284cf729017140346f407d5dde8833fa8f9912ebe62bbd4f14fdefaf9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-agent/src/plugins/discovery.rs: crates/codegen/xai-grok-agent/src/plugins/discovery.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_agent::plugins::discovery::discover_plugins at line 256. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-agent/src/plugins/discovery.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/codegen/xai-grok-agent/src/plugins/discovery.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"83351039bba23786fa7f081b2090c728553912498c9b8ce8e3f7e679674f13f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-voice/src/pipeline.rs: crates/codegen/xai-grok-voice/src/pipeline.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_voice::pipeline::start_capture_session at line 317. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-voice/src/pipeline.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/codegen/xai-grok-voice/src/pipeline.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e7bcd01a725ed7ee03b3e817af413c73d7486b3dae92978dd2bed447a83f29"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-memory/src/backend.rs: crates/codegen/xai-grok-memory/src/backend.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MemoryBackendImpl::search at line 327. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-memory/src/backend.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/codegen/xai-grok-memory/src/backend.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3258e1bdeb2b1d307ba68d342655b39140649d70d530b4875e910fea24e59332"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/api/gc.rs: crates/codegen/xai-fast-worktree/src/api/gc.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in xai_fast_worktree::api::gc::reclaim_expired_worktrees at line 482. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/api/gc.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/codegen/xai-fast-worktree/src/api/gc.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc91147d863cf73513acae7b96b2820f182d766b2ed962df2b5cf5c8069b730"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_shell::session::acp_session_impl::laziness_classifier::flatten_transcript_for_classifier at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.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/codegen/xai-grok-shell/src/session/acp_session_impl/laziness_classifier.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d11715e31e2a62401f969896ef60939440348b07879933fcbed9639611b577"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs: crates/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in MvpAgent::forward_raw_replay_line at line 79. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/agent/mvp_agent/replay.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/codegen/xai-grok-shell/src/agent/mvp_agent/replay.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d62068411a3c86dd53396fd4f4b99169439d171b30cebb09c92bc4f32892eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/wrap_filter.rs: crates/codegen/xai-grok-pager/src/wrap_filter.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Osc52Filter::feed at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/wrap_filter.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/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1333b23a83984bfe909d70a7f1be70c7b618bca1f050d2d3229e2cf52d6d89d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-gboom/src/game.rs: crates/codegen/xai-grok-gboom/src/game.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Game::step_imps at line 527. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-gboom/src/game.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/codegen/xai-grok-gboom/src/game.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ab83f8bc2924a5cb4fe1e5a928294ce407a65d66bfb1423f30066622ea84aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-test-support/src/inference_override.rs: crates/codegen/xai-grok-test-support/src/inference_override.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in InferenceOverrides::response_override at line 337. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-test-support/src/inference_override.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/codegen/xai-grok-test-support/src/inference_override.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46c69894a9844f1139c04a29c76e1b78c5d83fdd4ec3c87b496497944880a81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-render/src/render/highlight.rs: crates/codegen/xai-grok-pager-render/src/render/highlight.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in xai_grok_pager_render::render::highlight::paint_match_highlights at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-render/src/render/highlight.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/codegen/xai-grok-pager-render/src/render/highlight.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d2402705d745eb1f29b5152ff84ff811542dd2dae943b9cb4a7dfaf700c2a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AskUserQuestionTool::run at line 326. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"409916642a09dd8a90e306c4e7346aeec7261f95d26f730648cc8fdc57076f3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-memory/src/v2.rs: crates/codegen/xai-grok-memory/src/v2.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in xai_grok_memory::v2::render_manifest_from_source at line 469. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-memory/src/v2.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/codegen/xai-grok-memory/src/v2.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b22f354678b42f342fcf99094e33e488f4e894545dee9510229fb24d5059f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/two_pass.rs: crates/codegen/xai-grok-shell/src/session/two_pass.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in xai_grok_shell::session::two_pass::snap_split_idx_to_tool_boundaries at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/two_pass.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/codegen/xai-grok-shell/src/session/two_pass.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57be1182c2de45d20cd5c5e5857ca75eff01a98d18d14ac3ff89f0435dd0cda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-markdown/src/latex/environments.rs: crates/codegen/xai-grok-markdown/src/latex/environments.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in xai_grok_markdown::latex::environments::env_rows_to_strings at line 103. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-markdown/src/latex/environments.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/codegen/xai-grok-markdown/src/latex/environments.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47fef26a887d356efa97cd946c22c5a9348511dfef77444de6ec1ac3cc6ae06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-plugin-marketplace/src/installer.rs: crates/codegen/xai-grok-plugin-marketplace/src/installer.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_plugin_marketplace::installer::update_from_marketplace_entry_transactional at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-plugin-marketplace/src/installer.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/codegen/xai-grok-plugin-marketplace/src/installer.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7146dcee5a70ea71363604a904b11097b26c169072a7f89bb9cc04fc6cb2cce2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-agent/src/plugins/registry.rs: crates/codegen/xai-grok-agent/src/plugins/registry.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PluginRegistry::from_discovered at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-agent/src/plugins/registry.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/codegen/xai-grok-agent/src/plugins/registry.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5430773de8a39616855b13f55a4ab7c157ee7241ef9c16e5f11dcc71723144c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs: crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in MessagesReducer::reduce at line 495. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/reducer/messages/mod.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c2809dfaa2b9b538cee0e88692fd343e6a679dbe52b44c634363b8d38782a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/disk_usage_cmd/display.rs: crates/codegen/xai-grok-pager/src/disk_usage_cmd/display.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_pager::disk_usage_cmd::display::print_report at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/disk_usage_cmd/display.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/codegen/xai-grok-pager/src/disk_usage_cmd/display.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0101279c0f319008e703f6491769aa58f2f8af60814c901c5fb69b1227a1915"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/auto_gc.rs: crates/codegen/xai-fast-worktree/src/auto_gc.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_fast_worktree::auto_gc::maybe_auto_gc at line 365. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/auto_gc.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/codegen/xai-fast-worktree/src/auto_gc.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7585b3c67b457ae1988bfce313fdd3866e569b517010f9ed1daa48abb50eed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/effects/session_list.rs: crates/codegen/xai-grok-pager/src/app/effects/session_list.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in xai_grok_pager::app::effects::session_list::parse_session_picker_entries_with at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/effects/session_list.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/codegen/xai-grok-pager/src/app/effects/session_list.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaabc64e6a779013b238a832613ed717dc97cf918278b3e29bd47f86a4c24403"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-login/src/manager/refresh_chain.rs: crates/codegen/xai-grok-login/src/manager/refresh_chain.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AuthManager::refresh_chain at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-login/src/manager/refresh_chain.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/codegen/xai-grok-login/src/manager/refresh_chain.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea56fdf69be29db78ed326522254d929a194b1882fc6c1e9a306e71f566476f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-sampling-types/src/conversation/messages.rs: crates/codegen/xai-grok-sampling-types/src/conversation/messages.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in xai_grok_sampling_types::conversation::messages::build_messages_request at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-sampling-types/src/conversation/messages.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/codegen/xai-grok-sampling-types/src/conversation/messages.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"30702fdae1b49e26da7dfd5fb5e0c8386f393e819c73ad4411d4e4de52f73656"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/git/worktree.rs: crates/codegen/xai-fast-worktree/src/git/worktree.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_fast_worktree::git::worktree::remove_stale_worktree_registrations at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/git/worktree.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/codegen/xai-fast-worktree/src/git/worktree.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"870d33dcd1f3eab32c990d6e545d04ac0072205491e243af42d64d01ea17452f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-gboom/src/engine.rs: crates/codegen/xai-grok-gboom/src/engine.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Renderer::draw_walls at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-gboom/src/engine.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/codegen/xai-grok-gboom/src/engine.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e093e6445f1610082f05c103714d46318a739012d3b637e300ba4c92b9450a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/modal_window.rs: crates/codegen/xai-grok-pager/src/views/modal_window.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in xai_grok_pager::views::modal_window::render_modal_shortcuts at line 627. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/modal_window.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/codegen/xai-grok-pager/src/views/modal_window.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39b256c2660429fc8867b89bfea24ab5a321047def33965a9e1b5cfd850a86b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs: crates/codegen/xai-grok-pager/src/doctor_cmd/human.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in xai_grok_pager::doctor_cmd::human::format at line 10. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/doctor_cmd/human.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/codegen/xai-grok-pager/src/doctor_cmd/human.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f1373597e487b4bfbe81535a0535de9c0c91ff67788f9340f2def0af6dd03f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/extensions/session_updates.rs: crates/codegen/xai-grok-shell/src/extensions/session_updates.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_shell::extensions::session_updates::try_stream_tail_page at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/extensions/session_updates.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/codegen/xai-grok-shell/src/extensions/session_updates.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bc9d10dee5e902c8cfae6ab8f0b463f6777db35609a3fb0734e5c93c0d9276"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/file_system/content.rs: crates/codegen/xai-grok-workspace/src/file_system/content.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in xai_grok_workspace::file_system::content::content_search_streaming at line 131. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/file_system/content.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/codegen/xai-grok-workspace/src/file_system/content.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dca6916a1e82485f0294b772ce4b56f07d240e357af4d7d3d59fe7532ae46e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/dashboard/chrome.rs: crates/codegen/xai-grok-pager/src/views/dashboard/chrome.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_pager::views::dashboard::chrome::render_header at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/dashboard/chrome.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/codegen/xai-grok-pager/src/views/dashboard/chrome.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"691df1ab8be9dcffa109aa3f957ac89415c18193ea0aac3bbede78fc9998012c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs: crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_pager::views::completion_dropdown::render_dropdown at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/completion_dropdown.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/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e0070fbacec72cfacb59ef9de3902ca3f9422694e885c0d5b09610d33ca590"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.rs: crates/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in SessionActor::execute_v2_dream at line 748. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.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/codegen/xai-grok-shell/src/session/acp_session_impl/v2_memory_dream.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"157000feae3d5a83e799c48c2ee976a84c0ba4e756c7b96932aced2c1fb7e9e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs: crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in xai_grok_tools::implementations::codex::apply_patch::seek_sequence::seek_sequence at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.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/codegen/xai-grok-tools/src/implementations/codex/apply_patch/seek_sequence.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a422325ea64dd737b2e83b3660e964e2737d53b4003c753fb482d3189099978"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/sync.rs: crates/codegen/xai-fast-worktree/src/sync.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in xai_fast_worktree::sync::apply_porcelain_v2_entries at line 298. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/sync.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fast-worktree/src/sync.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"66783e48179daec9c6518d241c1de2ca936f0c67d4610e55fdcccc5859c264c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs: crates/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_permission_rules::managed_policy::apply_policy_source at line 258. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/mod.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"688bbafdacbaf44de8d5e76558f4ef3775ff9443ed388dc3c5bd1d76c6ad474d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-test-support/src/model_reply.rs: crates/codegen/xai-grok-test-support/src/model_reply.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_test_support::model_reply::render_responses at line 430. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-test-support/src/model_reply.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/codegen/xai-grok-test-support/src/model_reply.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e760a9394f5ce4f32383b4348cfac09a715cfbfdc1b4fb53a0575016f05654f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/dock/mod.rs: crates/codegen/xai-grok-pager/src/views/dock/mod.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_pager::views::dock::render at line 257. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/dock/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dock/mod.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51af46037cfd8cd2a5aa943dbadc7511f6bd598922b15570e61f13bfd2d1f7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/app/status_line/command.rs: crates/codegen/xai-grok-pager/src/app/status_line/command.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_pager::app::status_line::command::run_command at line 220. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/app/status_line/command.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/codegen/xai-grok-pager/src/app/status_line/command.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda50e438c65555d63e8ced8817491f099e7606506d1cfd7bc8778230be73776"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/welcome/menu.rs: crates/codegen/xai-grok-pager/src/views/welcome/menu.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_pager::views::welcome::menu::render_menu at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/welcome/menu.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/codegen/xai-grok-pager/src/views/welcome/menu.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcc53a980b529c43f04e14f46158de2bc4cdeecee3be29feb89bb73618ebd96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-memory/src/storage_v2.rs: crates/codegen/xai-grok-memory/src/storage_v2.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_memory::storage_v2::list_memory_files_with_caps at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-memory/src/storage_v2.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/codegen/xai-grok-memory/src/storage_v2.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"840b657a46854c6aee31f1264f327860fd899953bea2b5127723f3a2b1ad411d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-fast-worktree/src/copy/engine.rs: crates/codegen/xai-fast-worktree/src/copy/engine.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_fast_worktree::copy::engine::copy_parallel at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-fast-worktree/src/copy/engine.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/codegen/xai-fast-worktree/src/copy/engine.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd4362df142fb65e0740aba77a835aad44243aa29c83f67c2778a35e89f78dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-render/src/render/bidi.rs: crates/codegen/xai-grok-pager-render/src/render/bidi.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_grok_pager_render::render::bidi::logical_slice_for_visual_cols at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-render/src/render/bidi.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/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5902c19dae94d727891dace319e60457b1796cfcdfb140a21c67f1b1a63f492a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-ratatui-inline/src/segment.rs: crates/codegen/xai-ratatui-inline/src/segment.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in xai_ratatui_inline::segment::split_into_line_segments at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-ratatui-inline/src/segment.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/codegen/xai-ratatui-inline/src/segment.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"201fae442738b31c64d60142168219bf2f1520e1a9f9c74fb5d88150613ca7cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager/src/views/status_line/sanitize.rs: crates/codegen/xai-grok-pager/src/views/status_line/sanitize.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in xai_grok_pager::views::status_line::sanitize::extract_osc8_links at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager/src/views/status_line/sanitize.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/codegen/xai-grok-pager/src/views/status_line/sanitize.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6d5f4d7cd0dda441d66f4ac23949a7288251c05389de0e934f8cb749ee5fe5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs: crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_tools::implementations::grok_build_hashline::benchmark::run_phase1_for_file at line 362. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.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/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a49dd22592ec5ccedda9ee7db747e84673059717f3dd1fbe0b9f0ad97e86c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-pager-render/src/render/image_overlay.rs: crates/codegen/xai-grok-pager-render/src/render/image_overlay.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in xai_grok_pager_render::render::image_overlay::render_image_overlay_inner at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-pager-render/src/render/image_overlay.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/codegen/xai-grok-pager-render/src/render/image_overlay.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b969f6291fa31f76cea1f3c612a3368a84f6dd1efce8cef766d40355bc2e7f2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-workspace/src/permission/hub_gate.rs: crates/codegen/xai-grok-workspace/src/permission/hub_gate.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_workspace::permission::hub_gate::settle at line 300. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-workspace/src/permission/hub_gate.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/codegen/xai-grok-workspace/src/permission/hub_gate.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e209c44d4222747d092b2cbc2b4fb8675782fc4b06b6f77715f5ca69e5bc70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs: crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in xai_grok_tools::implementations::codex::read_file::indentation::read_block at line 155. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 16:57:09 \u002B00:00\u0027 --until=\u00272026-09-29 16:57:09 \u002B00:00\u0027 --full-history --no-merges -- crates/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.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/codegen/xai-grok-tools/src/implementations/codex/read_file/indentation.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d085c8cc5f92d2cdd782a0b892cef850ed9d8290e8116ea073059a3647673112"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Tonic channel (TODO: Move into grpc_client when deprecated tracing) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tracing/src/fastrace.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ddd8c1183694a4360f1a4913e73d7e5d865b531ef81bd7509b32c3f54742f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Request middleware (TODO: Move into http_client when deprecated tracing) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tracing/src/fastrace.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbb17f6a98340090ddfafcda5206efc2f1ab4b76922505b329e4ce7ee688405"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! live workflows), TODO List, and Running Subagents \u2014 plus \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/reminder.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97e2b40198853f40689f3bc14a50c8a2bea03f7c184f959d7429275c9516d87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// \u2192 TODO \u2192 Running Subagents. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-grok-compaction/src/reminder.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"81660dc0e65b761aaae1c10ef3cb830e8a8687301cd7dc8b7374d2b0cac4131c"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67fc144a8e6ca4e47e52e2b8d57a7807ffb394ea04b618e6205aab0fd2ec9b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// HACK: this is added \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b20e5a03cc18b565552075871fac534d387a2cccf1e60d522c502a8fe9e1d87"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// HACK: this is made pub \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-inline/src/terminal.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d5e41e4276d3749c4ba299c578293028d920e84fbf6f2d96a4e0e1cbcffdc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Re-emit HunkEvent::FileAdded / HunkEvent::HunkAdded for all restored files and hunks so that connected clients \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mod.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"423ae3108e4335365e04572527d6545283459f91c35b3438bb9f1b50c134bc6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060xai_hunk_tracker::HunkId\u0060 when that wire surface moves here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/identity.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d26432d3cfd0341504dcd1ff6345673a8dcfdb4687bdf673f5ac21c1fc68ac8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! # TODO: proto generation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/lib.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"21eed533a3c053ae1cf980c314eb1761d4b4d4878d9a9878e9f192f3fee2b8af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: align with the canonical project / permission / \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/config.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f79bd520c7d7b54d77a1397c454aaac8a2fb77787093f27f6d0ad1df5fb1b0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with the MCP/tool-server config in \u0060xai-grok-tools\u0060 once the wire surface is firm. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/config.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4e7ec0d70fd25a367abd9f6da254bfbe1910756a7a3df468f5f06e9ee0655c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060xai_grok_config::ProjectConfig\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/config.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89a81ddb4624c26ec4d5806483a1e5e57dc2c61186f3d25799420c12e7d62b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with the canonical permission policy type (currently free-form JSON). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/config.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6517fd7ff80d0303fff2058320d81922f519771e19df53fdb47c377532f00666"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical resolution result types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/files.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"db845f7c8173ca2094cf1ee09be3a8592b1f23531cd04fd65147198a882c2143"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: align with the canonical git types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/git.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"952822c6dea82e4bc6d616477776e8b6750d99a20b728d8b457a656278f34915"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060xai_grok_shell::session::git::VcsKind\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/git.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3912de8dcccc4803ba33aa5be7577bc2af674dd5d751bf52b2ce5a78aa71b43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060GitStatusData\u0060 in \u0060xai_grok_shell::session::git\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/git.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"69996b17e78bc41f8908f10edaf1afedd6789d7d26dda6ee82ed1d82ccf0a410"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060GitDiffsData\u0060 in \u0060xai_grok_shell::session::git\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/git.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8e984e82d920872e328c08c111f5cda238cc4ae5269b5cea69e9ff0eca725e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: align with \u0060xai_hunk_tracker::Hunk\u0060 and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/hunk.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"7513213f002d43627eb76d9cfb1deeffdb91a634c347e9a60095ea4a2562ae6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060xai_hunk_tracker::types::Hunk\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/hunk.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"156f72c1c17590690d629f27ef3116af439bee71b3c20f134dcd5aedae0194b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: align with \u0060xai_hunk_tracker::types::HunkAction\u0060. Adjacent tagging matches every other wire enum. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/hunk.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"36954e4b46883072f2fae2fcdf5e55cbfdf8a042c416b92ed519edfa5a840acc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical question/answer types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/interaction.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59926067bbdfa8402471ef7f485c519802fe0e2c9310f8c8efabd6ae3590046"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical memory types (\u0060MemoryChunk\u0060, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/memory.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b353b9aaa27562e660854c76efda924052248ab3181b9104342f771857dd6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical permission types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/permission.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ea2771b884fb98183d9f3929273abbe227cc13a68420a3bc3b55a51e1672e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: align with the canonical types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/plugins.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd32836cafb982461f0d12505af467ee0aa25970afdf64ee357413f48c28e8d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: free-form string until aligned with \u0060HookEvent\u0060; typos currently pass. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/plugins.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e97d3fb25b886eda79a1bbf2a132c4c5cdf0274396f38f480a532a69d2d542f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical ripgrep / fuzzy types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/search.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd37de5d391ecd179a103a05c5e3b25fd938951a991a523600886388c4dad7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: align with the canonical session types when the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/session.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7957d1b97f5935bbd458331e9f9e4c4db5d7a3fbd532504b4f494f1c7f4cb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: alias of [\u0060ServerStatus\u0060] while MCP and LSP share a shape; the type system will not stop a cross-use. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/session.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3178ab9dd5a1262e7dfda54ae071ae67c4d4f6c1522a7d59513c715980f7d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: see \u0060McpServerStatus\u0060 for the alias-vs-distinct-enum trade-off. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/session.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"817ace41b2df85b07317f8c29c3ab975be135cbcc2441bcfdf31b2e17135a115"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO(workspace): align with the canonical tool types in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/types/tools.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec15be0f34000306008dfa6e44a72bc20faebaac025e059f452d35ea5216820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// One TODO list item (slim DTO over \u0060xai_grok_tools\u0060\u0027s \u0060TodoState\u0060). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/rpc/workspace.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb997f0baf2a7e7299e16962da6d6b5943915a6a7f42b2105e4a54c125b1ae18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Response of \u0060workspace.list_todos\u0060: the full TODO list for the session. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace-types/src/rpc/workspace.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d86b1b878cee4836ec739209b6f000b7f50a75f8031f8033407b2b4eff7b3a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should the string here be prompt parts instead and should we allow @ and other niceness on the input bar here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"74342620517313a3c14e3fd2cbc86faedd3e71dd2de25ad18923b4e81d53e99e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060RequestPermissionOutcome\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"09023ee5cd5792234cf6800c1ac00ba2f36cd1da18372aa48132fb0e232fbf32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060PermissionOptionKind\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/prompter.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63921aa89f169ab6531df132eb7c0841744bc3abc4e1610e7a85bf4e89f9d3e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle atomic write \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/fs.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c528c4a56229558cdb61b1239a21805c280d90ebe93182c868e77afb74ad8093"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: This whole thing is a map from the tool_id to the per tool config \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdbe091628e602c269b79af994d741ac003c36e2ba42a85cbbdcd923e3ceda5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Get only built-in tool definitions (exclude MCP tools). TODO: use ToolNamespace metadata \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"824fc21a057221c6d1b35c86d46b33a859769e659a0a0a06f0746f25754e5286"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add different concise message for auto backgrounded terminal task \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53decf699889fdfd1ef009b7979ad5ef44859e9487791dab24f7ffdccdc527d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // ${{ params.edit.replace_all }}. They must remain visible. TODO: We can generate the schemas and requirement by \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea912cc9bd31b7cd579f6359483357b52ebbbc154f823bc72390f1c3424b8752"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: scheduler tools share ToolKind::Other so they can\u0027t be template-ized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/create.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"45292bee9b8dd6c54b11420cd69b74c14eb19c7faef6a494e8dddcf1f7b87ca1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider a typed \u0060ReasoningEffort\u0060 enum to prevent typos \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-subagent-resolution/src/types.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b12265695fd4d12cdd09936ef0d801a74f75398206dd0d16d58811b6f2dbb28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add support for signal handling \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f63cbb633e61c5576f88a28f1fd5fb53aca4801c125c95c754f3ee9ef8f28fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: this is a fallback until clients push exact output via an \u0060x.ai/terminal/output_delta\u0060 notification. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/output_recorder.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1106c42de587da2db3da7449efdc1e1a8e342c8f5f570836fa3701a80031494"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060PlanEntryStatus\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/todo.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bd5782626347ad3e9f204792e79b09c184b83c7e54a820371b8c5e064674c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060PlanEntryPriority\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/todo.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ab09ecbb250a1ee9f2500c0a0850aabf044fd7f0ed4031de84ab05f5be9f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo also sends a Plan notification, but we still need to complete the tool call so the TUI flushes pending agent messages and avoids concatenating text across tool-call boundaries. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_conversion.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"43069233c2a4d576c2b86d18689236d67cbe95093c09e6086385ce915a56f942"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Attribute reverts per-author once HunkRemoved events carry author information \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/signals.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec08cbf9949912a571012bc30c7bad7494fe45a5bce083102a63adb9e2c828"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: surface this through a \u0060grok inspect --tools\u0060 reader. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/tool_definitions_artifact.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3822ab31b513f0d7a89482d7cc33d77b09aed1f13a0d73ed379f2b82a64ee2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! The **common** active-agent section (Running Background Tasks: commands, loops, workflows, subagents) plus TODO is formatted by [\u0060xai_grok_compaction::reminder\u0060]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/compaction_context.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb22589b1233482d044c6b090703fa89d472186ab6b8fc4f686c2b68ce5f84d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Common sections (background tasks, then TODO list, then subagents) via the shared formatter \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/helpers/compaction_context.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"846c6b1be60d138f595e3cbb89a8e7c62046138794cdadf74e3a1be067474484"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: a \u0060None\u0060 usage outside these contexts is left unmarked, so a genuine mid-turn omission understates spend with no incomplete flag \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bf61b38e02020d2488a63281776bf678dbf6760e6ce2819899b2a33f961976"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/inspect/mod.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff16d620a81995b7ff8817d13216072579a34ad7269c9b1ec9748e5dbf2810f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4290ec1a3c160cf2502e5c0cdf5d2a6d88c2b92a8a9ce6e596abb359d135e7c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b820064c6c11efa863cd5de6616cab309e71e1156bc50f194302119fe04e30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":5063}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd44802252859623a162a73593ead27ea40f8d1d9cebf67da4981393dffdfb5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":5073}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd89747363d66125cafde9498be9b30fdcac47eb844ae244273bbc62657ef86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":5090}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe34724f5096880ec6a8270bbf6264e1afdf0fbcbc240e5981ef537728a2b973"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Rides \u0060failed\u0060 so old pagers keep rendering it. TODO: promote to a dedicated status. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/notification.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaec20ef62c78f25360136ca1f62fd6874129955797eb044be1fcfb45120cf2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Load zsh history. Lines may be in extended format (\u0060: timestamp:0;command\u0060) or plain format (one command per line). TODO: zsh represents multiline commands with backslash-newline continuations in the history file. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f316e9f8ac2bf31f010d62760411fb2e0c6dd6464e7471c77b4dd62ff66269c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// The single source of truth for the timeline-sidebar default (opt-in). TODO: migrate the other boolean UI settings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/ui_config.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd05b7946214365e5420edd34a45687d6a87914d644d07e682714042aca2acf9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: Move from xai-grok-shell/src/sampling/error.rs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6974957621c8d79e56be6dbcf6c160cd914f208373e3f2643c44108caef9e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Whatever the words looked like,, we don\u0027t handle the words differently \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/bash_command_splitting.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73cbc1f2539a4d0d369ffff9b7993caad1ba6695135402a4528b420e2c8c608"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: settings discovery is local to this module; extract a shared helper if more than permissions consume it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/claude_settings.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"21eff935e33d8b8783c08b912d6143e93474ec6b66fc3b4cafe166011a787821"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! # TODO: Mouse Support \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/render/scrollbar.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"614b40c358bee4829be5a34187e2add1be71004e3c538d12e498d35833df9fe7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(dim_muted): add a dim factor for collapsed text styling (not just bullet/accent). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/config.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"084f36bcd4f7c799a4c1ded26a592a10af760f8b677f3303a0ed2fab8fa537bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060PermissionOptionKind\u0060 is #[non_exhaustive]; \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/appearance/permission_cursor.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8407e83774de1fa6c93e2733a45a935136fc0f2a0682d1ee7e8c504a4e1a14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! - **Todo pane** (under 10 items, random mutations, Wrap) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/list_pane/mod.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a3d53da4f1189b5c3ea0283fc0ee0dd99b14176f2a750f17760ec3e941ba94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060AvailableCommandInput\u0060 is #[non_exhaustive]. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/slash/acp_command.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c6f2bcbb10d09444fddbcfee073231fb3323c42390460de550289838a07ea4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Copy the absolute Read/Edit target for a full painted-path drag; partial drags copy painted columns only to keep highlight and clipboard aligned. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/types.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"221e0ac5d2ad54c5a217c1a542b4edfab1c18e2157a48242748b23bbe08e308d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: hard-coded because \u0060AppView::minimal_key_intercept\u0060 matches this chord literally instead of going through the keybinding registry. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"505c17b3093d317969177e10563b52460722d4edbf6b9f5045cb4e42ef0b9ddf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: revisit if we want accent in collapsed state with header enabled. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/thinking.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"073e9b9bd7d5986d7c5f8b726ef0bf34fcfc270bf89ebc3da250d8749593d54c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: error-kind-fallback-removal \u2014 this recovery is a version shim for terminals that predate the typed \u0060errorKind\u0060/\u0060error_kind\u0060 fields. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/error_display.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7215ccddf897e9a8d08cb87328dda088b40143ec62a3a31637a80462570ef7e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: extend beyond --minimal by rebuilding resume argv from launch flags (see screen_mode_relaunch) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/mod.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fa2dde265a44dbc3069d6348594947697cae949fc25e03680e5bba6a9694ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo-pane-focused key handling. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/panes.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4181eba4f6d928c7f12ae2a5457ac62359601c4609957ab5e67a0d13a1597eec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: prompt_complete-deprecation \u2014 the durable turn_completed is already consumed via finalize_turn_from_terminal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/queue.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e0beb9e17f46cbc47e1d65ec2479d8c813aa35c9677d7710189d9c67b222d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: extract resolve_session_picker_grouped helper (duplicates event_loop.rs:143-160) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/settings.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f380ac9df8a564f3ba7c33fa12eb8a9d0e395a8f4378e7903c566fbbda9dd3da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo-pane stash behavior across the three reload outcomes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/tests/reconnect.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bae368acab0d4ab9f49a2b04ada64d662a5ba73df392143e67faf7ff3a7e3dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: show the auth URL via ACP notification instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/oauth.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"3647ebb2db54d46d32e830cbea4e88693ba353768bf9dcc6667e0c68ab6deb57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(acp-0.10): \u0060McpServer\u0060 is #[non_exhaustive]; reject unknown transports. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":5018}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84703b7c4d89c2ac6123d562baf852f452e1b41002ca10899b359534fa0d557"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // The hit clone is the same accepted O(lines)/pass residual as the open-block return below (see TODO on \u0060highlight\u0060) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/open_code_highlighter.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bb12dedd8252bd8a2e6376fcf14d701f1015a31e1bb7800d2c69ae7dd78542"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this clone keeps the open-block RETURN at O(lines)/pass = O(lines^2)/stream \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/src/open_code_highlighter.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba372a1a6898312118f8cf2f8d248ee04bbb103152e2dd22b1b02c0782ce78a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement\\n  \\ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/benches/bench.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6891fb9e749ab414877aa96aa594dcbe93d6880f554ffd659f1a011500216a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement\\n}}\\n\u0060\u0060\u0060\\n\\n\u0022, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-markdown/benches/bench.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0218ced36b8f6f70a47eeccdc66b9b10b3265c559eaef6d9117fd249ce8628e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: mirror the full External-with-ttl branch from \u0060AuthManager::is_token_expired\u0060 (uses \u0060grok_com_config.auth_token_ttl\u0060 when \u0060expires_at\u0060 is \u0060None\u0060 and \u0060auth_mode == External\u0060) The current 2-branch fallback (\u0060expires_at\u0060 if Some else \u0060create_time \u002B TOKEN_TTL\u0060) is good enough for diagnostic metadata The External-ttl branch is worth wiring once a real consumer needs it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/attribution.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e690f417adf1b5eedddaf5aa4aecc535cc9507453f4b287232e5b343e8971d16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: delete once the token endpoint tolerates racing refreshes; this guards the rule that a refresh token can be used only once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/storage.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"478642a1ea3950ee344e5c0ff679ca42660f19d0719fc65299772f34f2a9f787"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: delete once the token endpoint tolerates racing refreshes AND unlink-recovery binaries have aged out of the fleet \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a0a24b395549d4fc7f93b6183340a65cf26499651e9607d7f9a885f7b3228c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the re-dating half dies with \u0060LockHeartbeat\u0060; the stamp stays for holder telemetry. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c98ea545a6893b2b152eb16bbdea0e26edd336302ec83a4e6ddac81ca48630"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: unlink-tolerance cluster (with \u0060LockAttempt::InodeChanged\u0060); dies with \u0060LockHeartbeat\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7ef2a8fc8ebd30748465366897a274384942de5fff4430ef82587315b52660"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: deletable with \u0060AuthFileLock::still_live\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/manager/refresh_chain.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"af75bfb37975985d7c8f29e5791173f8b20b91ab0619fef0d21d86eedd0406da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: newtype the origin (proxy or catalog) and identity strings. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/commit.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1009a1804d54530305197ed1251bb613665962c25fe25681b4d7048cf2e1f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: completion requirements and retry configs are now part of ToolServerConfig and handled at registry finalization time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/agent.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"127dcf5acbbafb9c3bf17d6f65a7546dcb64cb5f93f6dc372b9e9168ea6035f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: collapse these getters by threading the path through config as an \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-dirs/src/lib.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"043ae36dee01d8434442ecbc3d46e4a6c3569e92661760da0a35137e47c2a455"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo list captured at compaction time, for post-compaction \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec04543bbc73cae87a4df9f7dcd4aa9b4a7ed729e437a2ac939b8431785fc7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo-gate impasse: the reminder lands after the final text and the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-chat-state/src/actor/tests.rs"},"region":{"startLine":3694}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc181acaeb90d94ca56e6844119e4b9be4dc0abde5aea9397cb45e451e95b450"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: next lock-free verb should make \u0060stop()\u0060 take \u0060\u0026self\u0060 and delete this handle \u2014 do not clone another field trio. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/ptyctl/src/wait.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d0e74f1f51842bd80aac876debca61ca54f456a5fcb0a38bedd42b9b9a8947"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060crates/codegen/xai-grok-workspace/Cargo.toml\u0060 makes this repository a deployable product (line 125)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/Cargo.toml"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e31e6856070a85274cddda0e904fc74691bd84cc9c850b057fa707d5d7cdfe7"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 11 of 106 project(s) overshoot their size bounds, lowering Project Cohesion to 7.9/10. The most over is \u0060crates/codegen/xai-grok-pager\u0060 (366969 LoC, 1202 module-visible types across 49 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64fb5b4afbf0b50e75990cd339936fc05d8456db7936c7c1d78500b73758dc26"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-88","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d4bfc2bd89afd5223c11b0a126bd41b6bfb25e09654f1f3c5362eb2531ce641"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-88","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d33d941a5f70eff90e9c17b12695edc9a1bec049b043712292107f00147bdb6"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6dfc4a7e817193d1981084640f53a8b5beee1b0feabd65d9c3c8c19c4e850366"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"895bf45f4e2d958e13ecfd2a7f71b37164f7c364a6ac3d381a7f85bd91899974"},"properties":{"dependency":{"package":"zip","version":"3.0.0","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":"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":"3ccca39e5407bf6dc980b5ce9bdd547c397b06481ae1003a0dd9946fed41e432"},"properties":{"dependency":{"package":"zip","version":"8.6.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA 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":"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":"a845d58d31cbac619fbcc6be342a58235c2fc1803293a15ed78c0cc582099ae3"},"properties":{"dependency":{"package":"aws-smithy-json","version":"0.61.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97de2d9afba19ac7d5526d587e8aa29754fd1ff1c9caccbe9740917d4dd5ff14"},"properties":{"dependency":{"package":"async-std","version":"1.13.2","advisory":"RUSTSEC-2025-0052","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":"797ec891dfd99b7619050a86882892acbf3f86688cb157c579039ad688d6ad76"},"properties":{"dependency":{"package":"backoff","version":"0.4.0","advisory":"RUSTSEC-2025-0012","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":"4975822701b3b96654c82dada9bad969e348a6adefa52cd3bba1b6cfd71c3bb7"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca383df8f93c1fcb449201c7c47b9fc487e55acf31a9bb60212d29fe36dde189"},"properties":{"dependency":{"package":"block-buffer","version":"0.12.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc4db900d7247116e90ac1f55322889d7c04a2f09430308fea72e799e9229468"},"properties":{"dependency":{"package":"crypto-bigint","version":"0.5.5","advisory":"RUSTSEC-2026-0387","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1092cdc16bab90e26caa98781415518f2a1a0fec9b43d183894264e01dcc42b6"},"properties":{"dependency":{"package":"event-listener","version":"5.4.1","advisory":"RUSTSEC-2026-0221","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f98a5252cf643899a128d2b6f6d04b7713273d44fa70b088ba81df0a39c759a9"},"properties":{"dependency":{"package":"faster-hex","version":"0.10.0","advisory":"RUSTSEC-2026-0306","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":"a42ca7416279f52063a649dbc505340ffc7c7a5727193e601ae1de8d6db75e3d"},"properties":{"dependency":{"package":"fxhash","version":"0.2.1","advisory":"RUSTSEC-2025-0057","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":"b751c5129887c6a72d2838660309f93bb01a5d1e99ba6807b4d01b86451a5705"},"properties":{"dependency":{"package":"git2","version":"0.20.2","advisory":"RUSTSEC-2026-0008","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9985e934bf5258966ba30771d636042c3373acbe5f9699173950198ff207d4c4"},"properties":{"dependency":{"package":"git2","version":"0.20.2","advisory":"RUSTSEC-2026-0183","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":"1eae401a2a8770be38f5a54c3afe36fa4464ebe4004c5fb285ffaa2f1ae4d5b7"},"properties":{"dependency":{"package":"git2","version":"0.20.2","advisory":"RUSTSEC-2026-0184","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":"f48cf8c9f415048128045caa118a1e03769d0b4fe18d7f036c2f3766e3e8d8fb"},"properties":{"dependency":{"package":"instant","version":"0.1.12","advisory":"RUSTSEC-2024-0384","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":"7b3f5e73f54279d8a385f3ccb6ce6659725cab3121019062bfd36c6500f66d85"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.35.0","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"728758c9d3428053e1082b5fb9832c05e2e04dab40233f2ffbfd7792b93201ec"},"properties":{"dependency":{"package":"libz-sys","version":"1.1.22","advisory":"RUSTSEC-2026-0418","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbe030f8c1c144f826bad4cbbd83ebd5ea8dfc9162bb9621a856f9f966813acf"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0002","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49ac523b6001c16060cd77e25b6074a669ff2242d72c0e4c1cea6b7f4aab7af8"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0253","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":"454982b5cc555a334dbdc56af0fbbf56fe003c4a26a3a42d5ce400d871b67580"},"properties":{"dependency":{"package":"lru","version":"0.16.3","advisory":"RUSTSEC-2026-0253","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":"46f49615124997a47ae03424c2b2e05e8f53b2ec644cd091de0dc203d46f11ac"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","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":"64363d74ce1f052fae524dc374bd082dc62972fb05982f1a96c21eb7c322e135"},"properties":{"dependency":{"package":"pulldown-cmark","version":"0.13.0","advisory":"RUSTSEC-2026-0414","aliases":["RUSTSEC-2026-0433"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5585c48a8c4ed670247ebaa40a533d385248c4e49079fee700e7b93cbab137a9"},"properties":{"dependency":{"package":"quick-xml","version":"0.39.4","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.15","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"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":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"161c5c127a7b1c6eab184c57c5aa790c3d0b201351ad3b7a611c1358bfcf29fe"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c88a21e423c99b417a7c19bcbb53f1608520b8eb8a6183a7c248e7bd6da770a3"},"properties":{"dependency":{"package":"rand","version":"0.10.0","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0a650926c1446a30b78b4d0bd1ac0b14a584b7ecfe488180d3a51ffb3e8d361"},"properties":{"dependency":{"package":"rmcp","version":"3.4.0","advisory":"RUSTSEC-2026-0457","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0461","RUSTSEC-2026-0462"],"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":"ac07f6d7edfd49261e66a0ecf670dc83aeb27f637d0eaec58b89ac41744f7835"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7481fb93c86b503a82a3e06a3172c7e27c5da26b8a178702a1e8028944c7596"},"properties":{"dependency":{"package":"rustls","version":"0.23.37","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ec937081c3ad6882e9c07735996d40cd6d5332ac535d70bb5252c6040e1f211"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.13","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be12c71023c43937a607a177a93163e0581c742a3255ef7103051bf074226b53"},"properties":{"dependency":{"package":"rustybuzz","version":"0.20.1","advisory":"RUSTSEC-2026-0206","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":"29657cae34dd8cde614417a5e63194c90262d7543de5763d566a22c44f87c6e9"},"properties":{"dependency":{"package":"scc","version":"2.4.0","advisory":"RUSTSEC-2026-0205","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":"0897771ffd4e3ceb3419dde32bb5bb1ffcf0f4b413f8009f7ee61b96577e12ed"},"properties":{"dependency":{"package":"smartstring","version":"1.0.1","advisory":"RUSTSEC-2026-0249","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.52.3","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":"c356dafc2d2f879539349393edf47ceccc3e0771bf15e4dae816abd8594fd25c"},"properties":{"dependency":{"package":"ttf-parser","version":"0.25.1","advisory":"RUSTSEC-2026-0192","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c78c7c829ffb431fb928ff724c9cf0276a780b7b7d9be87f32343d1209a988f8"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.3","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.3","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ceb9040e13548b3df718b94867858f8e5659519eb178fbf2fd0e4e23343e0da"},"properties":{"dependency":{"package":"yaml-rust","version":"0.4.5","advisory":"RUSTSEC-2024-0320","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.1","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":"f4999ef69e42f46a403f3866a4a634365963f93fdd6e82c0c4a8e528a960ab52"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"414bb4a49ee404ddc9dbe92931374dee643d4d3104e067391ed93041a77ff631"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d11388e41908d6112e7f61d01d0c0d9062830b07945356073c8069de5b88d627"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7870b77ea4843334d11fffa265d6d0542e94eec7f4c8e852762d55c28578136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84f9b61ffb7d87f7a0ea344424bcbd7389e2ed41eb01432b04fba9f732cd312c"},"properties":{"dependency":{"package":"zstd-sys","version":"2.1.0\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77d4d5d4357ce0a5ade8f6f76c84914f1a2c80f9fe7358d9854254b760de650a"},"properties":{"dependency":{"package":"zvariant","version":"5.10.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":"f67f0700e108bacf2f3dfd2008273e31f01b0ea1f2d5f9ef71c4f46ace73bbe9"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.10.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3fafa9e7fe37237c0fccf4dc28091c1268c797a0d4b62971fd5df491fdf67df4"},"properties":{"dependency":{"package":"aws-sdk-s3","version":"1.109.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6aef01090e770cca6c1f9a3962e8ad03df7352c3bdde40bb275f747285bfa7e"},"properties":{"dependency":{"package":"aws-sdk-sso","version":"1.86.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2593edb059d3df284da674007a04493a8affa5b7bea724692176c459e1437625"},"properties":{"dependency":{"package":"aws-sdk-ssooidc","version":"1.89.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ea55cb6a2b76312831c847168e3899514adec10394b1ec290ce8a9259da5719"},"properties":{"dependency":{"package":"aws-sdk-sts","version":"1.88.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.94: rust-toolchain.toml declares Rust 1.94 as this project\u0027s toolchain file, and Rust 1.94, superseded by 1.95 on 2026-04-16 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-04-16 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69fe0bd737134cbb556df471aeb85ea0f81bdab97b8bad765d34c6fb5724f3c"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): HostService.dispatch: \u0060HostService.dispatch\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.persist_now\u0060, :220) and an independent publish to an event bus (\u0060notify.emit\u0060, :285) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"547318e4d9367cf46ec93e1efe276ec634c384ac81d5c3a8e87249a8449c4c95"}},{"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":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_memory.backend\u0060 is marked as implementation by its own namespace, folder or name: \u0060MemoryBackendImpl\u0060 (crates/codegen/xai-grok-memory/src/backend.rs:200, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/backend.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9462b069f3fa960896c2957dc6f1813c04f1e3ade2b933f5000f2609760c300"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.codex.apply_patch.errors\u0060 are marked as implementation by their own namespace, folder or name: \u0060ParseError\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/errors.rs:9, \u0060implementations\u0060), \u0060ApplyPatchError\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/errors.rs:18, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/errors.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83e22f7e97b1c5fe664055285ace80035ec0b746203401abce6be4a2473b54b"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.codex.apply_patch.parser\u0060 are marked as implementation by their own namespace, folder or name: \u0060ParsedPatch\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs:55, \u0060implementations\u0060), \u0060Hunk\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs:63, \u0060implementations\u0060), \u0060UpdateFileChunk\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs:82, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/parser.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7635bb5be47be2a7d228a3871aa213944c0c49b2c992ba153afd8621fed1ba91"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.codex.apply_patch.tool\u0060 are marked as implementation by their own namespace, folder or name: \u0060ApplyPatchInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:102, \u0060implementations\u0060), \u0060ApplyPatchTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs:111, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1cc62b108874abf3985f9a9404567acd5180e54cc422327c78bc4c6ebb7bb7"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.codex.grep_files.tool\u0060 are marked as implementation by their own namespace, folder or name: \u0060CodexGrepFilesInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/grep_files/tool.rs:40, \u0060implementations\u0060), \u0060CodexGrepFilesTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/grep_files/tool.rs:63, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/grep_files/tool.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace7fdb7a74ad1631ecc320200ed3376592c6b91630794ed61ef230b10aca308"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.codex.list_dir.tool\u0060 are marked as implementation by their own namespace, folder or name: \u0060CodexListDirInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/list_dir/tool.rs:42, \u0060implementations\u0060), \u0060CodexListDirTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/list_dir/tool.rs:104, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/list_dir/tool.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49c3eb6146ae41ec492635157a91942521db6ffd4189259c768d02329737674"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.codex.read_file.tool\u0060 are marked as implementation by their own namespace, folder or name: \u0060CodexReadFileInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/read_file/tool.rs:28, \u0060implementations\u0060), \u0060ReadMode\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/read_file/tool.rs:54, \u0060implementations\u0060), \u0060IndentationArgs\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/read_file/tool.rs:64, \u0060implementations\u0060), \u0060CodexReadFileTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/codex/read_file/tool.rs:126, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/codex/read_file/tool.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a18a2adc035377f53fb252d2944fe49019501b4dd6cc7f640a5c95168e376e3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.cursor_rules_on_read\u0060 is marked as implementation by its own namespace, folder or name: \u0060CursorRulesOnReadTracker\u0060 (crates/codegen/xai-grok-tools/src/implementations/cursor_rules_on_read.rs:13, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/cursor_rules_on_read.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"352549e228004df9592cafa4e0753f2eefaf4e15a2c65a0e2dc0c2603d0b0cf3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.editor_infra.file_operation_lock\u0060 are marked as implementation by their own namespace, folder or name: \u0060FileOperationLockManager\u0060 (crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs:19, \u0060implementations\u0060), \u0060FileOperationLockGuard\u0060 (crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs:123, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/editor_infra/file_operation_lock.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab9ff3adce131d9996cd977ac08df2149408c50dccff756a8ef80c7734ab22d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 5 public types in \u0060xai_grok_tools.implementations.grok_build.ask_user_question\u0060 are marked as implementation by their own namespace, folder or name: \u0060AskUserQuestionParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs:92, \u0060implementations\u0060), \u0060QuestionOption\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs:136, \u0060implementations\u0060), \u0060Question\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs:162, \u0060implementations\u0060), \u0060AskUserQuestionInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs:193, \u0060implementations\u0060), \u0060AskUserQuestionTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs:211, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d59f3b17bec0dc1eb4b7e7515242c3bf8d933879b0709d8bbab1b50223e521"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 8 public types in \u0060xai_grok_tools.implementations.grok_build.ask_user_question.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060QuestionAnnotation\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:28, \u0060implementations\u0060), \u0060AskUserQuestionMode\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:39, \u0060implementations\u0060), \u0060AskUserQuestionExtRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:51, \u0060implementations\u0060), \u0060AskUserQuestionExtResponse\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:89, \u0060implementations\u0060), \u0060UserQuestionResponse\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:128, \u0060implementations\u0060), \u0060UserQuestionError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:154, \u0060implementations\u0060), \u0060UserQuestionRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:167, \u0060implementations\u0060), \u0060UserQuestionSender\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs:181, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/ask_user_question/types.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cee4987627e0391c1997799cf8f0f5dabb202ff951a3afe6a24db68a53ca8b"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 5 public types in \u0060xai_grok_tools.implementations.grok_build.bash\u0060 are marked as implementation by their own namespace, folder or name: \u0060BashError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:51, \u0060implementations\u0060), \u0060BashParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:125, \u0060implementations\u0060), \u0060BashToolInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:222, \u0060implementations\u0060), \u0060BashToolOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:283, \u0060implementations\u0060), \u0060BashTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs:1109, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/bash/mod.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"722c8b5ebc29ff0eb405380843e7d4d73df2929933b89334b1e0db59711ff683"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.enter_plan_mode\u0060 are marked as implementation by their own namespace, folder or name: \u0060EnterPlanModeInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/enter_plan_mode/mod.rs:34, \u0060implementations\u0060), \u0060EnterPlanModeTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/enter_plan_mode/mod.rs:39, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/enter_plan_mode/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6df5216c2f50d0b72fc714c5eab6683bcf090ffda2e45312e10f1aca34cbbd"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.exit_plan_mode\u0060 are marked as implementation by their own namespace, folder or name: \u0060ExitPlanModeInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/mod.rs:36, \u0060implementations\u0060), \u0060ExitPlanModeTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/mod.rs:42, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/mod.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d681ac4b03806f6884f070f347cbbd338f64e52b7abc8925f6d8ec9efe467e"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.exit_plan_mode.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060ExitPlanModeExtRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/types.rs:11, \u0060implementations\u0060), \u0060ExitPlanModeExtResponse\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/types.rs:19, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/exit_plan_mode/types.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a960cd07489357e53b4ec5a0b2d3a0e732998a578d28acc79f6f303ad93488b"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.grep\u0060 are marked as implementation by their own namespace, folder or name: \u0060OutputMode\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs:54, \u0060implementations\u0060), \u0060GrepSearchInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs:62, \u0060implementations\u0060), \u0060GrepParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs:147, \u0060implementations\u0060), \u0060GrepTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs:234, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/grep/mod.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e917807251158fb7f59747acb57883968659d6afb9f27ade8b8c0627273a6bc8"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.image_edit\u0060 are marked as implementation by their own namespace, folder or name: \u0060ImageEditInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:234, \u0060implementations\u0060), \u0060ImageEditTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs:261, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a3080dd9ad99944838e300f255087028e13a583be59832ea986dfe5085c0e4"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 5 public types in \u0060xai_grok_tools.implementations.grok_build.image_gen\u0060 are marked as implementation by their own namespace, folder or name: \u0060ImageGenClient\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:52, \u0060implementations\u0060), \u0060ImageGenConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:301, \u0060implementations\u0060), \u0060ImageGenInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:366, \u0060implementations\u0060), \u0060ImageGenResponse\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:382, \u0060implementations\u0060), \u0060ImageGenTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs:399, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b015c73607b03e0609075ed7dc14b21ef9f8482867dcfb143e9a8931a4536091"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.kill_task\u0060 is marked as implementation by its own namespace, folder or name: \u0060KillTaskTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs:25, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6723fdbc64824d737f7b47a52414f55535da89033cf9984fd2440c7b12e0f7"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.kill_task.terminal_command\u0060 is marked as implementation by its own namespace, folder or name: \u0060KillTerminalCommandTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/terminal_command.rs:14, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/terminal_command.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"262234e39ed5615d71a68ec69752aff2de5bfbcb9fafb9612fb3f08b85f4c73f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.list_dir\u0060 are marked as implementation by their own namespace, folder or name: \u0060ListDirInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs:33, \u0060implementations\u0060), \u0060ListDirParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs:43, \u0060implementations\u0060), \u0060ListDirTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs:84, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/list_dir/mod.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a8b08f9a7351ff11c4a3d8c5080a73b52c39f6ba5b33a623d38a28dab0ae76"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.lsp\u0060 are marked as implementation by their own namespace, folder or name: \u0060LspToolOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/lsp/mod.rs:13, \u0060implementations\u0060), \u0060LspTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/lsp/mod.rs:24, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/lsp/mod.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"830591bcdb8a092415bc3437761d12b5f85491ef9cfa30cb4064fa36e24957e4"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.monitor.event\u0060 is marked as implementation by its own namespace, folder or name: \u0060LineProcessor\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/event.rs:8, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/event.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"48219120265b36d581f3d7708e4c6c0b2f4856baee8fdb0f8e92338f6cfc0864"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.monitor.rate_limiter\u0060 are marked as implementation by their own namespace, folder or name: \u0060TokenBucket\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs:7, \u0060implementations\u0060), \u0060SuppressionTracker\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs:45, \u0060implementations\u0060), \u0060RateLimitOutcome\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs:55, \u0060implementations\u0060), \u0060MonitorRateLimiter\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs:142, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/rate_limiter.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1642f005d7cf19fcb39d352d9c45b9f66828655374acc1224cd63e538e6e97"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.monitor.tool\u0060 is marked as implementation by its own namespace, folder or name: \u0060MonitorTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/tool.rs:18, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/tool.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e63dc811d00f5def748e539f14a4f4561437be9349552da6fac3bcea231423"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.monitor.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060MonitorInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs:37, \u0060implementations\u0060), \u0060MonitorOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs:73, \u0060implementations\u0060), \u0060MonitorError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs:85, \u0060implementations\u0060), \u0060MonitorEventNotification\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs:117, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/monitor/types.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cc2c75f5d41e81e567667c9434cd714e9c0e5c0add9d060f32f09e0872a723"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.read_file\u0060 are marked as implementation by their own namespace, folder or name: \u0060ReadFileParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs:34, \u0060implementations\u0060), \u0060ReadFileInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs:132, \u0060implementations\u0060), \u0060ExtractedContent\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs:280, \u0060implementations\u0060), \u0060ReadFileTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs:739, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/read_file/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"329923aeaad1b47c4859fd7a17c80d5c0954a012f95cfe3b5368afa96d5e9035"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.scheduler.actor\u0060 is marked as implementation by its own namespace, folder or name: \u0060SchedulerActor\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs:111, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/actor.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce89a0dd98e592c3dbc6c22759346c0676e523191363a4c8383702eaa0da866"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.scheduler.create\u0060 are marked as implementation by their own namespace, folder or name: \u0060SchedulerCreateInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/create.rs:15, \u0060implementations\u0060), \u0060SchedulerCreateOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/create.rs:74, \u0060implementations\u0060), \u0060SchedulerCreateTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/create.rs:84, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/create.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe4f7ee4aa4c412afdf0993eb2ff051978ea2cf14256e5544a9aeca258517c3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.scheduler.delete\u0060 are marked as implementation by their own namespace, folder or name: \u0060SchedulerDeleteInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/delete.rs:12, \u0060implementations\u0060), \u0060SchedulerDeleteOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/delete.rs:19, \u0060implementations\u0060), \u0060SchedulerDeleteTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/delete.rs:27, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/delete.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"be769e47eddd1c84874d87cd9dc31a76d62c7e89f8ece9c92ff445fead4a088c"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.scheduler.list\u0060 are marked as implementation by their own namespace, folder or name: \u0060SchedulerListInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/list.rs:9, \u0060implementations\u0060), \u0060ScheduledTaskSummary\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/list.rs:13, \u0060implementations\u0060), \u0060SchedulerListOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/list.rs:23, \u0060implementations\u0060), \u0060SchedulerListTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/list.rs:30, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/list.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea83d474af6d57a9fbd4a252ba28e07f525d3057627b14d8b5819e8dba6407a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 6 public types in \u0060xai_grok_tools.implementations.grok_build.scheduler.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060SchedulerError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:159, \u0060implementations\u0060), \u0060ScheduledTask\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:205, \u0060implementations\u0060), \u0060SchedulerState\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:313, \u0060implementations\u0060), \u0060SchedulerSnapshot\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:327, \u0060implementations\u0060), \u0060SchedulerHandle\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:337, \u0060implementations\u0060), \u0060SchedulerCommand\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs:339, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/scheduler/types.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed594197145af7f1a62900de238ca78f3c2cf9b26ba2e4fd06e1e239f911829"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.search_replace\u0060 are marked as implementation by their own namespace, folder or name: \u0060SearchReplaceInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:70, \u0060implementations\u0060), \u0060SearchReplaceParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:98, \u0060implementations\u0060), \u0060SearchReplaceTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs:134, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/search_replace/mod.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec33a161f60577e500b2a4faaa0c482ed8d0936e49140b52d2cbba6b4f8b7658"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.send_feedback\u0060 are marked as implementation by their own namespace, folder or name: \u0060SendFeedbackInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs:17, \u0060implementations\u0060), \u0060SendFeedbackOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs:80, \u0060implementations\u0060), \u0060SendFeedbackTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs:93, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/send_feedback.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0b0c5744714f1610f472e441029fede19cf3a0087d693afef87c0f50975a35"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 5 public types in \u0060xai_grok_tools.implementations.grok_build.send_subagent_message\u0060 are marked as implementation by their own namespace, folder or name: \u0060SendSubagentMessageDelivery\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:17, \u0060implementations\u0060), \u0060SendSubagentMessageInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:49, \u0060implementations\u0060), \u0060SendSubagentMessageOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:75, \u0060implementations\u0060), \u0060SendSubagentMessageDisposition\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:100, \u0060implementations\u0060), \u0060SendSubagentMessageTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs:197, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/send_subagent_message.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"536b6d0dbb239214e0c694f09c192e57536322b87be4afd3f14825af7586f546"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 12 public types in \u0060xai_grok_tools.implementations.grok_build.task.active_message\u0060 are marked as implementation by their own namespace, folder or name: \u0060ActiveMessageTarget\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:16, \u0060implementations\u0060), \u0060ActiveMessageRoute\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:27, \u0060implementations\u0060), \u0060ActiveAgentMessageOperation\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:35, \u0060implementations\u0060), \u0060ActiveAgentMessageSource\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:55, \u0060implementations\u0060), \u0060ActiveAgentMessageRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:61, \u0060implementations\u0060), \u0060ActiveAgentMessage\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:155, \u0060implementations\u0060), \u0060ActiveAgentMessageDelivery\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:163, \u0060implementations\u0060), \u0060ActiveMessageAdmission\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs:220, \u0060implementations\u0060), and 4 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/active_message.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7442d4cd4e294169dbf5ee223127c9192382ebb7b25747d2c231683c091304"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.task.admission\u0060 are marked as implementation by their own namespace, folder or name: \u0060LimitBehavior\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/admission.rs:10, \u0060implementations\u0060), \u0060SubagentLimits\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/admission.rs:17, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/admission.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01cad2ceca054f6f38b3f972f0ceab18a9573768667609c2b2158123b03785a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.task.agent_message_sender\u0060 are marked as implementation by their own namespace, folder or name: \u0060AgentMessageHolder\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/agent_message_sender.rs:15, \u0060implementations\u0060), \u0060AgentMessageSender\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/agent_message_sender.rs:50, \u0060implementations\u0060), \u0060AgentMessageSenderResource\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/agent_message_sender.rs:156, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/agent_message_sender.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8246bee690f755e0220e62cb91194295d8844f9120539316065e069b44d2c83"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.task.backend\u0060 are marked as implementation by their own namespace, folder or name: \u0060SubagentBackend\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:32, \u0060implementations\u0060), \u0060SubagentBackendResource\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:87, \u0060implementations\u0060), \u0060SubagentCoordinatorSender\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:109, \u0060implementations\u0060), \u0060ChannelBackend\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs:213, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/backend.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"81df4f31f7593927131f1f7f4b8852880f55bcd0e0c1102ff316a58e03d0cfed"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.task.coordinator\u0060 are marked as implementation by their own namespace, folder or name: \u0060SubagentCoordinator\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:65, \u0060implementations\u0060), \u0060SubagentCoordinatorReceiver\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs:133, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5682d85ef2b5231ef72e317894ccdd859a851fa8ed2e2492167c852cdd5d6b8e"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 14 public types in \u0060xai_grok_tools.implementations.grok_build.task.coordinator_state\u0060 are marked as implementation by their own namespace, folder or name: \u0060SubagentProgress\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:27, \u0060implementations\u0060), \u0060ChildControl\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:59, \u0060implementations\u0060), \u0060StartedChild\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:78, \u0060implementations\u0060), \u0060WakeOrigin\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:93, \u0060implementations\u0060), \u0060ChildRunRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:100, \u0060implementations\u0060), \u0060ChildRunOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:122, \u0060implementations\u0060), \u0060CompletionDisposition\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:130, \u0060implementations\u0060), \u0060ChildCompletion\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs:139, \u0060implementations\u0060), and 6 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/coordinator_state.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdffda1cbe9bb852a07cea111dc3e2870c5e73d5e1659087dd791db5b43669e1"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.task\u0060 is marked as implementation by its own namespace, folder or name: \u0060TaskTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs:190, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eef317f1be2776a445fd495b029a4b60746dc11de7b6b07d0a37bc9dbcc6eb"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.grok_build.task.model_policy\u0060 are marked as implementation by their own namespace, folder or name: \u0060TaskModelSelection\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs:28, \u0060implementations\u0060), \u0060TaskParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs:36, \u0060implementations\u0060), \u0060TaskModelRejection\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs:177, \u0060implementations\u0060), \u0060TaskModelRejectionSink\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs:183, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/model_policy.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a675b4ba1bfaa430100197692eea07d042e6cca2e754f258f0bb5ae19ab5d8"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 6 public types in \u0060xai_grok_tools.implementations.grok_build.task.root_control\u0060 are marked as implementation by their own namespace, folder or name: \u0060UserInputGeneration\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:9, \u0060implementations\u0060), \u0060RootReceiptSink\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:17, \u0060implementations\u0060), \u0060NoRootReceiptSink\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:22, \u0060implementations\u0060), \u0060AgentMessageGeneration\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:30, \u0060implementations\u0060), \u0060RootControl\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:41, \u0060implementations\u0060), \u0060NoRootControl\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs:56, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/root_control.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"370c3ead262ae3640964c893471caf197dcdb0b5c1511567de487803b87d10a0"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 52 public types in \u0060xai_grok_tools.implementations.grok_build.task.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060SubagentOwner\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:43, \u0060implementations\u0060), \u0060SubagentRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:74, \u0060implementations\u0060), \u0060SpawnRootSpan\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:113, \u0060implementations\u0060), \u0060SubagentSpawnRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:160, \u0060implementations\u0060), \u0060ModelOverrideProvenance\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:202, \u0060implementations\u0060), \u0060SubagentRuntimeOverrides\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:213, \u0060implementations\u0060), \u0060SubagentCapabilityModeExt\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:257, \u0060implementations\u0060), \u0060SubagentResult\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs:430, \u0060implementations\u0060), and 44 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/types.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded4e6b6af8cf950dddf58b4a43c904fd90068657a2ac510cf7eb8aa857eec4f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.task_output\u0060 is marked as implementation by its own namespace, folder or name: \u0060TaskOutputTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs:191, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8220a8bed7e190b4a4d9c3f94da891e339ad5247d0b13be284a2d02f6099ae77"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.task_output.terminal_command\u0060 are marked as implementation by their own namespace, folder or name: \u0060TerminalCommandOutputParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/terminal_command.rs:13, \u0060implementations\u0060), \u0060GetTerminalCommandOutputTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/terminal_command.rs:27, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/terminal_command.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"343f1135dba9260e88a8eb6ec489172caa57242de980d5745a017e1226ee664a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.task_output.wait_tasks\u0060 is marked as implementation by its own namespace, folder or name: \u0060WaitTasksTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs:22, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9c574d446ed8329e772aa99c5bdcb2e03748d832b99ae1940d66169bb99687"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 8 public types in \u0060xai_grok_tools.implementations.grok_build.todo\u0060 are marked as implementation by their own namespace, folder or name: \u0060TodoError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:17, \u0060implementations\u0060), \u0060TodoPriority\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:114, \u0060implementations\u0060), \u0060TodoStatus\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:123, \u0060implementations\u0060), \u0060TodoItem\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:143, \u0060implementations\u0060), \u0060TodoState\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:153, \u0060implementations\u0060), \u0060TodoUpdate\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:207, \u0060implementations\u0060), \u0060TodoWriteInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:233, \u0060implementations\u0060), \u0060TodoWriteTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs:253, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/todo/mod.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1852a227728516d8385cb4bf096cca88840be67d49cc9ce41ea431ad7861e101"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 6 public types in \u0060xai_grok_tools.implementations.grok_build.update_goal\u0060 are marked as implementation by their own namespace, folder or name: \u0060UpdateGoalInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:18, \u0060implementations\u0060), \u0060UpdateGoalAck\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:47, \u0060implementations\u0060), \u0060RejectReason\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:99, \u0060implementations\u0060), \u0060GoalUpdateHandle\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:165, \u0060implementations\u0060), \u0060UpdateGoalOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:178, \u0060implementations\u0060), \u0060UpdateGoalTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs:190, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/update_goal/mod.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5689b2a74ba627f1698e0a8aabed2b7700426a4945e656f3b16d0dad92d11fce"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 11 public types in \u0060xai_grok_tools.implementations.grok_build.video_gen\u0060 are marked as implementation by their own namespace, folder or name: \u0060S3AccessCredentials\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:69, \u0060implementations\u0060), \u0060ZdrVideoOutputS3Config\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:97, \u0060implementations\u0060), \u0060VideoGenClient\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:143, \u0060implementations\u0060), \u0060VideoGenConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:734, \u0060implementations\u0060), \u0060VideoOutcome\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:799, \u0060implementations\u0060), \u0060VideoKeyframePins\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:805, \u0060implementations\u0060), \u0060ImageToVideoInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:1010, \u0060implementations\u0060), \u0060VideoKeyframeInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs:1040, \u0060implementations\u0060), and 3 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56909b531526046f1084c5bdda56cedca308a17c72afbf44ba4216a6be16970"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.web_fetch.client\u0060 is marked as implementation by its own namespace, folder or name: \u0060WebFetchClient\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs:24, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"20533b56a30dfe587b7918bf7632e737038a67618b5891e3c93050c2505f509f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.web_fetch.config\u0060 is marked as implementation by its own namespace, folder or name: \u0060WebFetchParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/config.rs:18, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/config.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"592c0fd493b640d6d652e2fcd88866d71d0a1b9a0cd880e911ee1bcfae234423"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.web_fetch.domain\u0060 is marked as implementation by its own namespace, folder or name: \u0060DomainMatcher\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/domain.rs:40, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/domain.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66289de5029a680cca3b9cbc45fc0bb775f6438563733c4d6af8d51937a752d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build.web_fetch.error\u0060 is marked as implementation by its own namespace, folder or name: \u0060WebFetchError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/error.rs:5, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/error.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeb88c47bfde6e654307adb8ec71880ab78965c86d21f9f4e4bdd355a29af0e"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build.web_fetch\u0060 are marked as implementation by their own namespace, folder or name: \u0060WebFetchConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs:32, \u0060implementations\u0060), \u0060WebFetchInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs:58, \u0060implementations\u0060), \u0060WebFetchTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs:69, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea063c12a3ffcc2a4e72179f8b52c4823c52a72fbc073e2d924a43e4ff000ad9"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build.web_search\u0060 are marked as implementation by their own namespace, folder or name: \u0060WebSearchInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_search/mod.rs:17, \u0060implementations\u0060), \u0060WebSearchTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/web_search/mod.rs:29, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_search/mod.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2619df91c81eb93b482dcabba2703c181cb1a98bee356e9b647b155b22b235cd"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 8 public types in \u0060xai_grok_tools.implementations.grok_build.workflow\u0060 are marked as implementation by their own namespace, folder or name: \u0060WorkflowSource\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:26, \u0060implementations\u0060), \u0060WorkflowControl\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:65, \u0060implementations\u0060), \u0060WorkflowToolInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:71, \u0060implementations\u0060), \u0060WorkflowLaunchRequest\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:254, \u0060implementations\u0060), \u0060WorkflowLaunchAck\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:259, \u0060implementations\u0060), \u0060WorkflowLaunchHandle\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:287, \u0060implementations\u0060), \u0060WorkflowToolOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:296, \u0060implementations\u0060), \u0060WorkflowTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs:314, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/workflow/mod.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5654f7eff2716d2d4f0f89025b80fdd6c0e1f5cbc198bcd5ede96283ad4a3d10"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_concise.bash\u0060 is marked as implementation by its own namespace, folder or name: \u0060BashConciseTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs:80, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/bash.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b033f0934a6c270e2ffb64985baa09a105b1e30fb4019661fcd68a1a2372b264"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_concise.read_file\u0060 is marked as implementation by its own namespace, folder or name: \u0060ReadFileConciseTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/read_file.rs:19, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/read_file.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"25945a95957dc3baea54ebb81af32b9e974959a0e14b060974736606117d6ac2"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_concise.search_replace\u0060 is marked as implementation by its own namespace, folder or name: \u0060SearchReplaceConciseTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/search_replace.rs:19, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_concise/search_replace.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2ec614500033d12f3c139003c385b4b9804fd9ab2c0e174c4f88017bfbfa37"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build_hashline.benchmark\u0060 are marked as implementation by their own namespace, folder or name: \u0060BenchmarkConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs:31, \u0060implementations\u0060), \u0060SchemeMetrics\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs:59, \u0060implementations\u0060), \u0060BenchmarkReport\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs:198, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/benchmark.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"407d06d2f7eeaa2d2cf63ede84a3d07aa42ecce547f4478a1029cd35095b39d5"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.grok_build_hashline.config\u0060 are marked as implementation by their own namespace, folder or name: \u0060ExampleAnchors\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/config.rs:7, \u0060implementations\u0060), \u0060HashlineSchemeParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/config.rs:20, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/config.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd66de8c131d302ae4657f3eba458838799b5a3f1f17c9334b76bad85cbf042e"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_hashline.edit\u0060 is marked as implementation by its own namespace, folder or name: \u0060HashlineEditTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs:72, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/mod.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"84df087834ce3ac9c292299e41685d9c658cae9d5b1252e24a2e93d5a33ba87f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_hashline.edit.range_policy\u0060 is marked as implementation by its own namespace, folder or name: \u0060RangeSize\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/range_policy.rs:14, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/range_policy.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e8d2d0ea12bb99b6e28a980bbb02477ab798d2f603f531087779f5fd548a86"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 6 public types in \u0060xai_grok_tools.implementations.grok_build_hashline.edit.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060HashlineEditInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:9, \u0060implementations\u0060), \u0060HashlineOp\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:48, \u0060implementations\u0060), \u0060HashlineEditOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:83, \u0060implementations\u0060), \u0060HashlineEditsApplied\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:95, \u0060implementations\u0060), \u0060HashlineEditError\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:118, \u0060implementations\u0060), \u0060HashlineEditErrorKind\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs:158, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/edit/types.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2796d174ec02936b5dc8b18c06687cc8a11ee55914db899e2bc024c6e0c4cf85"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_hashline.grep\u0060 is marked as implementation by its own namespace, folder or name: \u0060HashlineGrepTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs:157, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/grep.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60add90600615c0eb6419f0a8d8a5f4b3c2eb8bed40ef63d079204a74b40fd3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.grok_build_hashline.mutate\u0060 are marked as implementation by their own namespace, folder or name: \u0060Mutation\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/mutate.rs:14, \u0060implementations\u0060), \u0060LineOutcome\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/mutate.rs:43, \u0060implementations\u0060), \u0060MutationResult\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/mutate.rs:59, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/mutate.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaa3b534265740e28eb4cfed06fe988ee13c21e92723dd3ca9a0b74237176c1"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.grok_build_hashline.read_file\u0060 is marked as implementation by its own namespace, folder or name: \u0060HashlineReadTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs:98, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c5ea56bfad7306fc8b9223854327bd4ae8e5e482e5de8fbd0cc9107969c963"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 8 public types in \u0060xai_grok_tools.implementations.grok_build_hashline.scheme\u0060 are marked as implementation by their own namespace, folder or name: \u0060AnchorScheme\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:25, \u0060implementations\u0060), \u0060Anchor\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:60, \u0060implementations\u0060), \u0060ParsedAnchor\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:89, \u0060implementations\u0060), \u0060ValidationResult\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:147, \u0060implementations\u0060), \u0060ShiftResult\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:158, \u0060implementations\u0060), \u0060ContentOnly\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:180, \u0060implementations\u0060), \u0060ChunkFingerprint\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:262, \u0060implementations\u0060), \u0060CheckpointChain\u0060 (crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs:402, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/scheme.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b701c2cdbd37ec0e16519bb7ab27bd1c0e2859bd2f2a5b2ed6ccaccc096a437"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.capabilities\u0060 are marked as implementation by their own namespace, folder or name: \u0060SavePolicy\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/capabilities.rs:17, \u0060implementations\u0060), \u0060ServerPolicy\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/capabilities.rs:28, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/capabilities.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0117fa454155d33e81406a5debbeb2e157c567089bda24e662713af0d01556"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.lsp.client\u0060 is marked as implementation by its own namespace, folder or name: \u0060LspClient\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs:52, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b4fcb857029647125bf605b2d7752ee6e9b743e244dfd5044bd5e08220fff6"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.lsp.config\u0060 are marked as implementation by their own namespace, folder or name: \u0060LspTransport\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/config.rs:216, \u0060implementations\u0060), \u0060WorkspaceOpen\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/config.rs:227, \u0060implementations\u0060), \u0060LspServerConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/config.rs:237, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/config.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccf152cf287fa9dce89fc37967b8f07411b7bc43dddb638fe376fc8e244c1ac"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.diagnostics\u0060 are marked as implementation by their own namespace, folder or name: \u0060Answer\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/diagnostics.rs:31, \u0060implementations\u0060), \u0060DiagnosticsStore\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/diagnostics.rs:59, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/diagnostics.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6638b0e3c9b363dbd60518156aacff387f26ebdf647425e02277e2c3d4035b"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.lsp.dispatch\u0060 is marked as implementation by its own namespace, folder or name: \u0060LspBackendAdapter\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/dispatch.rs:43, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/dispatch.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a8fbc67cc238b7dc49387f01b8319064e70888af9522d37f069e2962331634"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.lsp.documents\u0060 are marked as implementation by their own namespace, folder or name: \u0060Tracked\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/documents.rs:24, \u0060implementations\u0060), \u0060Update\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/documents.rs:34, \u0060implementations\u0060), \u0060Documents\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/documents.rs:56, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/documents.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eba6905bf32c8e0a231e6f64a1716edc4e6c9aba8b2acfce278d21228e4cdc"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.manager\u0060 are marked as implementation by their own namespace, folder or name: \u0060DiagnosticsSummary\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/manager.rs:19, \u0060implementations\u0060), \u0060LspManager\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/manager.rs:103, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/manager.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56201eb7d173aeffe85a3e221b74d96a262f96eca2c52c02c88af93ed54efaf"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.lsp\u0060 is marked as implementation by its own namespace, folder or name: \u0060LspError\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/mod.rs:41, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/mod.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ab58fb5720c586df29b3f412b6e091023abe2c77448bf99dad5717dad6254"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.pending\u0060 are marked as implementation by their own namespace, folder or name: \u0060PendingPolicy\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/pending.rs:32, \u0060implementations\u0060), \u0060PendingEdits\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/pending.rs:58, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/pending.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27f0e31ff8907cf97815153a062efad575c5a8510d0f78fa018d0a24bb38361"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.pull\u0060 are marked as implementation by their own namespace, folder or name: \u0060PullSupport\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/pull.rs:44, \u0060implementations\u0060), \u0060PullDiagnostics\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/pull.rs:104, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/pull.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa5aa1e31a959cdaff38337e38615e94c1d409d369c18ecc0cb7236f9e85493"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.lsp.refresh\u0060 are marked as implementation by their own namespace, folder or name: \u0060ProjectInitializationComplete\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/refresh.rs:24, \u0060implementations\u0060), \u0060RefreshTarget\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/refresh.rs:37, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/refresh.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9668d02e9ee43b1230677f9424ab42c49c0c3e4bae53ee0ffc644a7e410696"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 9 public types in \u0060xai_grok_tools.implementations.lsp.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060LspConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:8, \u0060implementations\u0060), \u0060LspToolResult\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:23, \u0060implementations\u0060), \u0060DiskChangeKind\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:31, \u0060implementations\u0060), \u0060LspBackend\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:52, \u0060implementations\u0060), \u0060DiagnosticEntry\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:81, \u0060implementations\u0060), \u0060DiagnosticSeverityLevel\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:94, \u0060implementations\u0060), \u0060FileDiagnosticEntry\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:101, \u0060implementations\u0060), \u0060LspOperation\u0060 (crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs:108, \u0060implementations\u0060), and 1 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/types.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1965f98523e59f34434e3cb5febb1265dc2a8f644044e8a3d21684f4345341f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.memory.get_tool\u0060 is marked as implementation by its own namespace, folder or name: \u0060MemoryGetImpl\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/get_tool.rs:26, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/memory/get_tool.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc998ad77c0f70df256853870d66f6a57af193864b7aba52f63d658c1649f053"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.memory.search_tool\u0060 is marked as implementation by its own namespace, folder or name: \u0060MemorySearchImpl\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/search_tool.rs:11, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/memory/search_tool.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1c8cae13e041fb82d19adb69708c53c5b39bc24ece6a70470489e1b7086b45"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.memory.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060MemorySearchInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/types.rs:8, \u0060implementations\u0060), \u0060MemorySearchOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/types.rs:26, \u0060implementations\u0060), \u0060MemoryGetInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/types.rs:33, \u0060implementations\u0060), \u0060MemoryGetOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/memory/types.rs:47, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/memory/types.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"341b5891a7489d0e8f3f4232cf5f151436d48a02b754a68f878312eda532178f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.bash\u0060 are marked as implementation by their own namespace, folder or name: \u0060BashInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs:174, \u0060implementations\u0060), \u0060BashTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs:236, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/bash/mod.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"929dc0a8d64f65b20b10b0bf00c4ffa6e291370092007121494da4256f53fbc0"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.edit\u0060 are marked as implementation by their own namespace, folder or name: \u0060EditInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:65, \u0060implementations\u0060), \u0060EditTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs:126, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"29285a762d8bb99f981731e0f17052ec86b92c983448f5a373f83df4a8033c3a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.opencode.glob\u0060 are marked as implementation by their own namespace, folder or name: \u0060GlobInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs:44, \u0060implementations\u0060), \u0060GlobOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs:75, \u0060implementations\u0060), \u0060GlobTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs:106, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/glob/mod.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84b6cd1948e95f61521a6dc51a358a52355b6c873b9f7c7c9de9be590a0c49c"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.grep\u0060 are marked as implementation by their own namespace, folder or name: \u0060GrepInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs:49, \u0060implementations\u0060), \u0060GrepTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs:91, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/grep/mod.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"926b7b34059690cc062dc0d8e76787fce60bcb88beba1cacc2ef1e2b4a3d3326"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.read\u0060 are marked as implementation by their own namespace, folder or name: \u0060ReadInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs:58, \u0060implementations\u0060), \u0060ReadTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs:97, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33e6ce26aaac151d6a96a0300b0f07a9e09c6138c3eb2a01a0d1492d97334ee"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.skill\u0060 are marked as implementation by their own namespace, folder or name: \u0060SkillInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:47, \u0060implementations\u0060), \u0060SkillTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs:79, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5fe267e961fe3bc4219030e7275e60aeb3142c84c946fb7a656f18616f87fe"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060xai_grok_tools.implementations.opencode.todowrite\u0060 are marked as implementation by their own namespace, folder or name: \u0060OpenCodeTodoItem\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/todowrite/mod.rs:192, \u0060implementations\u0060), \u0060TodoWriteInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/todowrite/mod.rs:210, \u0060implementations\u0060), \u0060TodoWriteTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/todowrite/mod.rs:279, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/todowrite/mod.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba2d6010b57de0ff93114e2e8f87c5e74785159808b07630cc1963d723eb763"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.opencode.write\u0060 are marked as implementation by their own namespace, folder or name: \u0060WriteInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/write/mod.rs:29, \u0060implementations\u0060), \u0060WriteTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/opencode/write/mod.rs:41, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/write/mod.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9947d6db9790dcba42f2e59df9d7e1ed9dfd7eb4f74b170315d4ce962cb5f1"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.read_file.image\u0060 is marked as implementation by its own namespace, folder or name: \u0060CompressImageError\u0060 (crates/codegen/xai-grok-tools/src/implementations/read_file/image.rs:6, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/read_file/image.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb7bcb2aa36588886390d8bcf4b6444ac280331b1e6ae584798341b5c090b80"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.read_file.metadata\u0060 is marked as implementation by its own namespace, folder or name: \u0060FileMetadata\u0060 (crates/codegen/xai-grok-tools/src/implementations/read_file/metadata.rs:7, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/read_file/metadata.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6be207a5cc89e4f509db521d6cd25574cfbd421d8da4ab18e54d6cd19a45ea3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.search_tool\u0060 is marked as implementation by its own namespace, folder or name: \u0060SearchTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs:206, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/search_tool/mod.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c140d3d73ddaffcc82a46cdb57928f8ee90f4ebe328d02c85d9d662e39d85869"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.search_tool.types\u0060 is marked as implementation by its own namespace, folder or name: \u0060SearchToolInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/search_tool/types.rs:8, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/search_tool/types.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d578780e90aa60bbabdba3c4d1377cd9b92ac88cb5624b206b25862e05405ea"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.skills.discovery\u0060 are marked as implementation by their own namespace, folder or name: \u0060ParsedFrontmatter\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:299, \u0060implementations\u0060), \u0060SkillParseError\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs:324, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"826eb5647127918b324f03baf2c3de161d2d6890b3c41d7e802044710a6e1176"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060xai_grok_tools.implementations.skills.skill\u0060 are marked as implementation by their own namespace, folder or name: \u0060SkillInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:14, \u0060implementations\u0060), \u0060SkillOutput\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:27, \u0060implementations\u0060), \u0060SkillRef\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:88, \u0060implementations\u0060), \u0060SubstitutionContext\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs:218, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/skill.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc259f395fc48ae26acb51d9c654245fc0e8b9eae70e4928a5cb8f494130c0fc"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.skills.types\u0060 are marked as implementation by their own namespace, folder or name: \u0060SkillScope\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/types.rs:20, \u0060implementations\u0060), \u0060SkillInfo\u0060 (crates/codegen/xai-grok-tools/src/implementations/skills/types.rs:41, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/types.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"51223908712ddbdad42bb011ac0745380bf09320a0ac45b9956139fdc026b6e5"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.use_tool.input\u0060 are marked as implementation by their own namespace, folder or name: \u0060InlineMcpInvocation\u0060 (crates/codegen/xai-grok-tools/src/implementations/use_tool/input.rs:18, \u0060implementations\u0060), \u0060UseToolInput\u0060 (crates/codegen/xai-grok-tools/src/implementations/use_tool/input.rs:25, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/use_tool/input.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6022f1b57802c99fd54499b6a7e4baf36ab48cf7c57284d622af22611e66ae"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060xai_grok_tools.implementations.use_tool\u0060 are marked as implementation by their own namespace, folder or name: \u0060UseToolParams\u0060 (crates/codegen/xai-grok-tools/src/implementations/use_tool/mod.rs:22, \u0060implementations\u0060), \u0060UseTool\u0060 (crates/codegen/xai-grok-tools/src/implementations/use_tool/mod.rs:56, \u0060implementations\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/use_tool/mod.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8980cf03697e2bb8e9848ff5d6933b53aac9a1ec548169121ba1760bdd0edcbd"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.web_search.client\u0060 is marked as implementation by its own namespace, folder or name: \u0060WebSearchClient\u0060 (crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs:9, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/client.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b963dcb2f5e913e69ab99f2270f45326763aa085dab86c9f38d92cc2148719"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060xai_grok_tools.implementations.web_search.types\u0060 is marked as implementation by its own namespace, folder or name: \u0060WebSearchConfig\u0060 (crates/codegen/xai-grok-tools/src/implementations/web_search/types.rs:9, \u0060implementations\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/web_search/types.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6188747631b65d64185c0d2f18b248ffd67353d979b311a230e11e8b0eddd24"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the crates.io library declared by \u0060Cargo.toml\u0060. This check read a \u0060version\u0060 in Cargo.toml (or \u0060version.workspace = true\u0060), and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1143cc9a94ecb3033191e229df178396fcef8fda3aa0c1be29f68f55d5ddbf"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 70/75 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060crates/codegen/xai-grok-egress-proxy\u0060, \u0060crates/codegen/xai-grok-markdown\u0060, \u0060crates/codegen/xai-grok-pager/npm/grok\u0060, \u0060crates/codegen/xai-mixpanel\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060crates/codegen/xai-grok-pager/npm/grok/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/npm/grok/package.json"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d778943d0c13cbaddcbfedb5e6ddf00b30825eb22d068ad3b8eb2b47916c68"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-extra-ca/src/lib.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d5900bf278b3d3deb22687e3d25de9ee7262e51376ae50f704edcd3706931f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::Client::builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-extra-ca/src/lib.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac524a5eb99aa3d66cc5a1fdefa42d440b963924c29b0912a8a9730ea6660eee"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060AgentBuilder::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/agent_rebuild.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b8ad49a6da1822c816aa01bc97013bd48b3a040397a0031bba7d14d40dadda"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-tracing/src/http_client.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"781d0016996b8ab2178c0024ee15edd0f3aae5df1b15d47c973e847d52237881"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawn_agent_thread_direct\u0060 is async and calls block_on \u2014 a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/spawn.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eecafd59529803d95c786c284d1dc01ec29c571da56e2a4b3680db26c8286b1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawn_watcher\u0060 is async and calls block_on \u2014 a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/headless/signals.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f118e5d88c7b2a9295d6213d5fbc2401be644fac9b6c7bfca4031e3c50f42a5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run_cell_inner\u0060 is async and calls thread::sleep \u2014 a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scroll_matrix/runner.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad82a8bf27e4ca3330a0c318c5d2cd6b5d9a1c6c0523cda033d40c87d829d1cf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawn_session_on_thread\u0060 is async and calls block_on \u2014 a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"faad3b4a10a29d403e1555d7c80dadd38405f71c8097ade484214445f142c7cb"}},{"ruleId":"S1","level":"error","message":{"text":"Cryptographic key material is a compile-time constant: \u0060SETTINGS_CACHE_WRITE_HMAC_KEY\u0060 is the secret key and is a compile-time constant, so the secret this operation depends on is published with the source. A key that ships with the source is not secret: every contributor, fork, mirror and released binary carries it, so anyone holding the repository can decrypt what any installation encrypted, and there is no way to invalidate what was already protected because every deployment built from this source shares the value. Where the constant is a password salt the consequence differs but is no smaller \u2014 one global salt means precomputation amortises across every installation, which is the property salting exists to destroy. Read the value from configuration, an environment variable or a secrets manager at startup and FAIL FAST when it is absent, so a missing key stops the process instead of silently falling back to a shared default; treat the committed value as disclosed and rotate it rather than only deleting the line. For a salt, generate a fresh random one per password and store it alongside the hash."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/settings_cache.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a368886c568e6bb89f7e49d99658bb17578ff1f3822bf4750c163da014d9515b"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository starts an HTTP server and nothing in its Rust source or committed \u0060Rocket.toml\u0060 secures the transport: no TLS served (actix-web \u0060bind_rustls\u0060/\u0060bind_openssl\u0060, axum-server \u0060bind_rustls\u0060 with a \u0060RustlsConfig\u0060, tonic \u0060ServerTlsConfig\u0060, a \u0060TlsAcceptor\u0060, Rocket\u0027s \u0060[default.tls]\u0060), no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (crates/codegen/xai-grok-shell/src/agent/server.rs:633)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Rust server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (crates/codegen/xai-grok-shell/src/agent/server.rs:633)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: crates/codegen/xai-grok-pager/npm/grok/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/npm/grok/package.json"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7392575a1be6b0b7220b5a4d3bb226ca595b01f6915a7273e404941c372c6bdf"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060thread::sleep\u0060 inside an \u0060async\u0060 body: This \u0060async\u0060 body is polled on an executor\u0027s worker thread, and \u0060std::thread::sleep\u0060 blocks that thread: for the whole delay no other task scheduled on it makes progress \u2014 the Rust form of blocking on a task. Use \u0060tokio::time::sleep(\u2026).await\u0060 (or the runtime\u0027s own timer), which suspends only this task. Where the blocking work is not a sleep but a synchronous call that cannot be made async, move it off the executor with \u0060tokio::task::spawn_blocking(\u2026).await\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/scroll_matrix/runner.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c1962b2e5066bae4aac1b14b3d5fa06d02ecfcd96893fb301e382c38315e11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!gate_allows_probe(ctx) || !std::io::stdin().is_terminal()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager-render/src/terminal/da2.rs, crates/codegen/xai-grok-pager-render/src/terminal/xtversion.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/codegen/xai-grok-pager-render/src/terminal/da2.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b1ff453b00a7b1b1566921844a45a1577c33ba8a557b4932a781f7fa5d0bf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!had_activity_before \u0026\u0026 agent.session.tracker.activity().is_some()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs, crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.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/codegen/xai-grok-pager/src/app/acp_handler/mod.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffb80355ab62300031f9d4c579a0b85099536190c98a4f6815d798129633025"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!id.is_empty() \u0026\u0026 seen.insert(id.to_string())\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/acp/tracker.rs, crates/common/xai-tool-types/src/task.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/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"27988e19c942d7f4b0e8a0dd885ae4e1a6b453877b8deea0d1ccfaf543edbfdb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!msg.contains(\u0022task-a\u0022) \u0026\u0026 !msg.contains(\u0022task-b\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs, crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"599bf89060dafbc28dcdea0bcc7d5ee7be2375d019a948b7050b44dfb60f5552"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parsed.username().is_empty() || parsed.password().is_some()\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-pager/src/views/elicitation_view/state.rs, crates/codegen/xai-grok-shell/src/upload/trace.rs, crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.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/codegen/xai-grok-pager/src/views/elicitation_view/state.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ea8fb01eb5434353b3938601d174e4256aafd7566f1dd2375fc8ab9946d07a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rendered.contains(\u0022${{\u0022) \u0026\u0026 !rendered.contains(\u0022${%\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-agent/src/prompt/template.rs, crates/common/xai-tool-types/src/task.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/codegen/xai-grok-agent/src/prompt/template.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3abe9969da1389a0fc6769240b650ef462a31cbb084c5b51931c1a45fa4c5e9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!s.is_empty() \u0026\u0026 !s.contains(\u0027/\u0027) \u0026\u0026 !s.contains(\u0027\\\\\u0027) \u0026\u0026 !s.contains(\u0022..\u0022) \u0026\u0026 !s.contains(\u0027\\0\u0027)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-workspace/src/handle.rs, crates/codegen/xai-grok-workspace/src/recovery.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/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":4757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7a5508170138a64dab54adf29dd1b686168190e59f4c2311dbda450322aadb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.prompt.text().is_empty() || !self.prompt.images.is_empty()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs, crates/codegen/xai-grok-pager/src/app/agent_view/prompt_stash.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/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd61b0e18fd865310c9ff29448f8d3107e36f6a44e966ab1fc4bc0010034106"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.column_range.end \u003C= b.column_range.start || b.column_range.end \u003C= a.column_range.start\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-markdown/src/streaming.rs, crates/codegen/xai-grok-markdown/src/url_scan.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/codegen/xai-grok-markdown/src/streaming.rs"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28a1a1f4576bfaf39c9cdc36ce3df2c4a89e6406bd4a0d1950a358eecbc93ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent.session.session_id.is_none() || agent.deferred_permission_mode.is_some()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/modes.rs, crates/codegen/xai-grok-pager/src/app/dispatch/settings/ui.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/codegen/xai-grok-pager/src/app/dispatch/modes.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00ddb38e76fde7ee462ef55544142b4d12c30ebc2e7589c6341960ea9638439"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent.session.state.is_turn_running() || agent.session.state.is_cancelling()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/turn.rs, crates/codegen/xai-grok-pager/src/app/turn_completion.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/codegen/xai-grok-pager/src/app/dispatch/turn.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"402d520bbf86a3ade5bd647bebecc5c65f25b1b37a25787f0647d7f8e29f2fe7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.is_alphanumeric() || c == \u0027-\u0027 || c == \u0027_\u0027\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-mcp/src/oauth.rs, crates/codegen/xai-grok-pager/src/views/agents_modal.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/codegen/xai-grok-mcp/src/oauth.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bdf7f573f57673f9fa5f503ab06b9b3a0ec6880d6a0aa809f969d10c5c3e35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.is_ascii_alphanumeric() || c == \u0027-\u0027 || c == \u0027_\u0027\u0060 appears character-identically in 4 files \u2014 crates/codegen/xai-grok-shell/src/leader/server.rs, crates/codegen/xai-grok-tools/src/util/mcp_truncate.rs, crates/codegen/xai-grok-workspace/src/permission/state.rs, crates/codegen/xai-grok-workspace/src/session/checkpoint_store.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/codegen/xai-grok-shell/src/leader/server.rs"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00aecbe45d889e0cf9981eb9075480e3570bf9711d43e88fda90a0ea6bff854"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.is_ascii_alphanumeric() || c == \u0027_\u0027 || c == \u0027-\u0027\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-session-search/src/fts.rs, crates/codegen/xai-grok-workspace/src/session/tool_config.rs, crates/common/xai-tool-protocol/src/ids.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/codegen/xai-grok-session-search/src/fts.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce275eb3ce9a537c6acf2f41e11ef928c8c99e45bd0ed8cfb7a1d05c179904bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cell.fg == Color::White || cell.fg == Color::Yellow\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/fps_hud.rs, crates/codegen/xai-grok-pager/src/views/scroll_debug_hud.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/codegen/xai-grok-pager/src/views/fps_hud.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42275362d4825a2f2c7be8c4924bcfeaabd6d1268d7ba7c7952074e13856328"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cell.modifier.contains(ratatui::style::Modifier::REVERSED) || (theme.text_primary != ratatui::style::Color::Reset \u0026\u0026 cell.bg == theme.text_p\u2026\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/modals.rs, crates/codegen/xai-grok-pager/src/views/new_worktree_dialog.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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":3341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d4ce03c117cb9a159e287022d2e6f53813af8d5d8596fd0e056ec73aa055d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060col \u003C area.x || col \u003E= area.x \u002B area.width\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/overlay_list.rs, crates/codegen/xai-grok-pager/src/views/rewind.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/codegen/xai-grok-pager/src/views/overlay_list.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd6dde050f863c5afee98992a05efd1c9105ea9f1c96469497f085e88f2477d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060completion == ClipboardPasteCompletion::FullMiss \u0026\u0026 ctx.source.is_clipboard_key()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e0db0ef1801f0b462188847967f55a8e9c77fda4ba0a5b9de3f6696f9c2965"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content_area.height == 0 || content_area.width == 0\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/picker.rs, crates/codegen/xai-grok-pager/src/views/settings_modal/render.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/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"548cd7d5c50c2ac4bf0bdd4762b7d52170cb73c5761e10e2bcf3559d5b93e685"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crate::input::is_mod_enter(key) || crate::input::is_delivered_super_enter(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/queue_edit.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/queue_edit.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1434589d8e60013608662389f4600aa4f15bdf0eb5a7334e2507bbd65e5e8307"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crate::input::key::is_paste_key(key) || crate::input::key::is_inline_paste_key(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/picker.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/picker.rs"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c42074c90235d0532e7d539a146be30385f3b981abbdf382edbe6d5e1a6211f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crate::nfs::dest_is_nfs_mount(dest) || crate::nfs::dest_is_mountpoint(dest) || !crate::nfs::dest_is_known_unmounted(dest)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-fast-worktree/src/db/queries.rs, crates/codegen/xai-fast-worktree/src/discovery.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/codegen/xai-fast-worktree/src/db/queries.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb52aab59add6beb209bc0307d07d92d0975dbefd598c80600cb3d985266c65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current_content.is_none() \u0026\u0026 after_content.is_some()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs, crates/codegen/xai-grok-workspace/src/session/file_state.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/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07b160a7bccddcfab77926359ae33063984b30890f171dee1b73205ea582952"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current_content.is_some() \u0026\u0026 after_content.is_none()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs, crates/codegen/xai-grok-workspace/src/session/file_state.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/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"0016834ec0d1f5a0bc3105fb48aeb4b65e0054f841f974ac5b927834cc53d0d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dd_area.contains((mouse.column, mouse.row).into()) \u0026\u0026 !on_scrollbar\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/mouse.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16203a613e771cb74002fe4fe5d90e8392de4bcff1843f09a366bcf9f8ac61a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.code() == git2::ErrorCode::NotFound \u0026\u0026 e.class() == git2::ErrorClass::Repository\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-permission-rules/src/git_content_filters.rs, crates/codegen/xai-grok-workspace/src/session/git.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/codegen/xai-grok-permission-rules/src/git_content_filters.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8e4a1ca2d84181709fba7de8fb0f89a2f93b38a5d22d912fe8d746536b984c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.kind() == std::io::ErrorKind::NotFound || e.kind() == std::io::ErrorKind::NotADirectory\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-workspace/src/file_system/client_fs.rs, crates/codegen/xai-grok-workspace/src/handle.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/codegen/xai-grok-workspace/src/file_system/client_fs.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3165c728aa61ad2a3902a853a015b3305f125f85b79a76cf0c1431e9587dbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.path.contains(\u0022/chat/completions\u0022) || e.path.contains(\u0022/responses\u0022) || e.path.contains(\u0022/messages\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager-pty-harness/src/flows.rs, crates/codegen/xai-grok-pager/src/app/leader_cluster/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/src/flows.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe56fb95567b7ae16eaf07891be88b22be7a1d5e0aee33a2ea85da4f2d273de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fd_meta.ino() == path_meta.ino() \u0026\u0026 fd_meta.dev() == path_meta.dev()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-login/src/manager/lock.rs, crates/codegen/xai-grok-login/src/storage.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/codegen/xai-grok-login/src/manager/lock.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"070ccb8e38938ed89906404059bfa8e0221ea925ea892e57b5ac282ae45098df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060goal.goal_id == goal_id \u0026\u0026 goal.status == crate::session::goal_tracker::GoalStatus::Active\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs, crates/codegen/xai-grok-shell/src/session/acp_session_impl/goal_support.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/codegen/xai-grok-shell/src/session/acp_session_impl/goal.rs"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"497e836d8dafe8ae6226266cacfde666e54bba3c36bd8c747f9db9d025fddea4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060has_scrollbar \u0026\u0026 mouse.column \u003E= dd_area.x \u002B dd_area.width.saturating_sub(2)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/mouse.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c03100edc47f4f9a59e7a234c09cd44e39cb55840a1dc503bed38aeea64224"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060has_skills || has_agents || has_mcp || has_hooks\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-agent/src/plugins/git_install.rs, crates/codegen/xai-grok-plugin-marketplace/src/installer.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/codegen/xai-grok-agent/src/plugins/git_install.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be7351d1f7776aa4f5bd29cd02718eff8ab9bb640bb3c62d0a96a76fddbd09e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060in_prefix \u0026\u0026 (ch == \u0027\\u{2502}\u0027 || ch == \u0027 \u0027)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager-render/src/render/bidi.rs, crates/codegen/xai-grok-pager-render/src/render/wrapping.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/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d478fb95c9c16a6473a054d6720b033a5e9717d9e26562274dbc490a529b68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_within(path, tree) \u0026\u0026 !is_within(path, except)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-sandbox/src/command/policy.rs, crates/codegen/xai-grok-sandbox/src/command/protected.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/codegen/xai-grok-sandbox/src/command/policy.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fa3334685fe4c5448c240ba682d38de88352d5692f9aefa3f0e86b411e70b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ke.kind == KeyEventKind::Press \u0026\u0026 (ke.modifiers == KeyModifiers::NONE || ke.modifiers == KeyModifiers::SHIFT)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/csi_filter.rs, crates/codegen/xai-grok-pager/src/app/xt_filter.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/codegen/xai-grok-pager/src/app/csi_filter.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1996a14b2b8e646af6fb4e63150feefedb85f81241934b496dbd2a34724b3266"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key!(\u0027c\u0027, CONTROL).matches(key) || key!(\u0027d\u0027, CONTROL).matches(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/app_view.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/app_view.rs"},"region":{"startLine":2871}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a69522f11ba546888588b99525d05c7ee9a4a3288a82d4c75e548aa8900917"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key!(Down).matches(key) || key!(\u0027n\u0027, CONTROL).matches(key) || key!(\u0027j\u0027, CONTROL).matches(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fa382d094af4f9bd3c0ba08929a9332ada9d4d49077d2e89f0eb4370493a40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key!(PageDown).matches(key) || key!(\u0027d\u0027, CONTROL).matches(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"158ea61fa038a7958aa2dd90839317490b3576e5b6e270d74aece39edae48f58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key!(PageUp).matches(key) || key!(\u0027u\u0027, CONTROL).matches(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa1742bd112310827136560c74953e4ddd9959dc7b382f77033dbc6baa6f406"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key!(Up).matches(key) || key!(\u0027p\u0027, CONTROL).matches(key) || key!(\u0027k\u0027, CONTROL).matches(key)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs, crates/codegen/xai-grok-pager/src/views/prompt_widget/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/prompt.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c80de644f78f9f10bd1730cb94e55213f47a22ab0e801e7a7cefc167bcd7f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.code == KeyCode::Char(\u0027f\u0027) \u0026\u0026 key.modifiers.contains(KeyModifiers::CONTROL)\u0060 appears character-identically in 4 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/viewer.rs, crates/codegen/xai-grok-pager/src/views/block_viewer/mod.rs, crates/codegen/xai-grok-pager/src/views/memory_modal.rs, crates/codegen/xai-grok-pager/src/views/overlay.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/codegen/xai-grok-pager/src/app/agent_view/viewer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4cba2e062f5f6853d2904063874e47be5a8372a61bcff0ab0a68969379d325"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.modifiers.is_empty() || key.modifiers == KeyModifiers::SHIFT\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/interactions.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.rs, crates/codegen/xai-grok-pager/src/views/settings_modal/input.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/codegen/xai-grok-pager/src/app/agent_view/interactions.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e345c35f03072d71897613713704456928c38148ef6dfae327fedcadf5d3b12e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060level \u003C ColorLevel::TrueColor \u0026\u0026 terminal_supports_truecolor()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-markdown/src/colors.rs, crates/codegen/xai-grok-pager-render/src/theme/color_support.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/codegen/xai-grok-markdown/src/colors.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2ad425fee1ad123dcfb98b69c0b6971276becc804524ec4b9897649af0977b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060meta.file_type().is_symlink() || !meta.file_type().is_dir()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-config/src/global_hook_sources.rs, crates/codegen/xai-grok-sandbox/src/hook_write_deny.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/codegen/xai-grok-config/src/global_hook_sources.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae65201729bf33b6c6d96c65a21fcff81ee31c22f05242b8ff3f58b13c83707"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060meta.file_type().is_symlink() || !meta.is_dir()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs, crates/codegen/xai-grok-shell/src/session/workflow/registry.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/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26829cb922576f135fb2a281572e0da4b569b713a9e436a14a184ef2c274c3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.file_type().is_symlink() || !metadata.is_dir()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-config/src/managed_text/source.rs, crates/codegen/xai-grok-feedback/src/draft_store.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/codegen/xai-grok-config/src/managed_text/source.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d99978bbc9cc1052607a3ea833b7718adde5417085f3aaa595a2ffeb7220d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.file_type().is_symlink() || !metadata.is_file()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/session/workflow/store.rs, crates/codegen/xai-workflow/src/journal.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/codegen/xai-grok-shell/src/session/workflow/store.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"da05803dc2e49e790a97399b5d3a489acbcf8e839b0798b016776e8cbb7b46b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.len() == 0 || metadata.len() \u003E MAX_INDEXABLE_FILE_SIZE\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-codebase-graph/src/index_manager.rs, crates/codegen/xai-codebase-graph/src/manager/builder.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/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e18be1e31c856cedfbf521977deb0944610f901d7fa15a047d1644a315797f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mode.is_browse() \u0026\u0026 searching \u0026\u0026 key.code == KeyCode::Esc\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/modals.rs, crates/codegen/xai-grok-pager/src/views/shortcuts_help.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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4493019a72dba07655b0526ec701d9a0835c0af0cd81996e74dd4468098251e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mouse.column \u003E= r.x \u0026\u0026 mouse.column \u003C r.x \u002B r.width \u0026\u0026 mouse.row \u003E= r.y \u0026\u0026 mouse.row \u003C r.y \u002B r.height\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs, crates/codegen/xai-grok-pager/src/app/app_view.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b07a2dac95e25b5f8dc3c0ae5cef1ca9a985f16794570b68a8b9540fd5457d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060my == first_content_y \u0026\u0026 mx \u003E= content_area.x \u002B content_area.width.saturating_sub(10) \u0026\u0026 mx \u003C content_area.x \u002B content_area.width\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs, crates/codegen/xai-grok-pager/src/scrollback/wrappers/entry_renderer.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/codegen/xai-grok-pager/src/scrollback/scrollback_pane.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"017a625d35aaf9502a580a90a03632e92da134f1bd99125d16a5e8b44a048e4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.parent() \u0026\u0026 !parent.as_os_str().is_empty()\u0060 appears character-identically in 5 files \u2014 crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs, crates/codegen/xai-grok-pager-render/src/input/scroll_log.rs, crates/codegen/xai-grok-tools/src/implementations/codex/apply_patch/tool.rs, crates/codegen/xai-grok-tools/src/implementations/opencode/edit/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85971abc3762349fe59a0b67163d38cad44d7134122ad13859ca853174afeb4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pending_adoption \u0026\u0026 agent.session.current_prompt_id.is_none()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/prompt.rs, crates/codegen/xai-grok-pager/src/app/dispatch/turn.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/codegen/xai-grok-pager/src/app/dispatch/prompt.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"7203c9df4311adc3a147f6aa59aee7fb8f30d6f6eca4d186e924ec56d8d7777b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060point \u003C node.start_position() || point \u003E node.end_position()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-codebase-graph/src/index_manager.rs, crates/codegen/xai-codebase-graph/src/navigation.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/codegen/xai-codebase-graph/src/index_manager.rs"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"954169f73257290b9c1605f0825b566f732679193cb738a1a9ba6d505ceb147b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.width \u003E 0 \u0026\u0026 r.height \u003E 0 \u0026\u0026 column \u003E= r.x \u0026\u0026 column \u003C r.x.saturating_add(r.width) \u0026\u0026 row \u003E= r.y \u0026\u0026 row \u003C r.y.saturating_add(r.height)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/settings_modal/input.rs, crates/codegen/xai-grok-pager/src/views/usage_modal.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/codegen/xai-grok-pager/src/views/settings_modal/input.rs"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"91335bc07b3e7a005884e206c890c795ea02a483be81aaa5a8d02aa8d4742938"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raw.eq_ignore_ascii_case(\u0022fullscreen\u0022) || raw.eq_ignore_ascii_case(\u0022full\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs, crates/codegen/xai-grok-pager/src/app/screen_mode_relaunch.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/codegen/xai-grok-pager/src/app/dispatch/settings/setters.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ba8ebe09087cd364cc09a9bbe820e49b94f24bcfaded1f6ed7c6317753300f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reason.trim().is_empty() || reason.len() \u003E MAX_REASON_BYTES\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-memory/src/batch_dream_commit.rs, crates/codegen/xai-grok-memory/src/batch_dream_plan.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/codegen/xai-grok-memory/src/batch_dream_commit.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a6d182c7dd836695497e95d30046885b5f597da985a4a3ed7e8d36a5190025"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rendered.contains(\u0022start_line\u0022) \u0026\u0026 rendered.contains(\u0022max_lines\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs, crates/codegen/xai-grok-tools/src/implementations/opencode/read/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/read_file.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac75bee675826a20b9871ff96ec11fed4b2079347c6278324c5421fe222e4b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rest.is_empty() || rest.starts_with(\u0027/\u0027)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-sandbox/src/command/git_config.rs, crates/codegen/xai-grok-sandbox/src/deny/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sandbox/src/command/git_config.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"062131872e76f0b95c48fd6c1ff9d7cb28b01cd96ca7e6ecf140cca223af92a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.rfind(\u0022\u003C/summary\u003E\u0022) \u0026\u0026 end \u003E start\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-chat-state/src/compaction_utils.rs, crates/common/xai-grok-compaction/src/code_compaction/summary.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/codegen/xai-chat-state/src/compaction_utils.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"470ac9a7057e954728adbddf9839e3b994536330b048d9fe05f578f874544c93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row \u003C area.y || row \u003E= area.y \u002B area.height\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-pager/src/views/overlay_list.rs, crates/codegen/xai-grok-pager/src/views/rewind.rs, crates/codegen/xai-ratatui-textarea/src/textarea.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/codegen/xai-grok-pager/src/views/overlay_list.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e0fa6f157dd5a16f10754b67c528469099cda4b3031415301a2fb993deb58f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060run.phases.is_empty() \u0026\u0026 run.current_phase.is_none()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs, crates/codegen/xai-grok-pager/src/views/workflows.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/codegen/xai-grok-pager/src/app/agent_view/workflows_overlay.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b096558a1b650cd4b1cbebf118782b2bd325400c3ff5cb103dfc5a673a1ea2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sb_x \u003C buf.area.right() \u0026\u0026 sb_bottom \u003E sb_y\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs, crates/codegen/xai-grok-pager/src/views/slash_dropdown.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/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d9b83cd4b379d6362aa89a511cfeacc7b7e534373288514974b801d636856c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.authority == PolicySourceAuthority::Native || origin == PolicySubjectOrigin::Foreign\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-permission-rules/src/managed_policy/marketplace.rs, crates/codegen/xai-grok-permission-rules/src/managed_policy/mcp.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/codegen/xai-grok-permission-rules/src/managed_policy/marketplace.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35fcd6e25fbc0fb2ae0d4bcb7253d113540309e40442ccef0d21611dc4aadbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.drag_selection \u0026\u0026 drag.anchor.entry_idx != BTW_OVERLAY_ENTRY_IDX\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/render.rs, crates/codegen/xai-grok-pager/src/app/agent_view/selection.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/codegen/xai-grok-pager/src/app/agent_view/render.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d33b6851d596f36c6b447f699677f8b9fad8409df3bda3f7c14a7798b3eaf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.error.is_none() \u0026\u0026 !self.results.is_empty()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs, crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/search_tool.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/codegen/xai-grok-pager/src/scrollback/blocks/tool/memory_search.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7df732125a8ea1bd5e3dbef585230bea12a4115a76a1057abf1b4a5c86a7dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.scheme == \u0022chunk\u0022 \u0026\u0026 self.chunk_size == 0\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/tools/config.rs, crates/codegen/xai-grok-tools/src/implementations/grok_build_hashline/config.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/tools/config.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0887683f2ebc0cb88e9716498a2f35365818679971bbdf318008b1155debb38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.session.state.is_turn_running() || (self.wake_turn_active() \u0026\u0026 !self.wake_turn_cancelling())\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/queue.rs, crates/codegen/xai-grok-pager/src/app/agent_view/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/codegen/xai-grok-pager/src/app/agent_view/queue.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba5eaf5b08f8ed99e1d5871f800b5129d43a80db76a269a5279754dfa6806eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.slash_dropdown_items_area \u0026\u0026 dd_area.contains((mouse.column, mouse.row).into())\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/mouse.rs, crates/codegen/xai-grok-pager/src/views/dashboard/state.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/codegen/xai-grok-pager/src/app/mouse.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a36ff3a64ee8d44f8a3e14ed5e16f875cb9d8d1a341bb7e462c2ee4d073834"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.submit_pending || self.is_draft_submit_terminal()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/feedback_modal/drafts.rs, crates/codegen/xai-grok-pager/src/views/feedback_modal/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/feedback_modal/drafts.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"541dc9d2fef6f29a6845321d93f87eba87c173d35cf7e4e1b2a2d3e1f29a0829"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.surface() == ViewSurface::Root \u0026\u0026 self .session .tracker .running_execute_tool_call_id() .is_some()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/input.rs, crates/codegen/xai-grok-pager/src/app/agent_view/render.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/codegen/xai-grok-pager/src/app/agent_view/input.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c9994aa2d2c1429df1626b17c1527a828b4e10303563d7abba4828487e7855"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.viewport_height == 0 || self.last_width == 0\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/scrollback/state/layout.rs, crates/codegen/xai-grok-pager/src/scrollback/state/nav.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/codegen/xai-grok-pager/src/scrollback/state/layout.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e120ffc7cdd0d126db9959bc923bba70bd777e7a2c73c578bfee9d37c87725"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session_auto_mode \u0026\u0026 crate::util::config::auto_permission_mode_enabled_from_disk()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs, crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.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/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccda76a134dab5b45fcb47630066720a5c07f8cfb702a53d6db0daa874d97d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.search_active || !state.query().is_empty()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/modals.rs, crates/codegen/xai-grok-pager/src/views/shortcuts_help.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/codegen/xai-grok-pager/src/app/modals.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d445b78cf6ab83b9421923e5553404b7b7e82551f420314ade53b11f910d236"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text.ends_with(\u0027\\n\u0027) || text.ends_with(\u0027\\r\u0027)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs, crates/codegen/xai-grok-pager/src/views/tasks_pane.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/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"217dadd30fe8b29198af8a87326cfb0d285a110d1294e798bb09f12781550ae9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060toast.starts_with(\u0022Copied\u0022) || toast.starts_with(\u0022Copy sent\u0022) || toast.starts_with(\u0022Clipboard unreachable\u0022) || toast.starts_with(\u0022Copy faile\u2026\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs, crates/codegen/xai-grok-pager/src/app/mermaid_worker.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/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56e5c71fe0842f86015bb38a249c67e8fd41882e939d2552355f3ab425cb511"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tok.starts_with(\u0022-c\u0022) \u0026\u0026 tok.len() \u003E 2 \u0026\u0026 !tok.starts_with(\u0022--\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-permission-rules/src/exec_risk.rs, crates/codegen/xai-grok-workspace/src/session/git.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/codegen/xai-grok-permission-rules/src/exec_risk.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eff4dc6c45eb9da4feb4326e64f7934fdc58bea83d7f16cfe9a15bff2fc684"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.is_empty() || trimmed.starts_with(\u0027#\u0027)\u0060 appears character-identically in 3 files \u2014 crates/codegen/xai-grok-agent/src/plugins/trust.rs, crates/codegen/xai-grok-pager/src/diagnostics/fix.rs, crates/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/trust.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29efbc3746cb5e4383bb66a227e4c9cbde35658567374bb67031abb40515b8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060upserted.is_empty() \u0026\u0026 removed.is_empty()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_lifecycle.rs, crates/codegen/xai-grok-shell/src/leader/roster_merge.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/codegen/xai-grok-shell/src/agent/mvp_agent/session_lifecycle.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3396f1950e23a3b73270c565a5ad1ae66dbe7b1474c3855b2d3a29c50ffda808"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.starts_with(\u0022http://\u0022) || url.starts_with(\u0022https://\u0022)\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-sampling-types/src/conversation/messages.rs, crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_build.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/codegen/xai-grok-sampling-types/src/conversation/messages.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd777980b57d5a48c6776cca667c51f05d94464cfb4c9426eb4d1c0d337a31f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage_modal_state_mut(agent) \u0026\u0026 state.fetch_nonce != nonce\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/status.rs, crates/codegen/xai-grok-pager/src/app/dispatch/task_result.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/codegen/xai-grok-pager/src/app/dispatch/status.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c916afcecc2f3e9314bbf52b5a0b404c4be05412fe2127241bf3ed564b7fefe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage_modal_state_mut(agent) \u0026\u0026 state.fetch_nonce == nonce\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/app/dispatch/status.rs, crates/codegen/xai-grok-pager/src/app/dispatch/task_result.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/codegen/xai-grok-pager/src/app/dispatch/status.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f2005c44786fe62eb4daeb415d83fbd44234e8b58cc7359b83814e73cc7c10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060y \u003C buf.area.y || y \u003E= buf.area.bottom() || area.x \u003E= buf.area.right()\u0060 appears character-identically in 2 files \u2014 crates/codegen/xai-grok-pager/src/views/completion_dropdown.rs, crates/codegen/xai-grok-pager/src/views/slash_dropdown.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/codegen/xai-grok-pager/src/views/completion_dropdown.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98429b8dbb2c6ee8b43430c873a16f4d5a9a764a5f46780062beeaee1d4813b"}},{"ruleId":"X14","level":"warning","message":{"text":"IP classification is bypassable through an IPv4-in-IPv6 embedding: This function unwraps IPv4-MAPPED IPv6 (\u0060to_ipv4_mapped\u0060, line 70) and then rejects \u006010.0.0.0/8\u0060 on its IPv4 path \u2014 but the IPv6 decision at line 63 classifies the address as written, and IPv4 reaches IPv6 through three MORE embeddings this function never mentions: IPv4-compatible (\u0060::a.b.c.d\u0060), 6to4 (\u00602002::/16\u0060) and NAT64 (\u006064:ff9b::/96\u0060). So \u0060::10.0.0.1\u0060, \u00602002:0a00:0001::\u0060 and \u006064:ff9b::10.0.0.0\u0060 all name a host inside \u006010.0.0.0/8\u0060 \u2014 the range this same function declares non-public \u2014 and all reach the IPv6 decision un-unwrapped, taking the opposite verdict. Unwrap every embedding to its IPv4 form before classifying, or reject any IPv6 address carrying an embedded IPv4 outright."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/runner/http.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"38565519e5e515e2bf7404e08c85fbdb5d4b9e7104f878eb43a0da32ee5d4637"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060n_segs\u0060 is read from the bytes being parsed at line 829 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 835 \u2014 and nowhere in its scope is \u0060n_segs\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060n_segs\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/index.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6951068c9c987036e1085b4d1bfbb8d38f058a8f648d80629d4382e2e9a75f2"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060n_entries\u0060 is read from the bytes being parsed at line 831 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 846 \u2014 and nowhere in its scope is \u0060n_entries\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060n_entries\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/index.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"6090d00021de20acd9d741d91363d9061f88b92aebe5b2ff83b3973879626097"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060arena_len\u0060 is read from the bytes being parsed at line 1462 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 1463 \u2014 and nowhere in its scope is \u0060arena_len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060arena_len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94898a2145a6312511d56fbf3fe9572bc17d18f855a091518969badc4ef7a48"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060num_offsets\u0060 is read from the bytes being parsed at line 1468 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 1469 \u2014 and nowhere in its scope is \u0060num_offsets\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060num_offsets\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"d884aeb9b5e96031db673f608592a0b865814a594850f531117e2162d96a79a4"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060num_locations\u0060 is read from the bytes being parsed at line 1488 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 1489 \u2014 and nowhere in its scope is \u0060num_locations\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060num_locations\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47373f3e6b44f7497669634a734b9350eeeabcd194b3bcec7df52391ab82a01"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060num_locations\u0060 is read from the bytes being parsed at line 1508 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 1509 \u2014 and nowhere in its scope is \u0060num_locations\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060num_locations\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/scope_graph/graph.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7359ea7b8bac9db70aa67ac9125fa6a3dff2d07a727d16cc54952d1f1f43d66b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 374 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/common/xai-computer-hub-sdk/src/connection.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"a177c2259c5af540124081b5e17fb7ba7314101d72ffdcc704a4586f738999fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 26 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tracing-macros/src/timestamp.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97d4e6db333371f41c5077cbcfe55e04c88e33d50502d4ef1c7d6c5ce5a894d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 33 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tracing-macros/src/timestamp.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf573d073d8842b6f4be5b5b7a5d3c775bdb5c6a955e30cc0393eb975fb7143"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 45 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tracing-macros/src/timestamp.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a208d13195c04c18da870cb9a85092ea5654c56689656ed7f16a1151233a484e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 52 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-tracing-macros/src/timestamp.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bc5a009a3b06bfa980eacb6b97205e815a92fc724dfb44c15c82660b293d92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2070 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-ratatui-textarea/src/textarea.rs"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c5b3bb3b46395928e433d430abe0c1e3ae3393d4cd560e8a763e2ff7c57149"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 333 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mod.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b364d54e76632899303dffee2e19af6de630ec083cfe1a14ce3fe66e14ff3c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 512 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a3872d47521b807bb756a52f3bbcf78663d614441b84e7f6c662f4f23386f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 595 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6d6f885fac846b77dc67237cee84fa6bf49d3ec6117426da7a6ba898148673"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 613 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"228180c91b0392e34125542aec4324aa68a4b3e665a054b53be26b85afebc44a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 632 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bee46be519bbbd1466f371b00e4834523069988740ba2f1f6dabf4af44e251"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 636 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-hunk-tracker/src/actor/mutations.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea944cc497ad1f7a70c237987972311f7473e0161ac6edc8b527f040bde0c9fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 204 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/fs_notify.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"004e4a0dafe9a973b0e0970a97ce81b71c66b86c5cf58182d8f04a65169db0d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 210 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/fs_notify.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a078670c32c8b25f00682732ccd346e44249f89052e89a91358f9a5cb7b730fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 215 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/fs_notify.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bf5c239a26f04c1246d04436ecaa4f0e107c6260b341c35d18323700e25552"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 218 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/fs_notify.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"999eb9db62634ef6c09f8c2e30acd4e0085bb2aaacc0c651d808a15c9a98ca98"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 227 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/fs_notify.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d0d527ad19ef43367f6e37fcf07c9ebf556b4fda772ca1dc389c43bae5234d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1884 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4965aabf21c4ef4e218861753fef302caae5fc199a0a26128ed53a8058d0f414"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4173 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/handle.rs"},"region":{"startLine":4173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27bb10f0f4f5a1ff5aa199cfcfd393fda75f83ecc40d15caa77a232874c2f89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 378 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/sandbox_mode.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72ff2fd0bf7d193af248b5a6185827b7da3fd7788b2110b4a4c65e000dd84f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 375 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_network.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bf07e0a34fdfd1dc3cb2c010832974aa33db93f2bc7af10ef39b92f5c55860"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 531 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"a298dad27ea2bd6c07dd9dfe65af632de3b18942a018c1470ef55d66af62f00e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 540 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/manager/mod.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bd02e748a3a5817bab506c880b47c24299d57045ae1d3d84c9ad0185ceddc6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 202 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c57eb5d553083d75ee7a7b0b651c5097f734df3329b17d138c303577fab3bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 226 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d46b7a6aaa860d8ed4db347754be7a2dfbcbf34d5e43f61c554403b2123c65a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/file_system/attach_file.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"321eef600279ca3b2f947d5a94684de979aa8b76b2ba16e5ebb163f3be477bb9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 83 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecebdae79130d314cafc8add70c03b13d67fc0dbad93340d6840f5edff30138"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 408 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/bin/workspace_server.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b8325f3d11af282b0fc28b3568ed75938ef6aa7cc6737162a41b9a9174dd12"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 223 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-voice/src/stt/streaming.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8505bde81c541295247a9b83ddda95e853949f0b73df09386e4f443ebbdc7385"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 690 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9440dafb0141fe53d3175c043e85e6f97c457f78fff8c76ce9985aceb07d8039"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 745 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7fc3b19ca2a7699b1d3518a7ffc3f1a6c7fcff67e217776fe7380fe6f253a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 851 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"0677d2689e13464a597b765690c0fee378f04ab9161949d5782224d13c5a3f7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1241 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6c3281c1a2f1f0e964f857cf524e6bf5c0af78c123cc10f5ea1ac7a2e28dc7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c44d9014486797b78b750a466c6c80106f5ec777b6553e3e3964fc20b3373f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1332 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"870cf5e4f5c29f654d9361f1d204e367be54c6658d7e039235f570366dcd113e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1442 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f346eb0d0c82fc81d6c8338ebfdad3e3ea50d068a0decb60c43b12279d29685"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1486 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dd791ba99b5cc1a5cd144b3f620637e699a0f52ac30bb502d2fbacba60dd1e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1868 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5dc9a757f9b419c4d28ba315e584a7d2826631344385447761b85e29ed5037"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2095 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5a3a06c1f4ee10d49e248b1f3a45835ed45417493a0071e9bd180e6a261f57"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2109 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"77057b7a9e161085bb56769a696516b6f7d11859f1ff3a306029ffabdd898420"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2124 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f35e867fcaf94eb052602f7995a7f943bb1aabb98846aaa5a61ab05da1db4c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2219 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"384e6a7e864c7c78f475d9d76be93477b34f64a651717cf41c470cc220396868"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2235 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"52987301ada27f3a4a613a3e838820dd75faab98341215a0cd8f40b8991589f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2241 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6964e6546ca59c88b9943ed82676a7e54bec86e1195dc648e8da8fdc25467e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2369 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8478c694012d074012cec6cd286fc59a5d3f41ae735f2208c67ed5a25e4e16bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2529 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74730045ad5ce7760f7c4dd3cc1208e0e6336598bb7604ea797aab572555750"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2651 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"08593790eacf4eeafe15b8b4bb628b0f402443b362f69e4ed1aaf78dbb67fead"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2798 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b32e731e0dc80eb1af38958043c0e5efcb286ee26468ffaa49d2bda3ea53a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2800 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/auto_update.rs"},"region":{"startLine":2800}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc70701356d4574959366277b562666b4b016743f2f9ed7b0ff6f37e0e315a8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 22 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da564b4fda4ffa9e54ec64c4f9e80dc01a0112f0952e03ad0cdb3774d534689"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 32 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfb0053e908d37608acfaa52c5c65c7457ba6a9b7947690e19b03979e2ef96b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 57 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2637444978633d8db9789b9dc077fef72f8acd9661225c796aa80fb4cfcc39a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 103 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/cleanup_downloads.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4ec62a613268a84808b068887e9e6188c8deb7808b1d451e793f4b87b80044"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 271 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3fbad302aba5fca7ec14a3ea5182c09c39f5170009364a356a8d913e4ae9aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 391 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"289469cf147aab429b112f4dcf4d661e42b5fbc1819dc40a2acbf5ba5377f512"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 398 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d316a894f7c502f98edd99184cc010639fd47f267787a63a9225f7687d86c723"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 403 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0539f8fb0507e799e65e89375e31bbe7d088e623599960f180b548ed6cba3d24"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 407 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/version.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7eee4aa4495699c277bde38851cf368a07160b2bfacbe932039fe8192e76e0c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d81f4677335d01f7cd0fff9ca7d4240baac5b82f521af3ce9fb31c28d15603"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1aa5f0bb1582beedb60a554313d87d546a86741bdfeb1c1a356a1b8913993de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 297 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99b5e2c60fc3d17bad57fee53cf88202bf97e1e71ff8e74a2f776b40fcbe937"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 303 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42bdc0cfaec50772ed15a50e9e57f8a9b88fb6f2fdc5787481b8dd5b12fabdf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 320 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d47340c558a732109a29dd80e60c440b799b2a379ffa5164cd2ef4a94c9eb0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 340 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c601c31509d8e72785d06eaa2e31e914b4e6cf50a3ea9bb3c4d840486301d4a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 344 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1c623becf5c53d17c37237bb54cc834142985d74999ff0d01d53b0983af151"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 349 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"148a002d3f64cd810daa28f37b9f7b2ded07abfd60bbe896b8dc0762e915758a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 354 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"6580ec598f7b19b735b57357bf1cf4896304b4e8fb0817a94d2fce937638ea20"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 361 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"3423492654c80509f8f8096bf0fcb9394171fd79fb671d8839fcb027e9756dcd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 366 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a2fb63868b1045068a0924aad10efe738456f70863df2808151af66894a634"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 370 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7032be2a6122a5cce9ab03a8a1656c362d7ea609a5ec169f22f0ca7cd92270"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 377 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa51b6446b9088013dbf67dc13b394ffea1151c141d6da76a1a7baf6b0f6e85"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 386 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"023659d331556b393cb093212862daded0c218e45a5cec725f8c65fa719fcd3f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 393 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c09f6890b226929a607bc16ca280f057da219217ce8bf131a7c6910126a87e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 398 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28abb3dfc55049eed09bccaa261aa253061e636ca342f33591241cd73b5b636"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 425 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d832785aba0e3d531cd106c788b2a96a63f641d0ef1dbeaee10d2899fd917cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 426 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e86e57a3c68ed0437d3f5edc5b4d5c2e723fbbfbff49ddeeb45faf5368a7d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 440 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f7de9c900f5e06aa1e4296272d2d2b30597b539224a68ffa6f09d829163292"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 441 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"218cee5170ea69cb53f0a9780c809d51bd514f1e1059295c0ff77669f9c32a09"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 527 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/src/windows_payload.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e217459a7d1db640bf5cb0c1b092f4bc3c0f476bfd696b952881353f8e1e2e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 113 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/persistence.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd1c8483ee558afc84d88f871a0175b52e3b42bec20806364323e81e97e5a76"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 121 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/persistence.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"69663b5c45cea49be7c101ebe22495806f147ff64094b666d5245f0fecfff10d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 315 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/persistence.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd18cf86bcef23d66ee08d5878582f7be03c10b7c966ef497447d03125ea0015"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 69 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/retry.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f7095c35aa5eb247da8162dbcddf34ee1db099aca1cb19050916ef1162a01b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 75 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/retry.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb088c3b93eb80bcca56416e9829ebe8f422d132ae679392423ddf48ce703e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 84 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/retry.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5def1e2c2705b92fb6636e5f909262682569b3259669bdd577ada398756240"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 348 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/versions.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f43657b2381f18bea10a0fbbf63a13323c7464b74cfb89665255afdb4870b05"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 425 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/versions.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"539e049d34e2224b36a27979d0026f98d57a93664744191c3c8edca0e63395b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 33 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/fs.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9592ffabefde5a5be921df3ee2067ed3919c63a8d07faab10270286b09f35606"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 93 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/fs.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34b13edb162f2b71ac7bb4ae7742891d1dfac71dc0eac1b15266c36db177b70"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 29 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/util/vendor.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24dec6f309ce54b322e52d0b05f6584cf560ac7e880d022c5aedd416a4517aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 64 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/description.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7252933b757ff84362e856caa67e5295c45ff02897aaf9a27cdc1f0630b4d282"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 131 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/types/template_renderer.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ca1ead4b43b7be01b144cf2d38ccf49c9e71ac78c17ab137d5660887f02a11"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1144 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3e02e1ea14e116f78888b670a6536c33fa97d10ef310a5cd5e46754d4f1163"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1162 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee2c9cbb249aaa3886f6ae9374aeda30d3d6e10cd8d88f8b09ddf2e7ec7ae1f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/registry/types.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"336479b0b0c708f81eb17163b13419d3100a0cf9e943c95e49b5194e5d60dd9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 720 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9855052c6eebf4bd7f43cd1d354a3d772cc18e10d3a7de34e8ac2445caf310f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 746 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/skills/discovery.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"427e02d49c1ef8c714d6056c955586990a9fb8011c998e79c7ee3c2fc6a1249e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 455 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/lsp/client.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec58336af434d8942ea8542ae985e314c790e0fbc28a7e67ac48ca80c8eaf327"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 89 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/client.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1894e23ce5b1a3014aaac110c06f0d94d8364f1b4238b3bf36a2de9beadfdb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 102 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"999b6246c228a87504913414b3748128033edf44985e151c7bac5c9c0daae40c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 114 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/web_fetch/mod.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c4c372f33453fa1f1b042598c75a07ecf381f87c78388f70606782aee3afe3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 383 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e520b36810813a8cfcd8cf6c431b6f734904e8d7ca494fee9a1b88c83734a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 395 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c731642924afaad9f229be5cfb9bf21ce3ca68cf3c8537a0a9a3607d8116f2c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 469 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"335f3e53249f394a89658bde109b09c478e0bb7869084069e6bfee05e91576c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 555 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb34dadc7ccf2096507e412d02827e1ba7ffd798f9bf4b61a53fe3ee18f45bc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 570 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"737cda2738524e695925b14a822e96a72ca47e91a6afb65e4f4dde3a184ea6b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 617 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/video_gen/mod.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ee0794c8050ef69618dd4dd7b1c0c3db17fe122610e5f531da80f89b7c0709"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 852 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/mod.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7c6e4d516fdd64cb0209d0ba6acd0df809472396835b093725f07d3bf8ae1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 90 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task_output/wait_tasks.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f6c00e7f69807832f865aeaa1162883ee18db2e68e32f76f1682b4976b4332"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 218 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c9b10ed6e344489b62bb2ccfbfb1010eee66ecc91473987cfe4094a461af69"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 252 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a175ecc178a2f99647c43bd4b10d43b02b6b597dc4acb64da90ffe8c41af84"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 137 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/kill_task/mod.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b78525dc9386711d19ff5936cfebb6aefab51caa8ba16ced16920bc443bf771"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 259 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d5b8cf26ab71c8f6401021c77264a3520f872cf612f3ecbdc769dce036d907"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 275 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_gen/mod.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adf885652eea84e69c385f95fa68d085b214fe60b611f8d147230ccd1a1aaef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 413 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8d31034b671dec4eab0f68f29576979c6725d30ede71b8375e0c4850151b0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 429 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/grok_build/image_edit/mod.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1266845891965e461c556a596d1eec78856da8d5c0dd54fdb67b8a305137a20a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 263 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/cgroup.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09e4e01e8aabfcb79c1bad3acaf5b7dbc07a14cab1a81bbe792e683da5b736e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 403 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/cgroup.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7651c3c4a508d80caabc8825d4635112efc96dab18d25a1ffbe9c269e38bc2e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 495 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/cgroup.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f209137f5ac4cc541e2aa2d3db6b298f8eb430caa59b0774ae101845466f1c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 168 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/embedded_search_tools.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d320e0017f5fe6dedeee051b1bef336a65f79c40b1851630aa13347dead10ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 323 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37d05ad58ed480a1a5e90919d59016cbf28b0674a78a4af41231e1b00f890e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 326 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9af960bb03765dc03987233b85bf132d6148b3b5e8af95c55e3c4bf9c61948e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 839 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"f613e4d484a466924d76e4c9dab4d3f10950279eecf8d647fc03631e4a4af8da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 109 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/static_shell.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f8218271412a6a09fd741e686924dafa90223316054fa788bc647b54b305c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 797 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f0fefa0290b5b6778263796e3a2ac4d82f1ee13df8ca938811761584452dda"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 805 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43c3adc685def8b2f703735b79cf54c23435cd379567b16158acee7ca858342"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 832 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"832f004c4aa76c7669b34b39aaec5c85851fd948cef505ef77b0369d16f68ab9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 922 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"236cedaec6bf3dc159f8bc550138bbf43559e5c99e96f24f775e27d4ec17e0f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 930 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"047e863ba820e314e29d695474a8ccae9196cf8655b0c488267670b5d93ad028"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1219 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f543cc7fb95ff782b14132d15740c6ad3a6b1e7c25fcdba95df1ff112d1777ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1225 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d22aa9525f1a881b6ce9ad552609e16c9a4826b562b09df18c90864e20702f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1369 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"da94b3efc8350aa96cca670e2586033591db4a2e307477711ad2b8389911d68f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1375 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a802fb6cd6a86866ef8f00400c00338bd9995a309b8ac80d6a3ea15753826568"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1633 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19c13a698ad6250743c164ff2c698ba4934485881c009e03e3661322c74079c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1636 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b2f61b0e7f1fb0423092b43c503697154233c1129d179283b4786cee610cce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 3455 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/computer/local/terminal.rs"},"region":{"startLine":3455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b786f452f7cce4d5aa48c18ad2ea521b212ee5927c0ef4afb9ad7bb6a3044e9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 359 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/debug_log.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3d5d2fac14fb0db881c58f4d3be0198a4ff6a77bbc38bf25199deaff865460"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 77 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc9897ca62ad07de311dd3115254a8bc3d52bf4d7f54866ff3ba2961e2e3348"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 99 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/hooks_log.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31ef65011bdc1776c2ffba8e77c0d9109367e63acf1dd20d3278021cc0f5f71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 82 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/memory_log.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca17658b0a8b8f2016038faf2bb2d788982ab22fbd6cb150647411de0710f970"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 35 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/sampling_log.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8656c7f35ab81a57eec5aea5e05f828e6398ddfcde0582e7880eb101ea5a60"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 50 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/sampling_log.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3981aefbdb6fca3e1e4cb0bc15124ac539bc1267723357e0664ff991e9f0785a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 219 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd8f19f57e7623e72ecef3d4a292f165b25a00f8cd59d2618947713fef6a511"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 236 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"442db32de632dee34f9da81910a37c947068b046e20870c64474f28a4467fbff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 292 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e986b7bb8ad2b3480be297580b6544cb35e2e6c7f26e98bc64b991e204f3a2f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 320 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86d71143759df72146a86a4509413ee5a1abdd903ebeec507aaf250b57b9ded"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 342 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-telemetry/src/logs/unified_log.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9d46a1bc8e9b22bb242ebb7a82bc2e3ed6dbdcd0d515d89ca0feff0b75d23c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 130 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c643f182a1f7654f63a7010b27cd4b44b80c897d564960b1b0ad2e81d007d81f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 135 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dce594b03e84310f624479714224424a187fb423b8a8647d516cb253048b66"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 165 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b380b9efb2a2ab9fe212f2a0ab78d23747aef0113dbc3489adaf155a44260a2a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 170 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/local_terminal.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b560eda7dd6c0fb402c06d76b0288b9ad13e5292568d9f379bd1bec4ae58ba76"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 611 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cdaa30ed4c32be23a7a1f558322d1736dedda90b03a08aaf06e18b606ebdca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 624 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-terminal/src/streaming_local_terminal.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5a75f92d4479e712abb7527107ac04243d886e22b57f034de7a9797a5053d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 181 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1803331c0f953536158620b36c65e6a516a1de657f8d8b29981e852443def3cf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 188 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"81025aeace1ad9f7f1c7f6e48fc2c85eb3f734901067c580d790c57ed34ee216"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 196 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f4144f436b40d1c442c8ad447c04670c405cb43dd8b5340ac88be4f1507d43"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 236 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6723c7ad2c7f7cf6a17dec284c57f2d6da1ce3d85f6ac7c77013305fdce7fc22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 243 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c613387479cf44124c9d62d192f4c828d5050dc6db29ac420d220e81d8243"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 255 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell-session-support/src/managed_mcp.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ac58220e1adc8e579b99d3b1a45ac73f45cfd41f5c8b0b59d98751e1238b22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 19 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/mod.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"153a56e1ce46b4c36ad628fb26add7aa2f940760d1c5ebc4fd99fa18557b66eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 23 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/mod.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aa46185f6e6a8c9fdf0d4db038b75a5e5d15e585027296a0cd15bcf9b61ed9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 268 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/user_identity.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"824e95ec8d4a9dd48c64d9250395cfcd9ffcded72c1b6e2c9021c566d3f69b94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 55 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"db328e59d4327d6ffb3cc5a3a094c1d29608a5520aeb3ebecc5d62149825094e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 60 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d1e8815d0ea96a28e608703f1da32b93043c0534508b2038ecf43e98404c5b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e32a8fa5934814a289f6167985d7cd07675b43462870680b62c7a61cfcbe49c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 130 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a806b315307bf455943e488afaa26befa5ae5a8980695e12c861f11b09760b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 151 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/util/config/worktree.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6cfed7fdb8b52e5c0970cdd61e4aeefeb32883e33447ac8ac5b230c66fce3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 433 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/upload/turn.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca647aa04d4c907ba581834a35d1eeb4df7b58267a5eb3d7f90b275d9a949462"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 449 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/upload/turn.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dbf1a0b3b31ad208e14114538e73be67057b70a252c2a44a20f96ede5b72d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1092 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9078acfc3beb038e4be80820589fd5b8a0d3c1114cc788935ced9a81c4f2ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2184 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fbddaed12fa80d8509625619e96d769ea30f52f493ccca00a6c61f8df57f01"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2196 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"79107423027e0cef9b0c9663acc8d792805478ed4ae79ab6bb7c74aebc4c35e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2262 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction.rs"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45f125799cadc874f6aa37bdfc39a7ad8cdbad908144ef7076c9cd3e3572e6f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 124 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9702a5447b433fe91cf364c346d97281458e37a8dbc8da74915f2398b1ebf3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 198 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b91513332fafea846ed45c2842cec4dbc821a552f6f98fd53fd44d7ff76246a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 202 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6284c6d4eda145d35f0e4b61b98ab9effb3c010887087b6cb4074354282ea91"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 205 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb5360633f7db0df6588e880feace99eca1e3f50c8f3a1955850930d3accd71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 207 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf976dbd2603aeaed37ce5c1b7129f58b4d0ceb31388ac6feb36c6daabbf889"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 213 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7020e7bc21c5a5dec30ada6a4de478174a962ea181bbbb9e4f9199c01af3a4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 343 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bed6471b1e1506b022f216d018b26bac4957a68c154228d7faaeffc42c66385"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 377 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"134dccff59d08e4501a56e6a2ee762fb9f98a85f378a951159b75141eac5be3a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 383 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87d1605ae50efdffc542b2a09eb89da5ef5651fb3c4b53a7ffe43420678e003"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 430 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4506de3b82f35be9c9c781c159eab82c44ea5c78a234126f8868667d200b892"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 870 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a418a2dbce54fa47adb6d6cffb4566780ac9f65329a2e16b099fb5cf1072b9d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 874 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a51e1875921948cea0d3ed896dddc699c3623ae3377eb1897ffb8da5c2adc14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 878 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73cf84076f0219ade4777e7ef6433b7e6a73fe1f6775b282fa0d42716b8c390"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 936 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/fs_watch.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"627ade4eead415fdc4b25d2042a49a63b73b0628367551d40c16702217bf6bb3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 493 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/goal_strategist.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"479188f790d34fa1934fd9ecf79eda05cfc3872a74dcfc31249581cce52c226d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 151 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/image_normalize.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9907464affeca2dcf4533c16eb5c327d524027e75e039e4bcb583a5c54da4f95"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 205 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/merge.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac349bdd951c5330078dc24bd833551664022a18e252f956c1629ef684a2b4d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 295 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/workflow/host_service.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef65ba957da7a8b962e720dd19b54d84faeb5362bac8dccf288ef03a4856671f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 322 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/unified_list/mod.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"f238d98854fc3fc6dcadbc114fca5bea21473b1d6ac2c50f1de49181cb8e8142"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 443 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/unified_list/mod.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb1763d8e84a91c489d5cdec4d290640fd66511c2b887f25713741aea744d8d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 286 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77291bd4db6ab68c31c53d472160267caae6ceee00c1125f392dc9f6014f0c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 314 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/storage/summary_write.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf9862c92a9c81643d183b9b764318dbd65a772bf6fc1dd68a16eda55741d80"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 746 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/hooks_plugins.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0bdf90dd9cc4d1f44b32b74e689cc1237c534edc541b8d64e0c0166ceb82f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1338 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2a8a7523160251ed50a93ed50c190d66aab680a9673ed89d8cb2bb5bca4845"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1376 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02c4f4cbdd47fbaf4f1ddd5fd4c7789d5aa0d6368e36adba646b487ae851cac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1380 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06e28200a72eeefc5a18475323b448a77cc8f25bcb2008537948787c2e9d7b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 583 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b2076d40dcbdcac230a192aef52cfe0cda698ee4a1327e1856fce437d187fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 697 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"688157ba637351f9a51ccc2bf41fab6b967b076cda4fdab29d0ac476a1833f75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 709 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"05582af9fb2eb521de6512179223e747c07a34d760491cedecb12128309829db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 717 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"65293dc42173cd9780c6e606501fd86f4f3b89484398ab0cb048defff8c4b97b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 729 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/mcp_init.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1078ab035a5a2b0163834c49e1bfa14848a28e49b1d57f5e4d366d104fb19a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 162 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"610a3f1c3416f2fba5c5b2794fd747873f624f2e7a5d70e2755aac5157d00718"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 338 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b13ce016133665f50bbbec4a9d077aa1b90369b8edf3251f651725936020461"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 348 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb346bb7ff8c42eea8e96185ee1859ecdc3cfde71c0c93b42962e2c5e3c86c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 371 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b98c20a8d111225af863ca516e7eac67cce7422c41f2c27e0ff8c0f8c368fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 392 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"43637c7323ee624cb0313dce06661e17c32c6232e85a334f6caaeceb5ca2db3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 411 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"82993990e942b32c3050ccc8b43225ed2e4f0907917eeb8140e8cbad18c03328"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 420 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acbf09cc72364cb3fc00f0538502a14016921b0608cae95f75f388d558e3a00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 457 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b373be962c4b6a775a2591101e25a1ffc2f496d8e3d69261a402b5541ce9a521"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 468 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5c3395135367058f8d34289740d10cdf7354caba201a78e6b228265ae69eb6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 492 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"9314431f5eb56c3554650d31350e6e579ba4b1df1fa516b331684d5ad4d0da27"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 549 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa494c2e502d556a6c622cba51bfd526a9e998bd60eaea86e2cdc78669c4b7c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 558 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a0a8f88ee19edcec3c64368197d4ebd77a3a1854670c68351d4140b53a7289"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 588 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db524ccef8b9c662e488642bb81e786ab31d60046721d9c7c18c00b3d49ea5f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 612 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"844251dbc7330249bde70063a1c4220a951ae23bae58b80e43e132ccf1c33c44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 630 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/memory_dream.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7f912d5ed409e138ebefbc880ba38122b9150160a19fd26988df2d91c441ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 191 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/model_switch.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e7ea3d59e5f5465fb8bcb1aa5f857e8e71b12e7266337dcec7259de0f18ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 134 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/prompt_queue.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"feef80b3167781d7f0888d6cd1f7fe7a91b267fa1c042b329c64e9553d139d22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 367 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26f4b82fa985f4f204f2608c47f8260fabf1de3b2efbe4767af40ab01cd90e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 534 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ebe4179617fef3e2287ee44e546ccec33c3c67015609ae85b8661f698e48fb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 548 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b6db65c81ac5e8e5f522cb35d47da7f4427af2f0109bf804c03f15f8b964b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1265 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cb1f47fa310be62c764d95579e8b68456cce857f0941b20ffee4e21ccdc308"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1280 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8892c0b705ebf81f2f99166d0409dbc4433344f4aa300bceaccf427971d7dbd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1479 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b7344d627b0ff7d8d4547d72049b6aff63d25cceacf1cf5946837438855c8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1499 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbd8b627b6b8e389fc5b7d8badf60581693152b895275ebc9ff7648a876c328"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1508 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8e6ebcd827d1137bb16cdf42ab807166c28814b70e399068a9726060742419"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1708 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca1c3132f3abede4592fc433ada71d877d1ab6e1eae788f197c0774fd61c661"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2278 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/sampler_turn.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b2c1a19d9d0fcab677b43d26891e2b9d40f19be04892cb67f5ed239796179"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 52 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbe925b909f0f210ed8a861377353855c6de7201b3d09dcc940861adabb0e3f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 528 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/slash_exec.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a566f20cf4385f4a1837078ac7def2ea42fc1e788865105a345ff39a780b48"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 358 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/spawn.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f3e0eae47653b037dc399f258d694a03716c14408bac3c762d0af18335038f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1454 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3e6de5dc780ff2ec1ff3bc4c99ce9c07fb9a02af68d83b618aa6306af13f82"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1567 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/tool_calls.rs"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7bc9d277ccd7b0c2bdfa4b0879c2319d94e0231c9c7fdebe41c1bd9389922a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 998 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"572e545f41ba3c04b8a6fb4ce9d2d8462dbcc7f66a0fe25d2305b10f30f2179b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2046 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b70b1d75d3076c62ef44d80c68fbad9917a975d431d0865583fe301aebfd589"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 2061 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c287bda227035f4dfaae3964a1e3e6b4c363a8a45935ab437b69614de102dfa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2077 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64065404d377e43bb0323f95fd5ce57c56b868707ed6233d6bc26213ca9f0ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2116 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn.rs"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd8d9fcc710d541d208eb3d378907ffd92bdfbf49798e4e8abbcff0f8908ed1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 187 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a042ded7817fc3972a4496bffef55f95d93f7bf2336cb1e4953586e1fdcdffd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_end.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf70428a474ec10f43d8b9c474862e58241d84c3f5723e4deb10d8c69125ff8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 125 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/acp_session_impl/turn_report_slot.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf738649f7696d20d3d33873e154ea9540c40df56f5e79fb6e4052468680dc97"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 761 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/client.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af19ca72eacfc502e33db5179f25be3a75ad0d88c8fe1f1c0c001e08dbca0c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 32 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/model_source/oai.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdff9be33427bb419ecf3de8179a3292b7169dbbed2aa22f9f98cfd33a439fda"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 63 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/model_source/oai.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb47e3ce7784c56183ba8efc84967a49d8638ddc3425862635da19fc1bc0e4b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 72 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/model_source/oai.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"830510797ac572347dcfee147201f9f98aa17b7f72bacc7586134bfbc0c62d43"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 82 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/remote/model_source/oai.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"193049bd1da3898ba2f8955d56dba8e19d1c381f506f464515057e2c6ac2afa6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 243 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b385e633c1bd0647415e79caa42504763d1351a609a9bd90e58c948edfb64f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1158 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/plugin/mod.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfa1a6f135d26e0fe3442bfe6e487722acdee4aa328e6e3a30c0c417ff07d9e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 203 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/marketplace.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"321a8a44517a76ebf738e880f9cf1f0ab340a6c7ab3f9d2f7881f15504a95e8d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 796 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d7c9873ee8b8982c340f4095605cb3f92c9adb2c10e7588d52c87601a9b78c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 801 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b6a015dd76ccb5b05e870ebc3fe2e6d552d72a571990cea4196619d8419c9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 822 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/mcp.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e36a97c4b26643ade0c6e2e4359413a528cc18075368129e0a6ad72ba8911b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 55 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/prompt_history.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f6c8f02a10a6388e8f22e111b120187ae1f85d77437fefcc178befa9a10203"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 87 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/prompt_history.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4f51b2f8918d574839bb27bc5f13e661ba7696b2ac2b025b05d2af765f4a85"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 17 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/rewind.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"66770d071efdef6f111e0a15c70591880615433796167e44ace50b7476e1daac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 33 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/rollout.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e1478b2a7b0ebe9d593fdd4ed511959aa0b8554dd65727004d007f9949f075"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 359 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/terminal.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d3fd35ee3ca6dc1094e470cb57de8fa95014d55572543423a6c00b491fb317"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 37 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f1558033797bc073d3eec24e5fba010a6364bcc02baf14838dad297a4b3886"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 43 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/extensions/worktree.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d49db63caf2ce0679927d2b2d9774fec8dc0702609a03c679bdc2fc5c9cbe3f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 387 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/watcher.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd780917c499abe0bdb1139c6a377afb3d001b492e8b4084dffee6fdff12fb6f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 389 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/config/watcher.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bebfcb080c3d31b8f2d8b365010550f7b8efaab6cd4fc3c9274b718253dcc03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 394 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1391d4700268e89479d7c9c5f25a641b955dd74f16bc8a6faf912657fed670"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 733 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"19779cb5a7c62db1d1636f633768b87e63d08e88c7523c97aca1603542cc2ec1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 752 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/app.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"37373643192a3b6d57f0be7a1d5607ce9f81220d20df41bd05a8a22189f6a2fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 252 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9abf7ffcfca15db736f4a4db21fa29c271fb85977b4311016abfb5e1cc7aa3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 286 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/feedback_client.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1880c7a08006234581e4e03c6d093e2ba8b33f8974cb6b2a73353b54b983bbcf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 170 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d890fcc3af065d9cd2e09ba92a671c0dce3c2a73e8c80a9ea275a3879d8f153"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 183 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7582f4131dfa0bd05b920468ed0903ea053885fb0cb9d25ebe6cd971d8f6367d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 200 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"223a429038107f0920ba12b3f1290f9bebe6f61b1c615046e78549ef1c7d363c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 212 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd9e6dbc4c061c64dce7304372f364432cf36ddd674fa1d2bc0b8f5c05611b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 235 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6ce84fa6738002a9a62f82ee4debeed8cf98ad016d770d3c9fd790c7a9988e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 632 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/relay.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04ed815d38f9eb30c0c162dbcdd8bf1d2c39cc84b2ccc95c843a8a548438926"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 128 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8609a498a9ade794fd307a704be07f69671ed8b0ed3baf809156c6db81b998d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 136 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8132af53bc9665a6d4dae5a7ac8aed9a72c369ef4c791bb0151fcae30e2ea1ea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 316 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15c7daf99673e7ca6810227df130edceddc8e24fe82fb3104651c18be9c052a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 339 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"977f17bc2ba97673f60f7abf490688fa37ab57a372a2b4568c401413ff20a310"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 408 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d6e043c27b4340ae6a2aa1b44524dabd224bbc3fcfd82df9410f1b557a6b2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 417 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc4d896f4d84dfd483fa8dbad4fb2101605e6e518a396027162deed17ba8037"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 449 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"683c99042d7298e35a4eb098aad5c27524eb96356171505708d61a2c87755ae1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 626 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"125539fea17c733397f09c0c96dcd0ae0d9cea988b3b156f16af9b8dfaee46b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 627 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/server.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e78c1206d88d728f0db7ea2b99bb8de5735ba86e3187c33b601f970c9bf0862"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 46 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/update_chunk_merge.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c61d4c3a12f8fa5594f0dc006bafb44505c0bec81bfe497bddce4c51f3e0d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 637 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/subagent/mod.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6553e6d1abce9fb121b82918acd2cd4bed9a934ff295d011c153442436397a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 202 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c61ab70162c3a7bed1dcfcf1cda8816355a48cb3ec7b735685859cc96ee05b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 226 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2957b7adbd0781aa8f6a72fac1f9eaea59de3e47e660b36b58e1783eaafed51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 234 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"319db4cbcf97f69ca8038012f25d5d381153b2d228a924c7912bf2e125586b67"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 686 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b342159b8ee8c901a7a055b7051bad11b64869d85db85f19c56a659281469c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1879 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26835d58b73a9f40c590132a7df277710e0f88634c581e21d84d5ebde7e73dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1948 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"3877febef901adc74552dbc869f69cceb1c94abb69e52f2f55a57a8fe02e7f4b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1993 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c6e3f729c48f75de20a14c76034a75a6a267d07111fce7f0cb56a1102b04cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2385 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdba5c9683281b4debddef977450f954325a6fdd96e6c488dcb0a67243ed8889"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2556 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ec19ef3d341b42b3e6c19f6299161b909a211dfba36adc03051b8542185d94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2567 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d3de8008e0a3d4beb716e4fc4bfc3e832dcae1cbe33b5dfcc64811aca7f3cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2614 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"709a1bd978c15bbc27d8c8973bf279318028c650c2fd7d87a7324614639047f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2650 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2650}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b498bc6b4d0e285ddd8b945aa0e179a57c5467fc50d2608d56fe40849fc30a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2683 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/acp_agent.rs"},"region":{"startLine":2683}}}],"partialFingerprints":{"codehealthFindingId/v1":"01893b2ea26cc42c1bd0aedd15e5f414ea6fe37813e3946fabf8f94e9ba8d7c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2059 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/agent_ops.rs"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd264512e211425b848f8c91b8830d67193b126fcc864588a9ac27125b212f54"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 394 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fc0039041df81a84fa076d3da43021e3c89b05ab0db7ed3769b1eb6733be0d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 945 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/session_setup.rs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ff429fc718ee27150ef7027d122b31d85cd5e5524c352462bf985861b5f29a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 521 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/mvp_agent/turn_end.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"249cce163ebd9e9582454c46b24f491c823e94270aa23366aebce7362214f21d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 36 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6024b28ad9991a2c0bef733c6da78a6f17a49ccae27127a8b2eeb46bd682bfc0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 42 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/model_switch.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2508f5096323a23084bf3769d043556186cddf5478adf7fc1010c2e4f2b3c9cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 79 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/agent/handlers/workspaces.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cab26a642cd5c657311e73f6352c368a516e6f9da508295e9588694facb990e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 947 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c55f5efbbced81295b48f3bd3f1deb198e54ba878464696438415e52abd11aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1106 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f734bb10edf65b18092e76b8af019858d2d19568658a5b87b878c3a42477d0e9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fab0623446a01bed5e1988e2076f177d6a5645b4a637deeac891044cc7e3316"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1720 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c3217acdb7e9e1f086cf6f3838c0cf47b718c230cee4f544990f24f91ce95c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1724 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa045a19586d990f065bca3e3adb59dd584e70300de8c50ff4a17b59fc7c960f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1746 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e43b821282448e2b11a5e95141738f88741e234fab5a35dc00c3aca9bbb2a75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1753 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b769c5578ffa5fdc01746c7414e1f319194483e8f92b36a8981f82eb80506b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1809 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c586c02581805026986dfbfc17700a2f21fa99be273d846f4a7be5850c0ed6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1864 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"85160895bc8ca5786aceb93fb24a4f3dca7e6a689d4fe9d5038eac99c3cf2fd0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1891 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a200999f544a0bd8931b69717242a0de2187be4862fe471e7d10c80842d66e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1915 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"64de45fdba51635431060c54537a33772927e4d322a23580645aa48371920ce8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1956 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cbf48a2cbf85cf0476167236dbcae50c7e95cc2a6053c4971535d671dba19e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2009 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shared/src/clipboard.rs"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"145aa029419bcd13173f47effe4a6cdb8ebf725224116174c969b540dd5bd306"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 59 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/db.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6953089f4b990c0418046ce0e9875acf53749f1246d86623a41b99de7b484f17"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 67 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/db.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"91efb8d90b4de88f5d52c75d0ff798b311d5db6868720e667c4dc9f1a22ac03d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-session-search/src/db.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"29edf65e0d3e0063682a790ad97910d79ca763df64ecf3a5bf2ce2efcfbbafff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 552 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/error.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf6d806d0f032c006ced32019503fbfcd6f16a99d6b0303e4393f61d9d4b332"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1020 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampling-types/src/types.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7ab87944806b5fbdae01e1610499e20f2a9fae0df5ccbd888f8afa02ad9486"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 837 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"679d9e6729fc6bf84399628060a193f93e638e799d8f47e98c32b6a9802a6b67"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 982 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20b4a8c78cbfb41cd6cee8c25a150989c74bed0e1ca354b079c89611172bd0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 986 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe0c63ca7e0d0538d5fd7b62a5eae8b7b49e0c72f4b000ff408718cccb154d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1015 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bfe9a07fe3682dbbd2787a907cab5b12bcbe3362fe7527e7a84e165fba1e10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1026 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fbcb16c6d6e01121d55c7828e11cd65925cea0590214728ba4c6266f648335"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1298 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24954b973513edea969d52bcc8c16a648613e8b72fdcaaa1e94aa26450e88ee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdcdf34102f4d45aeb2aebe389e690260401f5b7237358546786f6ec4ed1ee4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1314 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c025883f8a330edfadce05b298e3567ac7d5505ab6c87167f0127b4ecf6c1833"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1455 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9048bf090e0deefc6671c20f30f4d510b7081d70cebdfafbb55d32ddbb1ea8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1665 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b92fdd94c570cfa10f2cc6a6caf4c32b4e59756d29f1fa483d36c73de0b818"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1666 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/client.rs"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9adfe78c2eb818787644f37420d2f7f4943b4dcbcec6a4ac20181c29aab9b64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 211 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-sampler/src/actor/request_task.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"29343c907a5354e96c037945d95485b64152385d313795c33dc22a9852e7e961"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 74 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/catalog.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a3ca6da3531429bbd787fa9fa0368b835f62d7cc13f273c3ddf2f47d6e6ee8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/catalog.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b2da2f89dff4d2b4025e0f11e47971c2c2afda0380bcdc073ce9ba7d6850f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 86 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/catalog.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6bea1390a63e4df2c5fcd897bc7fbe38297b34b42501322912144b71f67cd9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 66 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/config.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a09b1d25d5027a83005e99b49d28608c2f29daa0c39333f6039fa2d8986198c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 98 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/config.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7771c613f8c23b53c37a31051ba0a273825ddbf8e3ea611c2c85d604edfb7239"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 17 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb8cd7930669b473d37ab637249b323ff7bfec68cfdbf0fbe938e8623e5659e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 59 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a599a2a0fe32d728a60b215fd20ab0d3596d40d56b7221ac458f0b8c33ec6e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 70 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1089ca2338b03098f107e64b4d38cee881b9a427f5b5e4964290252a724c02e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 79 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b808717cf31fdb66fe7ab305f6417c264eb98f57933143d1c3d450f908a7dfb6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 114 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a50d6a5094953beb524e5917a0d00c2290d9f21daa921f25b3c8be500614ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 133 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-plugin-marketplace/src/scanner.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf40eac38f10ecd945989d988600b6ad34d375f108fb22b6250f25ec4df75b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 108 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/claude_settings.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24198b3caf7b3f23bc3db4130f24b6237602f9e0cb422a72d707caf9770a7dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"91850840b5fad19cb12489143278617a57d866bec90a9a71ad7ee7417bd4078d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 121 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04fbb09f155d552d616adc92cb66d851a429d1642fb914c664ca3c69058a27d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 124 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c59980da8f6ca5e4820449b24c2f70779c3e9a9852e60478383906010e89036"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 641 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"22146af899bc71b63c3a10b3d4e78816afc28ebe96dbd9d06985099b5c3e243a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 796 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/resolution.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"1617365adce0fef5f968b074bcbca6aec80f6e57bff9d2f3b72ba3902a1b9a69"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 136 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-permission-rules/src/managed_policy/url_match.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"34635afab4af636444921dce8f5e70d933c02b8bc11fc4af5612a58bcce27f07"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 185 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec4012c1537ccd4aa76c21b208ce0e8829870884ed371fdd03c8c511485289"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 192 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adff0476af59b45e0b5a85604c5856bb5853d9387553acc62446a7b2fbf80eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 303 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbca8f2dbaee7baadd7cb9f5bf1f57a580f8aba2994dc32d2c096196490f15e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 304 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a660bb72a81ddeae0ef5944414a3ad4a0996d4615019172d9088df92a4e2d1b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 480 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8ce28cfc60a5f01f9e002128e5b3a0fca9b66903c5433f38bf5f46d7930d9a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1253 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"04336e0ea7c8eccbdecf65faa9532fcb4c70edd89ede7b2571d3377471ed041e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1262 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d02e3e96e40fb2d0bf3cb7d8535ad3176e5f561d32c56da634f954dd74bb7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1267 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd006cfb5e938e7e23b3bc949edbec1074c4ab9335e1b8bffd2639a9c4ae291b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1277 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/prompt_images.rs"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f875a80e3443190e8bfb6c312ee4b0cbd5e247a80d86350553e6acecaaaa2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 179 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1eec349b1b754235c07ab00aba5f160b9a816c07898425abc074af0a5aea27d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 260 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4037af287c6a6566b6f94394e9d97de444fa768e3efca6faf26b54fffde3284"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 656 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a55e0fb7085be8cff433ae8f30fe9f2d4b46720625dd293bef45f17add4d65"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1071 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aff6428df4ae40471a29f2a0d1daf2d767ae3922a5e9452d778868997cfd71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1152 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-render/src/clipboard/mod.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e5c30fb585dc7b1afc826261c316529a32c23b18a30325b96c2bcf2434091f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1646 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e17147408afdc0b8368c13d37164f277a51fff58c7b3cc41929d8c52d047fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1650 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3b5a0eafbeba165c391f42cb942f9ff368b40657cd4288500066b0c3902a03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1662 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee85dd3db47c4985878392fb227e77e602a1a2e3acc1ae327f30651eea05aff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2677 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"526485b7e59e97a030b2fa058f1420f3c3b80be4c8f25766e82aa83ece91474b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2718 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-bin/src/main.rs"},"region":{"startLine":2718}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a7513a6b6cfa52cc3685139f337fffd862168d8944d39d969ff0fabdae1b20"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 377 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cafbade2e5b19fddb30a742ec1f35ad755b6cb7ecc5847aa4b25096eb11438b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 426 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"596e313395bd28ce411441a25436f85e09e3108515b0a3128da530fe491763f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 472 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd84a20010a8ea3a3368b1bc284a538214cda2443f0a706de3e74f82a1f6e155"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 619 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8bad56661e34865c2922aebe3ba2697fbbae0982abec913235d67400e9f24"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 636 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/plugin_cmd.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"37337b16343a13d793aa7bae161588482dc0321df03a8e9a4af1653e1ccef2dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 99 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/pty_wrap.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc16f3d0792fd8364052c96532583e4d8274b3b4a47af70c2f606f62ec9e596"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 206 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/pty_wrap.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92b6936d9b756b6e91c726544a47ca066f75be11b70540bd90af973e24e0611"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 346 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"65742f4000d1eed669e2217bd895793593dd56a00a109a61ba8437f1f00f0a8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 378 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"035dd530e380a78d830c0b544e02af3f3ba6b0b5f4e694839f4ceab6cb3c4d67"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 383 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/wrap_filter.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f018d925e990addca9d722b91b81b919a5f66741a5d0b6238fafdf041aaed9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1111 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf7b58bc264f0084f13d8d2d8f34ca8fba0bd29504be7a2595a70a246f64b4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1139 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4e810499c185b996e019f1d9b81bd8513e74d80be91a82757a9a544b0d28c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1157 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45bd53f4c63a8b3914e193334d84a3784d5f0020f2510047e035235f8e9b028"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1303 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5f3ad4e3fac3ecb647ae27894e7e56fc3da14243db76f4b3b088573935201b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1509 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d1a8b79a44b16f8b1ef354e6dbae7da9e015ee06cd808643a1f19669c58ffc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 2363 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"37db9dbf54da02bfad9aaf3aad04c63dfc76d1da1c7ff48e9d5f6db0fe003e3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 86 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/reader_thread.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"be034bccfc3ded73e8a8c51de3b6652de0a0f4c283b948029064671b4b714a9d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 92 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/reader_thread.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a099dbf77c579dc2895d4cb42397876cd0a4dd27b77ce938172e908d2f7557"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1543 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb2086e9bc2e19544c6fef2be865b279f1e5c4d513d5f1d15b9652c415880e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1551 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"487725dce845b5987a9d37552b5c256cca036c3ae0a29d828fd72cfdd8e35caf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1576 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9be206b4120ce19d8c2b3d6bc9e96ee524cb7c49ec994dbfb2763d6ad2de3c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1577 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/helpers.rs"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c27028c420f321ea7ce20850e8c3950dd24f8220d2f4d100fee7be75fb4ae3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1536 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"925c3aad439e291cf50183187c30960fb80ce764dd2a1517a44e130481c4e116"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1557 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f4a85d4895a612293eb68326cdbdaeebcd563343e0692d7db7e74ffdce759a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1577 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1e9e989c2221e3b7a4b931305c5dbb04dc3d792f275770d4abfbfb34f3e178"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1596 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12725eb2e81f0a423df5f0398cfb4f49a71f11164738a835795b0de8ceaf1cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1617 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c43caedb6562e4da1a959510f95007cf531566e25d5ea3645106c35e5190f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1637 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"c720c29ed4da7ffa248c7f80e074f5392934b8c811ec4703355f10f9bae9c5fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1657 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e4c7643dcd944fedfa03f31264ea638aaa5eb1a8ca7a4f38ef0331d314e772"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1686 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a44faaa8aa179fd8f901e039612f585c634e6a33424fc6379a379feb1127883"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1700 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"8791050791c14e4e6a07d5d50ae5ed3385d223f0d2856203c76ec0bea509cde3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1726 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"7127983f75785497de382157e3cde0bb8d757abff69a9f0d1a8144b2e9ebdab3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1811 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"af48860a0e7dc946213f4cd96d996b8141b2dd147340fc669e64dd411a92d7a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1872 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e4849fc91bdf2f95233d746c61e106c060e15b7213c7d3ecfeaab7e0c381d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1899 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77f4e2a27e34e59740d54c80de21adff0e7e2750629c91669c4215739eacb97"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1919 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f01dbb49b891d9c69d8f7b8d4960041a722000f8a8bded620a134a83cb36070"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2256 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a3f268fab82ad7a10318255820d42704288f2a66dac233cb0935be1edff40c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 3228 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14c917d1dd7563355260278241e8d8caaaae173d7147cbf3ad04736bdec761d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 3287 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"16abd4c01ca73eced35340562e514a89754d2cebaabb65a085025f4673d967d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 3579 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":3579}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd063e187dbf209a53a6b8ca856f388b2e1631e2ac72646bc5580fae7ed343"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4453 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4453}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0263b00144a7958dc333ccfbb3907ffcb5ec8087f916aea24bdc6638c198158"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4637 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a52b31d714f281bbfa7daa961364b90e38c5d4bc7c979f9a25c7ec3c3b9870f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4767 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":4767}}}],"partialFingerprints":{"codehealthFindingId/v1":"72515511ebfb4cef7d0c7b2e7936e9d13a78e8e2d70b77f70914377e0cb3e6c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 5181 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":5181}}}],"partialFingerprints":{"codehealthFindingId/v1":"936bcc666d03b30e48cdd3c1b6324b04934913d4fc83b1fb945fb5a8670ce9e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 5210 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":5210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc69c9a91cddd59e4a28e87aca188e2e074eb8a3cf8ca4444b8835189d91324"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 5514 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/effects/mod.rs"},"region":{"startLine":5514}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e6cae1bf0bf5ab106e86d14ad46ed73f6036ff32544e0a1cc4fb0f79065fd2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 260 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/router.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79e2ae5165c9b545014287f9b3ce860504d5a5018256cdc1cec06375a371a15"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1116 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/task_result.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d5457d0b0386fca24a2f9c0ceeafe707ddaa88d31a66b411944bd3ed2be50e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 125 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3adfbd687184fa1a50841274f6733d6b02d3f7a9c92774f40976ed2adb1bcce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 313 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3d283af096fd02eba6e0b1b2fe016935bd9191977bd904218833851777a1c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 329 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/lifecycle.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"469c21c434626918a1f8abe936e220815cf48bdc68b5333ec73e996ddb1c81fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1226 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/dispatch/session/load.rs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbb157c47cacfa2edf6a23df7e8ddc9c4d763fc942a6d1a7c57bd93b48d4f7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 522 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/media.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"17743022daa2e97ac408281fa3342fd0db9696f3ef0ea831075f688f2f1b0b22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 511 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/agent_view/paste.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7de0757abee17b8e1e2f73b9ab8b09a9be8d65484397a723ccc587df80d38b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 129 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a93427e28ee0ba2a7a4f229c128d4002b24e5de35081b73274915c720d0f8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 231 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeb8daf4443d89d88081241839e0bdf2563ff6b51a034cc31c58e420c80cf3a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 257 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/interactions.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"1def1b40e2f7a54a78c0d8e6ff01363a28f4d9fe2bed39711c4ab4f33aba4e0f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 131 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/mcp.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb51441e7d6c88add117eb6857dad855100b7afa17e68b58bdb42543cdfb376"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 758 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/mod.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c61570846b48221fdf44250d88d90beff7027cc6c107a29e7fe00483bde7e4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 190 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c07be38258d728c6d0ae83f9b6f77515054d84cc71ae83b0998ceb983cc8478"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 899 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff363dbab0fb1e3da59eb65d8819cd5c506b65e2dad51a73693477f4b1e38640"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 1351 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0732ce991c242c678f8c60e249ff25771c751402fd3370834f5b466f189922"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1710 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60bf1c7424e038a716cbe6f6665180622339b96bc451129954a1075fa28b830"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1730 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1730}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd7c65e3cf9cc6e4f4ab1f9506baccfdf469644a4f0be9bcdf36c3fa424f8ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1768 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64216eded10016ea13e0914141dd92d694c1fcc15fa0d927c5872850d28928f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1774 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdad6db07ea5a37cfb20e87f7df95e8323430a4c4d92161dfef33e0ce4be820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1833 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcdb86d0bb45d88f806baa55f2a46a4123b8c6a2f44d31db8b8f982f12e8296"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1839 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/session_notification.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b666709d50275019bce962d7336628c2cb6ad7a5ba07c5953338fa81f39bbe4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 948 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9f2293d31d142208e88dc928b19ac1a60d14b9bddbe87509ea73c456ade6e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 268 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/provider.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8fa31d7681d96dde22a680bb001252cc571c57efd3700ca081c544402ce8e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 362 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/provider.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a97bb92d02537e83944ac7fe098136cc00a0a3a7f4fd60c16502834e52748bc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 365 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/provider.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9a701095f20b66f0d1ce212e31395425980882ae84892a2cf790d5cc1041af"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 369 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/provider.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af62202eb639d34505b5cc6875effb4912f4795dbfbbf3c93fbefa2336325ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 12 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/timeout.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be6d0f98488379a13d7f9e419433219356530fa48a3be52026a3a0120e4a0b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 78 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/trace_context.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fd17b0230d2b9f147a382975611d5a823badfd2d6b36a46c55a07c19fb0180"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-otel/src/trace_context.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41d18c0b982938018b0a1c3b9742d50662a212fab3db76c07831fabeac7648a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 28 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8de8e0558da2c9b70632a8f3f704f5c44da32ae8c7a761dd91dbf47c8d6148"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 43 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4877030dacc344a9fe114963b3bef9eabc065f9438d2de124d61c467b4bb8a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 133 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9a32c4d747926e351c52804b38da6e6a97ece9306b0e473e59777140b98eba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 150 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd1f805c8d4e9762eddb9991b04517b6d05f7142232aff976c5d1796c2c09c8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 169 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c266916fc8f0402287fea1e0040c39535bdcad999625be7d844dba3f3630eb22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 219 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c44491711d97a47cc550cbb587742c04cf08dab1982528e4ccd19dde5ec6a0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 229 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c3e80466be382a194dd4d45811caa9de54d8e1c08966db7ac2a4b26fb05a9c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e68ac133224af574ed6ac14492a006a44b21af1d11920d7b3eca6f30295c63d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 248 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/flush.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57f25b2151fb679fed70daffc391d2a3c3b424d4c0fb89784106b10765cb8be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2715 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2715}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1734da512c8ec6e563b5a745dc350f6decd76c7c3cc5db915c581e4750817b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2745 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bbefa83f73b5dcbd4975933f49b13debd0b3cff48c687405c7b4151440a34d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2750 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2750}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34c62f2dd1273b158a934e4d303051ecdf55fd534c6b41b0f7009c73d455045"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2805 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1327a4922e5a0fdab9ed0512b0308c6b03e7e21ca064c4c073542b9a508e63e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2821 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e79ae914ee6cc5eea9781191a598763b98b598d150f1c858308ae68f5f2ae0b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2831 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2831}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e30a52fbe06ce359a0201cd83b41583ecdcebbb2b0509d12ebb1b0048b8c1ee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2835 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2835}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcff2b8c6a4d83dfaf99257464547bebadcfc243306d05fc573afdf058a4eae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2860 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2860}}}],"partialFingerprints":{"codehealthFindingId/v1":"5842ba75fabe0e903c834867778d155b1dc30be371caad32872040e7d4e2bca9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2872 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"08325d64164287bfeeaf9eb03355725d1e96ac9c751c61471f09b9207f9a8b26"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2874 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2874}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e90e7f6ac6bc47477e1e27405288ddb7f4de116e889c93cd4b4394ef18557bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2882 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c39979ba4d9199f8d4b90e31aa7e415c538a895f34b238eb4579b63c6483dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2887 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":2887}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bedfa062e6c71c6cee4c7086dee70023ca162d654310e5370225b90836e7252"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 4549 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4549}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3241ffc6998d392396423f0f3b37aa6f48ad2da0629fd88c60277649a00f14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4611 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4611}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d56d3f215d967750b1421ba49db93c6d15db532a45bcb4b09d0a64c45adfb73"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4627 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4627}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdf7b2b38e9a99ba9e728b2e2838b53184e620deb91987807c3689e408086db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4638 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4638}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d16b9187cb8c6325968039be7e997325d3a3ded377b879104ead02c5b53d5f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4754 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4754}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f071f87a06cb0a91dcd3c58df11879c820c000f0a692462e33b8d11ae5c598"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 4897 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4897}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca4a76f422951f7191cedb99fef072ec02b531c76eca7500918c104ea46a24e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 4913 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-mcp/src/servers.rs"},"region":{"startLine":4913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6963cfd0002bf0a5ab31d0c9663d227df9ada375e994cb8f2a0641d830ea689"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1005 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e332fee08f966e7ffbc8958a9623c050a72f9b2687e325a5a423bd59d6a29f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1015 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-login/src/flow.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fee01e72f2b0c88912d8b3970a5d0af4533e04fa189f529d964868fe3f7b39"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 577 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/config.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb157f1ee93f5913d4a9bea64dcb29ab79e18d4fcf4ae07cc5e69154ba4fa7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 449 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/discovery.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a753364d3051b09f24106522a273d0844bec6f9bf4325e57b2d8f06ee8965dad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 511 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-hooks/src/discovery.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d41c7797c2a6eb57778bfcd6bb2c1b00ea17b9cd6a25f0f64105c79742f3e6d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 30 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/cache_file.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff95062c9a01b36f888e2893100174c2c983bc7beb02cd626c8874a7eb61ab3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 34 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/cache_file.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ca18434926bd89f0937fb16e2aac997d75126d557039a844fbce700a5d88f0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 20 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/loader.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75c0be9076fe5d7289fb31f8456264e97386558abbfe31cf51667ef620ce418"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 33 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/loader.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"110a4e89825f61b1ee515d533f09c67744e66d768011c13a769b344820c647ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 46 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/macos_managed.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36a82f236c16c749838d88a13aff20a07c968775c21eb2b0ec70fc1b161850c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 49 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/macos_managed.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"214dff471d4c620ac37e59411495fd1c48544c1f92a36943bd66b8ae1ab27e25"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 54 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/macos_managed.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"485ef7324e3b04de2ce2b15162e019c9b9ed543a00093cce208a1a8379c76c64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 125 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3944d3c5fecc6fe3f4a450e43d679784cb4eed4a366d2170b46093a464eca1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 156 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be667a23fb38c3bafff2ba634cf95a00be9542bd314a2412e836760ea8ac303"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 170 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2634cdada69e2ab73596445b0deacdcd35130c4841029a5887c58aa1f8e5acc0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 187 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"47810d2a67fd02dd8ce0481c9f6b3c05832eac255e5c8a001802f3f4ebb0c2ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 201 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a710e604dbf1dfbb82a4e77d7cc0ca03d0bad6e7a1bdd88cfe6f6e345e0739d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 208 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/managed_cache.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f688279872f3682bb6e4766c4c2ea887ab6a4b50ca23e0d2834e1a16871938"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 489 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_server_config.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"284c201a9c1c6eafd0f02da40bdd9d75b934d314bbf4eaa48044dec4e6dc9d69"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 49 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/shell.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea132794460c8556c3dbb913bd5a2aca59fcbc789eb75a7ef8be38a76960555"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 58 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/shell.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"62599de7c7d50ea7179d9be153a364dacf9aad7173415ed40136049503756713"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 204 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-config/src/mcp_servers/config_toml.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"002242ffd3ef26cb591edea44bbd0b8db0e710a8ee14cfac9d1aa8139afc4174"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 100 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/settings_fetch.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9e4257e4ac9ae7274e0e64ea34fec1287667a7e6468ac5d60864c75bc5da33"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 127 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/settings_fetch.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"61285b0821b5ccfe0ed2803babb83226bea1580c3f05ced8219fa6f30aa146b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 68 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f27bf6252ee1935c8f401c4c454ac88beb564b1ca85bd23a37e1de4142eb9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 339 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c17c3c638268da0c8caecb0c06a2fec2e602087d72763c708e15242fc51727"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 516 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1afcc99b38676dc92389210afbbc3b023ef9fab0ec67c7fa13a01d0ab253a14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 533 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9cf792919393e45c6528e6336a092dc9781bc5213388ad26add8e967283f10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 573 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/store.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42913ea6b84802f4e9fa21ec888ced1ca996c38ddb18f7c9a8faff95a16442c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 260 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"284a3b6b8287609e37852986f5700b626068ef88a7827e07fd9fdb58ba911be3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 282 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92cf2d6646d7f8ec163ccbe6ebfb482d36ab3bcf5929f6fa08b9e1534517849"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 475 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"07116271984193087546724ca4aab7c4a37927863b8118215f1c7932dddb4dbc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 548 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c469be1a2d03f59a9a21d02ca2cd86a71ed7d602c92247801648c4527f30f61"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 609 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-cloud-config/src/managed_config/supervisor.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22976480cb6fcee2f13d119e7af577abca3324cb8d54278bceba8b9660a2e92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 88 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/hooks_adapter.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"566915d33f04a752f150bdbb44bf2d74399988a72403671fc5d0730e6b977bd3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 93 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-agent/src/plugins/manifest.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4d5c8125be3b7d77b8e90fea0c79e645c629c5ae59937f544117e5ec9c5f75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 181 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/handle.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51c6c88321397689c91b91d8d1d6d864ac262e8c232e14db79697e4d4534821"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 249 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/handle.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a115014feaa7a8a56fd25ccf77b25a1e2a12ad0bbe24c5754c9169320fbec4d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 39 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ed3cef7eb29428c296d3b5982eb51f5e4671c4a489fa2560e3dde85cfe19da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 79 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc8c56f9fce07b840508c1bba0e3291df271000f8a3676893fba8eb20d5a760"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 83 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d233be0ffce3092c8258adbf877fe41280c3ec72c1587432f23e4766aa431205"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 113 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae1047a2cea7ac9144d783580144894f4456b7d06f6f89de2dfbfb48a4cf96b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 133 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae144fe54ec25b603c83c9605e22cf21c611fd8fa405899f44d68c056e985b76"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 143 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/install.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3c7dd9e0a8401b4c18bfafaeae2d89b2a0739b51616bf4d069ea6cb41041ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 36 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/selection.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"115b78eb02dd08f74d8e513abd9d8213e80f45e104e2f17628bed01bd3c19262"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 268 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/source.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"667806d4ad1bfb267e2b9e47fd3fe6b498112d48c98e84adac6cd07949c87754"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 88 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c3f0a9b1d0acd87060789f7ab17a0a8af7a7c465d85e1aeba4ac4e32b245e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 98 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0066ce07b7ff054acd639c776e9a903e4820daf6d3359eaa859416723c209f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 105 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec2b1643c43ca71cba4c0fb567f51682ed6c67bfa25f84b3db267c96372309a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 142 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6029ebaf8a027ed99bba3dd0e96be29625c3bc5a15e33047475394d36ef1c494"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 201 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"277a9bb884c892c8efa58f2a7d109eb643d73d4b93a41d5837923285a1a335ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 252 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"55809fc6403ebeda02a50d77ff518c2b1dd53a85f019aeed641617749bc03786"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 298 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ec51d8e5ec9c3947e7afb6af7f3899ae39cea4086bc14255743c6ac5792457"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 301 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"79020f4f1d13379d27b7a6c5314d744e9b42f32c6213eccb1d05f5b6f5a82ebd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 308 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f5a300b05149c38e815e4c882a817893f68f892b2bcc4197d69759ad9c1c1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 310 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-fsnotify/src/watcher.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdf66912a847e181ab56ed168c17a2221afec3c4c6267915502b71cad5d1c07"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 541 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/queue.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7ad0b2b52cdf8c7e2e5339d2a1b42b5084eae7bbba2821670a881e1d620652"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 218 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"099674bf09e23bb8d2955e5dce5ddf1da02c35a07c2f0275c22527ac5b2ad95d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e783e7efb47f0902254bfdba1a18686b86330b1fde0b0bae3d075cd421842f85"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 601 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc681189cae76f458be0f5e2467d7ff01bd975cfd61deadfb55e4548aa9edea6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 619 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e09c3a20415735f79d045076a55fbe7127da4adc693337e71fa02471befb810"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 623 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e18365984c108bdbe5a658a396c60c2d6f92f016a7027f47820dffdf3c6675"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 677 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"742010c0743349e39a2241f3d2dd406e2b0716bcbef747311c5256437201d431"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 683 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a2869ddd1132d5855698064ddbf14e02bdc77f54d9733fd1f6f366b3357321"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 687 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff9d844110e654145e048bfe5281738677253ea52f3ae1bfd2830741b79c765"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 720 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"e152b91f49d84ffc8a065cdc673d37a8b0ce8c7c89655a76ffc3ca375df44957"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 769 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"361616e83de9b83f9fe5dc3f5e7c8003c492c8d73742187a7f847c4cdfab19c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 781 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcabcb1af90de61127c4678b97ea9618f2e51ee814cb7ff702e3b0f65ffd274f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 790 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"841c8b855e21f4be4a96934acb2691616ca098c344b0422da64ed44c23b0e110"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 835 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"2619b34a63b13f4ec2ca8ff8358425178b1d6fb9f553dfd3796dffe1343a883a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 843 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc59feaed44580e817952b5a27f93277992d162be6e1cb069ba6180ae9310bc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 886 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a246fe6011209f64f69a04de1b985712a592a3f7fd6604a83cb03ac08156c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 898 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ea837849b1e38f06fd3d6e6821aee79e1e3c8f544f28d21b5e13ca67da8a6c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 907 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec82c1fe0b089df4d3232e9cdf4caefa3ec171d020c04ec7565d6b85efe61dde"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1094 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c8572922772bd8b502339c1c4235becd69bf81c38a209212fb791a96f90965"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1205 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"438abfe825228480f490616ddb8ba3f8f5d2626ab0df645eebe009c599563887"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1283 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"be023186eefb8ac1ddaa07f4769f19fe9227d989814797798026acf70729aa10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1347 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2cb4079e216c4cef961a3f6295f1a725013d16d9fd9827e0eed6e79bf00032"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1367 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"415fe03b74b5eaf07b6fa4f5375ece7b3a1b2f2837b6176e896d42838b34b22e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1393 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae036404f4398269d92092fd03e308f7ddeb35760f9fee73ac039859e9a82173"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1401 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"64facd50c22af71c78aaab4fb3a682e2b8a53368b7328fd00071f78208d91557"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1434 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e194054129933d93a8d10504d334c57173163088e3c2ec8d667e031c6c6548b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1451 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6250b8edbd77fb06ae32acec9e1b83e6f11e78b2f9960eb06a494826b18ac1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1478 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd586797c3b22dab0a582796a909170bb56cf64bd617cfc85ca7686627d4d60f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1501 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8dea65aa1405e088d87f189ba5d7d974ec9569ec9b6decb0b152d9a3711c3d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1519 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2c76471e5b3de555609f8cbd7ca8dd3d950b780bc49ee8f376bde1231a0706"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1547 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9732245588faf2f47d31a3af08dbb66f44782aa4ad6b223deea59f3bafccf39"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1551 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7078339551a7d0a1537144d5bd6af3abe484143a25768cd413eb34d0c22ee5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1555 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b1032b92785cdef77daf143c5310da16d7425bd7bbe3c6dd1262caa2315265"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1803 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"97668c27995c6670e5ab669ce5dc16ee4132485befda3d2af6495999aa45d210"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1810 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92a030f7f47a82da419bed55bfa7da67bbe7a38aa0177fc442019d08cfbf9fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1823 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4aec110d0044df114a8a67aacc8808fca7b1ab15dfc75ae74108333e592395"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1836 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bd70acb9519cf62f0dc05d4d740588ce3588eda8b01749129a873c3c937c0f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1886 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bde0a136c7b0180e845ad3dd9b7424749fa042a46caded4e92e21671fef0b5b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1909 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff0d63216b13889295f41e7f1dfb553b2677352dbcc7c01f6f1e13129f1db57"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2002 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"638951d01e99b35004066256ee579a28db3c238a396c4ca7e6792dbc3e45aeb0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2030 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-file-utils/src/storage_client.rs"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15d8f1f5f842d538a7bd68dc89cc5ab84668d7470cf9d04f3b6dba50ba125c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 88 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/manager/cache.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcbb6d799687b935905b51724fbbe3348fdcc6da69046cab65e3b023c516c0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 112 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5a35fc0076ae6deadbba20411118c487d356a2ad1c094e5d04229a8250763b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 128 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0e22d85e876c68c959c8c69b61b67640ee2a8d6bad75d08012c2554d70567"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 135 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"91278729dc6368b41ebf8df94b75ed89c8ff197945fa799c69ce51a469d5a399"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 330 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce2c2d3b4b0782edc1448d5efe6d6e01a1f8ca6ed56f6d4a483818f2a6d9e42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 376 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-acp-lib/src/gateway.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb465ce54970970d4dab64a674c14b419dfef02c09000076210ed75e8bdd11be"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060collect_files_git2\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef443be2bdfa6d2375859d7feccd27bf03c11999fca754315fceda5f693fa041"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060collect_files_git2_index_only\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-codebase-graph/src/bin/bench_file_listing.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d710b9fca40cb13c113bb289e6e56800f294a38e6985dcc84f41244d289c575e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060cleanup_orphaned_btrfs_snapshots\u0060 turns every \u0060Err\u0060 into \u0060CleanupReport::default()\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/codegen/xai-fast-worktree/src/api.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b272dab7925ebe83c0351a566101ea020ee86547e418f20bfec446fc42b5c35"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_hidden_announcement_ids\u0060 turns every \u0060Err\u0060 into \u0060BTreeSet::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/codegen/xai-grok-announcements/src/lib.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f27a9d22510c5939b829d04ca512cef75f646590b2a9a68fb9ca84cfc5f132"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060from_effective_config\u0060 turns every \u0060Err\u0060 into \u0060Self::default()\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/codegen/xai-grok-config/src/endpoints.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e202fffe2d64fd85d6d161a43fc1c2d8f3530bb4803e70a0798c2f97d3ac9ae7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060from_config_value\u0060 turns every \u0060Err\u0060 into \u0060Self::default()\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/codegen/xai-grok-config/src/endpoints.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7997e1a013fe3fb2b67c628c6ca1ae62b61525edd18aa573926341fb3df56cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_dismissed_ids\u0060 turns every \u0060Err\u0060 into \u0060std::collections::HashSet::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/codegen/xai-grok-config/src/config_layers.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab33b60ca00bfc80ea628048b061db98930af6e5d878c4d28ca1afccd8bd3170"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_all_mcp_disabled_tools\u0060 turns every \u0060Err\u0060 into \u0060HashMap::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/codegen/xai-grok-config/src/mcp_servers/config_toml.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"562029d1d5e8be4b31067ad9da7221beed874eb48c537697e94952480655f31e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060process_client_identifier\u0060 turns every \u0060Err\u0060 into \u0060\u0022grok-shell\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-http/src/lib.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"589a95965a0f5243718e9edde074c54a53c52a0b054f60a62c44993ac24dd752"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_search_tool_results\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/codegen/xai-grok-pager/src/acp/tracker.rs"},"region":{"startLine":2900}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3549b13dd1be9d4f37209db96211d5a2226b13cf1a3a932bb2a1208f7f8ebc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060mcp_args_lines\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/app/acp_handler/permissions.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"584a5a92d5669923b902e45ee7ec61677fbddd98a2ba4e6b6a9558e5cec0dcba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_initial_ui_config\u0060 turns every \u0060Err\u0060 into \u0060UiConfig::default()\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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6866c044efa347047886cf9a3a13d278cb31bfb673ec742ca30e6d3823bf33f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_initial_config_session_bools\u0060 turns every \u0060Err\u0060 into \u0060InitialConfigSessionBools::default()\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/codegen/xai-grok-pager/src/app/event_loop.rs"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51b1f0f0330aec429b7c764b86485e79d21f02c686c00fe789e0cd9b68f7691"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060collect_for_export\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/codegen/xai-grok-pager/src/memory_trace.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ed37a7bc85b05b019e5d9d7c9ee7beadc4741ea9e003ce5945d6629ff4f03a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_path_completions\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/codegen/xai-grok-pager/src/slash/commands/export.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0ebb0dccf65874e9ddef73404a9061c0e4cbf03b3c9015711eae89787b508e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_agent_toggle\u0060 turns every \u0060Err\u0060 into \u0060HashMap::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/codegen/xai-grok-pager/src/views/agents_modal.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca737f565f739a0619346a950660ad860606d5f97b3fcddab0d5289949b45515"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_subdirs\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/codegen/xai-grok-pager/src/views/dashboard/state.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d8c9a39ead22cc30958a912cdc8a6bab5109f8e191c9f14613dd935d08d8b0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060style_at\u0060 turns every \u0060Err\u0060 into \u0060Style::default()\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/codegen/xai-grok-pager-render/src/render/bidi.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b453082ba0db17f8bad9a453ace88634a117f553e0e7e40f059bb094217f7c61"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_auto_theme_config\u0060 turns every \u0060Err\u0060 into \u0060AutoThemeConfig::default()\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/codegen/xai-grok-pager-render/src/theme/cache.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a8e7ea22b2900f2a39096e3e5846629f6891ba7045cfe427d44e4fbd51933"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060take\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/codegen/xai-grok-sampler/src/doom_loop.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9827a7eaef8cb5a5292df198b1e0e9f4fa8414e0b9ecb41d253f7d2913f215b0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060find_orphaned_background_tasks\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/codegen/xai-grok-shell/src/agent/mvp_agent/mod.rs"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"123446456caca9f0b7fc67693684e7123e39c081988ba8b6719acbbfb3444d5f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load\u0060 turns every \u0060Err\u0060 into \u0060Self::default()\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/codegen/xai-grok-shell/src/relay/sync.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4db3973cf6299587c7a234ef7947981ec45929dd38cd429e9649ba4e1729529"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060repo_state\u0060 turns every \u0060Err\u0060 into \u0060RepoState::default()\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/codegen/xai-grok-shell/src/session/acp_session_impl/status_line.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b9f51582a7dc96d095cf5bb008c00bb25c15ddd0a963fe7eb46d24a09b07c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060dismissed_plugin_ctas_in_file\u0060 turns every \u0060Err\u0060 into \u0060std::collections::HashSet::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/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a223c7cfb97e19a801ed8f0b0cbc78eff78ad349bb9aed48fec60daa8d8796c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060registered_hook_paths\u0060 turns every \u0060Err\u0060 into \u0060std::collections::HashSet::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/codegen/xai-grok-shell/src/config/mod.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f92308191da5430524a25b9ca6d9350e5e68027975599d961ea0a63eb8f0e86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_cached_entries\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/codegen/xai-grok-shell/src/extensions/bundle.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"053884d2386b640447a11a05f703eb0010d2eb7caa43c569233efaeb1a2c6305"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060scan_cross_cwd_prompts\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/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"138b779250fbf8a931c0e19f731cdd13747384c1cf58ce5157fec70ec1ac16f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_bash_history\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/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b989e6dac9ac10ca3c96cc02322754abf2b399458637f9f637aaea436078160b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_zsh_history\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/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e610e30b625a441eeb411fac292d679804dbd6d426205ad51c126c0addc3cca5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_fish_history\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/codegen/xai-grok-shell/src/extensions/suggest/history_provider.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b713f4999edcb4ded27feed10e0a4d44420277146de329f3a3bf5ea0c0b3aba2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_leaders_in\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/codegen/xai-grok-shell/src/leader/mod.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0c28857b1ddf33b104c783c9260c32cc73853c66d93091bd0147bc536dd2a2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060persisted_image_reject_reason\u0060 turns every \u0060Err\u0060 into \u0060Some(\u0022unreadable Ico header\u0022.to_owned())\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/codegen/xai-grok-shell/src/session/image_normalize.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d04706ee5fe46721280f0abe3f5e06240fd78aa477adb9ef0e44681cc919168"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060loops_from_resources_state\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/codegen/xai-grok-shell/src/session/resume_status.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5809e777183eb11367d369b57cc35397ec60945f9b9a6a3f523da94d32a18eea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060running_subagent_metas\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/codegen/xai-grok-shell/src/session/resume_status.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd19111e17fb3e3ed1d5d3d6df6955c56717f6a6d4fb193d9891ef799bdb379"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060next_compaction_segment_index\u0060 turns every \u0060Err\u0060 into \u00600\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/codegen/xai-grok-shell/src/session/storage/jsonl/mod.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4818b60dbf378ef01b63a96b96191daf4fae7d234163ad98fe0bce3ecb2f5860"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060scan_directory\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/codegen/xai-grok-shell/src/session/workflow/registry.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3392a2784cd7302c933cfd7216699939326ca3d5149fbe1439cb157fa27630fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060load_config\u0060 turns every \u0060Err\u0060 into \u0060Config::default()\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/codegen/xai-grok-shell/src/util/config/load.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0b504137bb422173cc468480f9801dabb7c3b3d11ba1e830da821e3b95598d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060snapshot_exports\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/codegen/xai-grok-tools/src/computer/local/shell_state.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"370641690c89619b6c0c833e823ee9473e98f9926548217781c5a41cbefb3dd3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060scan_scope_dir\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/codegen/xai-grok-tools/src/implementations/cursor_rules_on_read.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"09671f8ecf5ddb0ee19e009cb19ec6cd04adcecdcea766bfd456c86fd9cbee64"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_new_bytes\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/codegen/xai-grok-tools/src/implementations/grok_build/monitor/tool.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"486636313bfe72dc0f4d2244130d97f94936bf916bbea48b20a3b78dc2cc7f5a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060recent_user_asks\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/codegen/xai-grok-tools/src/implementations/grok_build/task/mod.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9124eb89871490becd2fec43e78f8ff35d565ed89c88468f5d3987df19b65171"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_skill_files\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-tools/src/implementations/opencode/skill/mod.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"16761dc9efd65488dc38e110755691190dfdbc321e697b30dae35417ea4581c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060find_similar_entries\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/codegen/xai-grok-tools/src/util/path_suggestions.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f8611c78cb821cf1ca4046b959b471d6949a33f79e62bc9466ceef512497a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060written_paths\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/permission/sandbox_gate.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd75e56606c7ed0bf2617dd7263fc1ea721f0dcafd0101e8cac596ae8f1374aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060resolve_normalized_remote_urls\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/codegen/xai-grok-workspace/src/session/git.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"414bb464e2101428341a1a077bff9fb4c30ffa83395cf3587c47ad49f4529603"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060default_web_search_model\u0060 turns every \u0060Err\u0060 into \u0060\u0022grok-4.5\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/tool_config.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"98064d5ba941b319f47f064542084b7ba0a2f585a69d217592214d23b0109142"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060scan_worktree_dirs_on_disk\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/codegen/xai-grok-workspace/src/worktree/mod.rs"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c81a6ef7833af19b94c0fc4b809a09382d09a5804c5e96660e32f2247207da9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_baselines_batch\u0060 turns every \u0060Err\u0060 into \u0060HashMap::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/codegen/xai-hunk-tracker/src/actor/git.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e57e44a6e693cb99f8b970f6733d0bff347e03265eb6a08cd56a9473fb42b7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060file_action\u0060 turns every \u0060Err\u0060 into \u0060Ok(vec![])\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/codegen/xai-hunk-tracker/src/handle.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d44bdbca05d2d5076f489faacc704a9f1cdb12ad4a8b4beb4be3cb836d4b0d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060all_action\u0060 turns every \u0060Err\u0060 into \u0060Ok(vec![])\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/codegen/xai-hunk-tracker/src/handle.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5ac62e48c6d33e4517b55b601904b087844c0be8a8dbf91ab4caaf15720049"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060turn_action\u0060 turns every \u0060Err\u0060 into \u0060Ok(vec![])\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/codegen/xai-hunk-tracker/src/handle.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09105b3295811faa6563cbf96b674b788b3c183a3db393c26db3f3d5a493bff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060convert_text_exposition\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/common/xai-computer-hub-sdk/src/metric_donate.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c996edb025977ad18cbb276ae4ad1ab5c358af13686022ba6243b3ef1978f7bd"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060base_url.contains(\u0022cli-chat-proxy\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060base_url.contains(\u0022cli-chat-proxy\u0022)\u0060 also satisfies \u0060base_url.contains(\u0022chat-proxy\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-workspace/src/session/tool_config.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"8007a7ca6f0e6bce0250e426447b8c43e4d94d829871b5d0c52f2eaee8f178d3"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060err.contains(\u0022E403\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060err.contains(\u0022E403\u0022)\u0060 also satisfies \u0060err.contains(\u0022403\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/tests/test_check_status_regression.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0cb2936d54ad8895ca0d430f762b4d5f0e3794cb1f42e3cb88dd8d98c56aca"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060err.contains(\u0022E403\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060err.contains(\u0022E403\u0022)\u0060 also satisfies \u0060err.contains(\u0022403\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-update/tests/test_check_status_regression.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e1cdc7f8672b160d56ee4d9529569df8ab7f95834a4cd5e56929d205b82e57"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060msg.contains(\u0022Is a directory\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060msg.contains(\u0022Is a directory\u0022)\u0060 also satisfies \u0060msg.contains(\u0022directory\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/tests/test_config_update_isolation.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"685f9da99e5deaea8885f90c384345a33ba42774060f1b473dc7f99a0095cb32"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060message.contains(\u0022Unauthorized (401)\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060message.contains(\u0022Unauthorized (401)\u0022)\u0060 also satisfies \u0060message.contains(\u0022401\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-shell/src/session/compaction_inline_auto_compact_flow_tests.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4fbc5878a9795978af7899867a96822a19366f83c149849559c28d5adc0481"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060screen.contains(\u0022Switched to mode: Auto\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060screen.contains(\u0022Switched to mode: Auto\u0022)\u0060 also satisfies \u0060screen.contains(\u0022Auto\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager-pty-harness/tests/pty_auto_mode.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"01727270b9c3feb27fffacfa7b6dfec0d8561ef9fec9d77c8336c7784666408d"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060content.contains(\u0022:send\u0022)\u0060 can never decide this \u0060\u0026\u0026\u0060 \u2014 every value satisfying \u0060content.contains(\u0022:send\u002Bopen\u0022)\u0060 also satisfies \u0060content.contains(\u0022:send\u0022)\u0060, so the \u0060\u0026\u0026\u0060 chain is already decided by the former. The expression is equivalent to the chain without it, which means it is narrower than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/render_tests.rs"},"region":{"startLine":4378}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c89421213eb9bd14a67237c957756b29998ae7bb3b6019b9e372b3fd452b315"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060text.contains(\u00221 bg\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060text.contains(\u00221 bg\u0022)\u0060 also satisfies \u0060text.contains(\u0022bg\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/views/dashboard/row_title_tests.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"3726fbeca5feef6c0847882238fa8e9bad2271db87bd5ade9bb3cf5b433dba46"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060line2.contains(\u0022 fmt\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060line2.contains(\u0022 fmt\u0022)\u0060 also satisfies \u0060line2.contains(\u0022fmt\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-pager/src/scrollback/blocks/tool/edit.rs"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dba981c8db93f16290ec27852d2e07b138beb1576412b189d72eebd559b188"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060text.contains(\u0022## \u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060text.contains(\u0022## \u0022)\u0060 also satisfies \u0060text.contains(\u0022# \u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codegen/xai-grok-memory/src/text_utils.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1471c2177119a75970f41f59bdb669944cfc6909c829ee71016decbe264ba3"}}],"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-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-191","guid":"31b5d115-a84b-875f-a016-48689827db3c","name":"CWE-191","shortDescription":{"text":"CWE-191"},"helpUri":"https://cwe.mitre.org/data/definitions/191.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.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-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-88","guid":"32dec161-013d-ac58-8599-1309e12e67f5","name":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/88.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]}],"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":66,"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."]}]}