{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"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":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"WasmEngine::load (cyclomatic 66): WasmEngine::load has cyclomatic complexity 66 (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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45d7ca4a54d62eb756f385fa0844d01b3295d15c484148ed6a14632c24b292d"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::input::handle_idle_input (cyclomatic 59): astrid_cli_mockup::ui::input::handle_idle_input has cyclomatic complexity 59 (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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a392ddb91df58bc2ef582ab8cc4c907dd44442a3830907cef62cebcc35a305c"}},{"ruleId":"D1","level":"warning","message":{"text":"musl_release_manifest.validate_manifest (cyclomatic 49): musl_release_manifest.validate_manifest has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3adae8150946cdda12020828f9b65ee6b2fc478cab62d822304e45c3843349"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::kernel_router::handle_request (cyclomatic 46): astrid_kernel::kernel_router::handle_request has cyclomatic complexity 46 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4e8292d84e54d6f291430cf1ce6b0314fc16b282ce34e8d5fe9c1c73a426a1"}},{"ruleId":"D1","level":"warning","message":{"text":"windows_release_manifest.validate_manifest (cyclomatic 46): windows_release_manifest.validate_manifest 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":"scripts/windows_release_manifest.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee2a0a1766723077bbdb4ccafc1330b04f9eddb700627a43795c8f316bfdd2b"}},{"ruleId":"D1","level":"warning","message":{"text":"release_manifest.validate_manifest (cyclomatic 45): release_manifest.validate_manifest 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":"scripts/release_manifest.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c919ece232d0ac3b4646ff4790602aaad1b191268e2f50e60eb85ca6b5fd1c74"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape (cyclomatic 41): astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape 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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a18b6c438004d853f166d7281fe0039721ad52d450f191b31d29013bea6360"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::input::handle_idle_input (cyclomatic 40): astrid::tui::input::handle_idle_input 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7db1343f25eb73eaf205132d51a55b2cdd5f6853368714f0fd21b1e41f82fa"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::commands::distro::validate::validate_manifest (cyclomatic 39): astrid::commands::distro::validate::validate_manifest 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/astrid-cli/src/commands/distro/validate.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf0d6e76cb29523c99d48e23c038ecc748f6f5a9ea59b797ed5bc8e5589a9a6"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::handle_daemon_event (cyclomatic 39): astrid::tui::handle_daemon_event 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffeec91cd43fa0970a3b44510a19636b3d5b72171fe990bea0f6da546160c68"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::render::render_input (cyclomatic 39): astrid::tui::render::render_input 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cb2d0af24c63f01293bf9e174252ec137662a1a899b0d217bbeb326293ecd7"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::nexus::render_nexus_entry (cyclomatic 39): astrid_cli_mockup::ui::views::nexus::render_nexus_entry 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/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"82301e28d979f335866fc3a53f993db2f68f73e7d6ecac3f218fcec98672f061"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_physical.validate_map (cyclomatic 36): runatal_v1_physical.validate_map 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":"scripts/runatal_v1_physical.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f581108bb5e09cfff04b1454d3d4ccc18fafd889314f701c52138311430c0e"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_reader.recover (cyclomatic 34): runatal_v1_reader.recover 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":"scripts/runatal_v1_reader.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b71ad64768cb87cefbc77fd5e4c03a5fcbe8adedb38d63fdc91a15c5149eaf5"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule_install::local::install_from_local_path_internal (cyclomatic 33): astrid_capsule_install::local::install_from_local_path_internal has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/local.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaadcf431ab0da0a6112dc3dc3efac900ceb959a3993af6314d97298e1be9e1"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_volume.recover_volume (cyclomatic 32): runatal_v1_volume.recover_volume 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":"scripts/runatal_v1_volume.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"47709e4ae52364058df719da5b4a0705bf32804e324df8cf52776ff5f46b384e"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::render::render_nexus (cyclomatic 31): astrid::tui::render::render_nexus 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d03172dcf035bf163d2af5d7bafbfe76d18d1cbdf20ea71c1067d8191e27c3b"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs (cyclomatic 30): astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs 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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"edccc87604627bef6ec140e7577afbd0662cb349be13f2da56f8538417dbe7af"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule_install::storage::verify_package_identity (cyclomatic 29): astrid_capsule_install::storage::verify_package_identity 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/astrid-capsule-install/src/storage.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da55ed1a0e4a6ffae6fc9bac425ce2619c45369627241ee581195fa0cd8526c"}},{"ruleId":"D1","level":"warning","message":{"text":"channel_metadata.validate_channel (cyclomatic 29): channel_metadata.validate_channel 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":"scripts/channel_metadata.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea2a6931688f6f0c841aba78e3885c04dad628af99777273360ba374c352ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"validate_macos_release.validate (cyclomatic 29): validate_macos_release.validate 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":"scripts/validate_macos_release.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fddf85215fd2bb57573aa24b4b9a69079d13ca6bf623e863b6bd7004999731"}},{"ruleId":"D1","level":"warning","message":{"text":"AllowancePattern::matches (cyclomatic 27): AllowancePattern::matches 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/astrid-approval/src/allowance/pattern.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d674bf79b291159ca9bbe7928f08fb6f6fab2018d194581826623ff0fad08e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_gateway::routes::audit::paginate_page (cyclomatic 25): astrid_gateway::routes::audit::paginate_page 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/astrid-gateway/src/routes/audit.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe0a8343e9df48aa955f10b67b8b6f0578ed7689be222c7c150d523df790ce8"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnershipSnapshot::validate (cyclomatic 25): OwnershipSnapshot::validate 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/astrid-storage/src/ownership.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d81a254cf996825418b2384ab8bdc8c0727a6b1310caabcf987b6334461da7"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage_provider_winfsp::win::validate_service_launch (cyclomatic 25): astrid_storage_provider_winfsp::win::validate_service_launch 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/astrid-storage-provider-winfsp/src/win.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f494c500e1a75a4535682c310acb6dbfd0d0f3f1319e6c4cd58b6dfb98a9ff7d"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_physical.decode_map_node (cyclomatic 25): runatal_v1_physical.decode_map_node 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":"scripts/runatal_v1_physical.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"634c98dc2a578bc0ba1eb78d3011d2c7ca1830a1b213d0e71f6ce553dd456bd2"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule::dispatcher::collect_matching_interceptors (cyclomatic 24): astrid_capsule::dispatcher::collect_matching_interceptors 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/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f5f610ad4573391913105665a1c898c09b16f9122f5774524c359549ba64f9"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::engine::durable::wal::replay::replay_transaction (cyclomatic 24): astrid_storage::engine::durable::wal::replay::replay_transaction 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/astrid-storage/src/engine/durable/wal/replay.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a5a216b5f00e87c2e07eb4fb9457e56f7620a6383b6be7c0fc1f53e0291f3b"}},{"ruleId":"D1","level":"warning","message":{"text":"WasmEngine::invoke_interceptor (cyclomatic 23): WasmEngine::invoke_interceptor 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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a7b2b9c25f1733bd8b8f943f227c0247eccb430b5a5ef1a89ad79f79116af1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceBranchStore::rename_batch_inner (cyclomatic 23): WorkspaceBranchStore::rename_batch_inner 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/astrid-storage/src/content/store/workspace/operations.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"905ad8bc01b06fd934ba11c6f7eb19c6f8915c8f2d0292e06a514a44e32b65c9"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::volume::hosted::recover::apply_record (cyclomatic 23): astrid_storage::volume::hosted::recover::apply_record 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/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a7a66164d28be41f6eb7d03c951960b57109a86b112debc638369ce59f7769"}},{"ruleId":"D1","level":"warning","message":{"text":"HostState::bind_tcp (cyclomatic 22): HostState::bind_tcp 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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b202d0900a11e5935bd78ded5360dbafc3e1b21b12d293dc7d199d9171af4dc"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::handle_pending_actions (cyclomatic 22): astrid::tui::handle_pending_actions 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae9ba4e724a9d39ab53bb91d567c0cfb3310ea199b44770c4fed1ad49e9c707"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::content::store::workspace::codec::decode_workspace_record (cyclomatic 22): astrid_storage::content::store::workspace::codec::decode_workspace_record 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/astrid-storage/src/content/store/workspace/codec.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26a0f43ea4d68541f36edb9d2e36a402c8bc96630299b787e498773003e2eb7"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_kv.decode_legacy_node (cyclomatic 22): runatal_v1_kv.decode_legacy_node 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":"scripts/runatal_v1_kv.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be175229e7ebae4be52194c72f06eb3b096f1fbb37dd1ac6b7b82e636b19960"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_sha384.verify_attestation (cyclomatic 22): runatal_v1_sha384.verify_attestation 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":"scripts/runatal_v1_sha384.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2669a9845b087058c9c77f722be0b8eb5d8da6aab2ba18bd183729c0fcf5eaaa"}},{"ruleId":"D1","level":"warning","message":{"text":"validate_release_archive.validate (cyclomatic 22): validate_release_archive.validate 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":"scripts/validate_release_archive.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"78af875b611298e1fa4113fbff7b2e62ef8523fe41a5334e971a3f466d43c438"}},{"ruleId":"D1","level":"warning","message":{"text":"HostState::spawn_persistent (cyclomatic 21): HostState::spawn_persistent 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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d573fcbcfa2551c6a4c006a0dd9aab6f59c8415b4828ddd7cf4ce944c8d695d"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_sources (cyclomatic 21): astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_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/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"880364261131ec6e76a250c68e7d1a73c64638da521a0c2249935ce06cce74f0"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule::engine::wasm::wasm_exports_contain (cyclomatic 20): astrid_capsule::engine::wasm::wasm_exports_contain 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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4328}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c4479d2f750a298d7bb97cfca5fcce0962fabccda2ec4ce31477f49465ab33"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::render::render_onboarding_menu (cyclomatic 20): astrid::tui::render::render_onboarding_menu 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84963ddc0d4176486b5bad76af5327029f7ea7485532dffc9cc1e6c2cf1d5ae"}},{"ruleId":"D1","level":"warning","message":{"text":"PrincipalContentStore::rename_batch_replacing (cyclomatic 20): PrincipalContentStore::rename_batch_replacing 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/astrid-storage/src/content/store.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c9c97a2e0000f5b5773b911da3c06c5df97e55bd178f060963e1ee3b14f8e"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_uplink::native::serve_connection (cyclomatic 20): astrid_uplink::native::serve_connection 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/astrid-uplink/src/native/mod.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5480cda1c2f84d968bc859d335ca7e301398cf0a24b54aa03572d05bf36011f"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule::engine::wasm::host::ipc::publish_inner (cyclomatic 19): astrid_capsule::engine::wasm::host::ipc::publish_inner 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/astrid-capsule/src/engine/wasm/host/ipc.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e56d0dd7e2355bfb829a1b2584f57e54eb30b237579c054ce8c00d81642f36"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_capsule_install::storage::migration::migrate_native_capsules_with_report (cyclomatic 19): astrid_capsule_install::storage::migration::migrate_native_capsules_with_report 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/astrid-capsule-install/src/storage/migration.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efd0a31671cb79b8de68fa4fabc570ce07fe137cc6941c266469ee3e6efb27f"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelProcessStorageMountBroker::mount (cyclomatic 19): KernelProcessStorageMountBroker::mount 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/astrid-kernel/src/storage_mount/process_broker/mod.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b075665642880f079a297636faec51682125e229678236720ecfc4b53ac21b30"}},{"ruleId":"D1","level":"warning","message":{"text":"KvHotCache::insert_bounded (cyclomatic 19): KvHotCache::insert_bounded 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/astrid-storage/src/kv/tree/hot_cache.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd42399b9f4f7aa373aa560472c0ea8afd3160a6962e19c875240d86b0f22b35"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilityStore::find_capability (cyclomatic 18): CapabilityStore::find_capability 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/astrid-capabilities/src/store.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e21e8698962980c90a6fe940991e6f0c6aadbd508fb07f7156857992b17509"}},{"ruleId":"D1","level":"warning","message":{"text":"HostState::request_approval (cyclomatic 18): HostState::request_approval 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/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"843abac834c1ac4ca2f4f98139464c80b525d4879d74c18cf77815c16518b59f"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestSecurityGate::check_fs_permission (cyclomatic 18): ManifestSecurityGate::check_fs_permission 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/astrid-capsule/src/security/manifest_gate.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3d812e296fab3768116eb36e744cad4df0571158e3dd616702e84acdfb4747"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::render::render_activity (cyclomatic 18): astrid::tui::render::render_activity 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcb92419ba0b9d25bcf171986ce2cca120b96a42a1513feca7f67490cdb9963"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::render_frame (cyclomatic 18): astrid_cli_mockup::ui::render::render_frame 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda7b15b672c8dbb66e50e26ab56f249f6df45943c9306cf1698a9b8dc525d90"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::command::render_table (cyclomatic 18): astrid_cli_mockup::ui::views::command::render_table 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/astrid-cli-mockup/src/ui/views/command.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0b3eb21fff37f21d9d5cf715bd12d04a2910a4aa643549adcc607be2317127"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::log::render_log (cyclomatic 18): astrid_cli_mockup::ui::views::log::render_log 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/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b111f25ca06197c6f56a586a611e21df8fc97fd21da39f99478b8e8355781f"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::stellar::render_stellar (cyclomatic 18): astrid_cli_mockup::ui::views::stellar::render_stellar 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/astrid-cli-mockup/src/ui/views/stellar.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9306b4cf6da920d0c97a3f81cfcb9eda55e489e4b657a5d85b8065d7dc1c34cb"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::topology::render_topology (cyclomatic 18): astrid_cli_mockup::ui::views::topology::render_topology 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/astrid-cli-mockup/src/ui/views/topology.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e7f06763455c647f8dbb6bfdf9d0eb7c41b1982d05826deaf9d7ba1cd197af"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_core::local_transport::windows::validate_pipe_security (cyclomatic 18): astrid_core::local_transport::windows::validate_pipe_security 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/astrid-core/src/local_transport/windows.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"302f8bb1f79a23bd68d7d3582d3289961d9b9d6e8ce3d6c1bf0a711391ea568a"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_gateway::routes::agent::post_prompt (cyclomatic 18): astrid_gateway::routes::agent::post_prompt 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/astrid-gateway/src/routes/agent.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dadff229fbd28674801c40a95f861db55c314cb1b0080779d35cac49f50503"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::distro_handlers::self_grant (cyclomatic 18): astrid_kernel::kernel_router::admin::distro_handlers::self_grant 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/astrid-kernel/src/kernel_router/admin/distro_handlers.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2782155340381321049f71f180d01deb230ef7c9ee16d34755785af657ef3a00"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::storage_mount::resolve_owner (cyclomatic 18): astrid_kernel::storage_mount::resolve_owner 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/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"18788ef9b19609b17315b28ecf0b7b1611008b14db7c764ef4399f9ca267036b"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::storage_mount::execute_operation (cyclomatic 18): astrid_kernel::storage_mount::execute_operation 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/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefeaa08dd467346691c1725d1dae8d0c1498add3402a1288863818414f8d4c1"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::principal_state::staging::legacy::inspect_migration_intents (cyclomatic 18): astrid_storage::principal_state::staging::legacy::inspect_migration_intents 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/astrid-storage/src/principal_state/staging/legacy.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"433bbb4bb9db34e34863af353f8682db32723298210eec51e9ffec8e5490fc9e"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_physical.decode_representation (cyclomatic 18): runatal_v1_physical.decode_representation 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":"scripts/runatal_v1_physical.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"815795ef1f6f7cacfb925f1a3ede17b65d8c2e0c17580a0e9a6d881b306c21d1"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::input::handle_onboarding_enum_input (cyclomatic 17): astrid::tui::input::handle_onboarding_enum_input 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"c342cea2c3b416dcfe98722492ec67c2043bb695f9b02e6e702ae36439b01b08"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_core::dirs::stopped_key::recognize (cyclomatic 17): astrid_core::dirs::stopped_key::recognize has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs/stopped_key.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fd01fc3d3a1e3a9a188bb9a0d23512cf23920c92147f3e5e584e14b4994c69"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_gateway::auth::verify_bearer (cyclomatic 17): astrid_gateway::auth::verify_bearer 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/astrid-gateway/src/auth.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec833a129b4ee456b0bf7401a5fa98ecf7cd751711b7d0beeb20c3ec40b528c3"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::preflight_legacy_audit_sources (cyclomatic 17): astrid_kernel::preflight_legacy_audit_sources 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/astrid-kernel/src/lib.rs"},"region":{"startLine":4090}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c060da277c9869f255926646d9d805132d2358f8c6a9540599e36fe4d75aa6"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::handlers::agent_modify_from_req (cyclomatic 17): astrid_kernel::kernel_router::admin::handlers::agent_modify_from_req 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/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5e4bf4dbd1dfa379c2e93ceaf01c59dcd64bd0df8f46f93c7a6adbe28abf6"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::host_fs::preflight_legacy_audit_sources (cyclomatic 17): astrid_kernel::legacy_migration_barrier::host_fs::preflight_legacy_audit_sources 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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dee79224caf0c8690996047c6d1c9aa856320ccda2b12f871c8f72416a08e5e"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::validate_existing_proofs (cyclomatic 17): astrid_kernel::legacy_migration_barrier::ledger::validate_existing_proofs 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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05b3e09202a3f270efe0ea046dd2f7535e57d3bc7af84873fbebc171d6bd88a"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceFilesystem::rename_inner (cyclomatic 17): WorkspaceFilesystem::rename_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/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcddbe296494978e9c069222a33a2bd52d9ca2752d979ea418f80533ec7bef9"}},{"ruleId":"D1","level":"warning","message":{"text":"CanonicalPhysicalMap::rebuild_with_entries (cyclomatic 17): CanonicalPhysicalMap::rebuild_with_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/astrid-storage/src/storage_model/physical/map.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00fdede8fd1c2a76873756a56fa6b51015bc56916fff52fd3ea174e30b7a8b3"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::storage_model::physical::representation::validate_recipe (cyclomatic 17): astrid_storage::storage_model::physical::representation::validate_recipe 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/astrid-storage/src/storage_model/physical/representation.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"92219f1f711645576048d30cb84f6a91811f2d635c44bd46f6c9fed4f7ec9522"}},{"ruleId":"D1","level":"warning","message":{"text":"Registry::install (cyclomatic 17): Registry::install 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/astrid-uplink/src/native/egress.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea5430ad8ecca0f951a930e391150a35dced2f309ebaa757929247b26d6f47a"}},{"ruleId":"D1","level":"warning","message":{"text":"changelog.roll_changelog (cyclomatic 17): changelog.roll_changelog 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":"scripts/changelog.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c664c664ab7e2f999b062dc9818f687ee44f20b1665ce96fce170284cba2ff"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_sketch.verify_sketch (cyclomatic 17): runatal_v1_sketch.verify_sketch 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":"scripts/runatal_v1_sketch.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3a7f6302a519f9170c5b7f55d5b3b265f2e6a882ea2e6a71abda6caad7bdc0"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_build::rust::getrandom_rustflags_override (cyclomatic 16): astrid_build::rust::getrandom_rustflags_override 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/astrid-build/src/rust.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa26b3fc60568dd93ab6c7d616b6e1690d323c890e3c240c721ad27a7b0e8d13"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::commands::mcp::lifecycle::wait_for_gateway (cyclomatic 16): astrid::commands::mcp::lifecycle::wait_for_gateway 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/astrid-cli/src/commands/mcp/lifecycle.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dd0969efbcde8845ba5b3fb9f9828b26726bf2f17791a975181333a51f0f94"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::commands::setup::run_report (cyclomatic 16): astrid::commands::setup::run_report 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/astrid-cli/src/commands/setup.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f34844fa8d4971cbb71cf3c37a2778b8529a4edf6b341a6659580e7c6ef408"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid::tui::input::handle_onboarding_text_input (cyclomatic 16): astrid::tui::input::handle_onboarding_text_input 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c250c456b9ae46c7e1e8796d83a82d7f33266077fa30ff3dcd0578e5d525cbd"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::shield::render_queue (cyclomatic 16): astrid_cli_mockup::ui::views::shield::render_queue 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/astrid-cli-mockup/src/ui/views/shield.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e65828430626109e5c4891eecefb668cdb1c6c3cc560d5fedd601bfd3a398f9"}},{"ruleId":"D1","level":"warning","message":{"text":"AstridHome::ensure (cyclomatic 16): AstridHome::ensure 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/astrid-core/src/dirs.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69696086f002e1766eef9c9216af32b4f949d4469289aacee58c341c17b6b3e"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_daemon::run_with_args (cyclomatic 16): astrid_daemon::run_with_args 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/astrid-daemon/src/lib.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adba61dca7699a0e54bbbc0ef71dcd940dc2929a5de4ec3ae8174a0fcfaa8ed"}},{"ruleId":"D1","level":"warning","message":{"text":"RouteEntry::drr_drain (cyclomatic 16): RouteEntry::drr_drain 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/astrid-events/src/route/entry.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3dc8e4dcd07a233c43e10545348c1eb364e1cf05fb646742b0f65957461037"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_gateway::revocations::migrate_legacy_file (cyclomatic 16): astrid_gateway::revocations::migrate_legacy_file 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/astrid-gateway/src/revocations.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc21eafe7c02deea466a2002611ca5eb5ff5587648a516813a42f81292b85f32"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::handlers::mutate_caps (cyclomatic 16): astrid_kernel::kernel_router::admin::handlers::mutate_caps 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/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"2354be3faf39a6e1b65bccb07e9b1d2473def3c7489038f70dcb4b1613049c19"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::inheritance::copy_kv_namespaces (cyclomatic 16): astrid_kernel::kernel_router::admin::inheritance::copy_kv_namespaces 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/astrid-kernel/src/kernel_router/admin/inheritance.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"607b4fe78bfae6f4477bd4f1e6208391cd72374d789e1cb6ae8ae0f809986787"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_kernel::storage_mount::filesystem::execute_blocking (cyclomatic 16): astrid_kernel::storage_mount::filesystem::execute_blocking 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/astrid-kernel/src/storage_mount/filesystem.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"4143e47c3583d4b5fa1c879a1ecbca61ced2622f8e85a92573cfee15a1344ac0"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerManager::build_sandboxed_command (cyclomatic 16): ServerManager::build_sandboxed_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/astrid-mcp/src/server.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9779ca6929b626f28183ceaa3f1f9186f0fac70645d4ca6118e8a4f78d4ddb"}},{"ruleId":"D1","level":"warning","message":{"text":"DurableEngine::prepare (cyclomatic 16): DurableEngine::prepare 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/astrid-storage/src/engine/durable/engine.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"500cb12b298737949beb68e8a6edc4650cff36cce5a62b261c745a062c149b70"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::principal_state::runtime_tree::reconcile_running_projection (cyclomatic 16): astrid_storage::principal_state::runtime_tree::reconcile_running_projection 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/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614886da4ce76d8a5b348f547652c1d86ba06c6b0048cf455f1045f369da598"}},{"ruleId":"D1","level":"warning","message":{"text":"astrid_storage::volume::hosted::recover::recover_from_headers (cyclomatic 16): astrid_storage::volume::hosted::recover::recover_from_headers 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/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8a5e5f73b93b769a6a0f3dffa34e2edde0a07815c33c72113423116e8ddcaf"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_physical.decode_fixture (cyclomatic 16): runatal_v1_physical.decode_fixture has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27f04690dbcf7ded6f928fad59cea18b694a4a207aada605449e63652ad01f7"}},{"ruleId":"D1","level":"warning","message":{"text":"runatal_v1_physical_store.replay_state_journal (cyclomatic 16): runatal_v1_physical_store.replay_state_journal has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical_store.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcd7eb4a01ef6d9eaef6277b1561e0248251c1352ffd40cda97c9f3daaeb981"}},{"ruleId":"D1","level":"warning","message":{"text":"supervised_fskit.approved_receipt (cyclomatic 16): supervised_fskit.approved_receipt has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/supervised_fskit.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d781e50365b5bf20d11256e5f9b1352526481ec909958d0af83fb4693d79aa60"}},{"ruleId":"D2","level":"warning","message":{"text":"WasmEngine::load (cognitive 122): WasmEngine::load has cognitive complexity 122 (threshold 15). Drivers by points: if/else 57 (74 pts), match/switch 9 (21 pts), loops 10 (20 pts), boolean chains 7 (nesting depth added 39). 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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"7001412b31b91e511ec2b943b0cce10f5bd374ebd6f22d9a0e4b1e8c8465494d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::render_nexus (cognitive 121): astrid::tui::render::render_nexus has cognitive complexity 121 (threshold 15). Drivers by points: if/else 20 (64 pts), loops 10 (44 pts), match/switch 3 (12 pts), boolean chains 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdbddb74ed4fb047804ad62a99bdab0f1db964452f7ba59f7b53d16c1c30215"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::render_input (cognitive 92): astrid::tui::render::render_input has cognitive complexity 92 (threshold 15). Drivers by points: if/else 39 (73 pts), boolean chains 12, match/switch 1 (4 pts), loops 1 (3 pts) (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/astrid-cli/src/tui/render.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"685f170b4c9e8503cfffa7691554a70486c6d65d8959d789feaea1423f57f5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical.validate_map (cognitive 81): runatal_v1_physical.validate_map has cognitive complexity 81 (threshold 15). Drivers by points: if/else 21 (61 pts), loops 4 (11 pts), boolean chains 9 (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":"scripts/runatal_v1_physical.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3c9052292f4be818b1ef41ffd31bbfd5eb1822cc04a96e635215cab917d0dd"}},{"ruleId":"D2","level":"warning","message":{"text":"musl_release_manifest.validate_manifest (cognitive 76): musl_release_manifest.validate_manifest has cognitive complexity 76 (threshold 15). Drivers by points: if/else 28 (54 pts), boolean chains 16, loops 4 (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":"scripts/musl_release_manifest.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90697b3dec102432050ab10cb642b69de1f31d24a2862151c9df5a36ca11f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"release_manifest.validate_manifest (cognitive 69): release_manifest.validate_manifest has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (50 pts), boolean chains 15, loops 3 (4 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release_manifest.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e152d7805430912959dca6078f9549ff482be967e3c62f22af4cfd460f65e1"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::handle_daemon_event (cognitive 68): astrid::tui::handle_daemon_event has cognitive complexity 68 (threshold 15). Drivers by points: if/else 27 (46 pts), loops 3 (9 pts), boolean chains 7, match/switch 2 (6 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6b24c8a139b9344d1a86f26bf308243c3ff78ecdc211f724ef6e687e23a521"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape (cognitive 62): astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (41 pts), boolean chains 20, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cb081d7eb7318e17aef7ef5f79eaf98b3197b877d23563efe6f0c49b527ae0"}},{"ruleId":"D2","level":"warning","message":{"text":"windows_release_manifest.validate_manifest (cognitive 60): windows_release_manifest.validate_manifest has cognitive complexity 60 (threshold 15). Drivers by points: if/else 27 (41 pts), boolean chains 15, loops 3 (4 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":"scripts/windows_release_manifest.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a7b21400d6326d03f752d39761ae1aaca3412bcaf73407e9fecb454dbaefa3"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_reader.recover (cognitive 59): runatal_v1_reader.recover has cognitive complexity 59 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 6 (9 pts), ternaries 4 (7 pts), boolean chains 6, error handling 2 (4 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":"scripts/runatal_v1_reader.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e9720c5b317b0137bcf29fd987a65842dbf7d9cd31b51089769fc5d1c9821e"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::input::handle_idle_input (cognitive 55): astrid_cli_mockup::ui::input::handle_idle_input has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 10, match/switch 4 (8 pts) (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2d9fe42881b5b3d465ba1bb1bcf8994fbdcd695dc62fc1ac6a1d1ee39b365f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::nexus::render_nexus_entry (cognitive 55): astrid_cli_mockup::ui::views::nexus::render_nexus_entry has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 8 (18 pts), loops 3 (12 pts) (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/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7391604ad4a6065ec32a933a0a4674e75d19c91f17c0818a3b4efe2851c749"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::distro::validate::validate_manifest (cognitive 53): astrid::commands::distro::validate::validate_manifest has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (35 pts), loops 6 (10 pts), boolean chains 8 (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/astrid-cli/src/commands/distro/validate.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8c6e90dc486fc987f675eadd7ddd033417da9acc072553de134d6001f76c8e"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_volume.recover_volume (cognitive 53): runatal_v1_volume.recover_volume has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (44 pts), boolean chains 8, 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":"scripts/runatal_v1_volume.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"886424e04cd95138e823852609d0dcd97f2bf538805a6beef7472d08bc2f7971"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_sources (cognitive 52): astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_sources has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 4 (6 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"818858876fa52fb554bb95ca22da0ad60466440c96a3c88aa3686881e6afe99b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::handle_request (cognitive 50): astrid_kernel::kernel_router::handle_request has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 15 (31 pts), if/else 8 (12 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 23). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own 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/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efe4e986bae589791d37586cbec740f6dfe162aae1372338a2f4d7177d76561"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs (cognitive 50): astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (41 pts), loops 4 (5 pts), boolean chains 2, match/switch 1 (2 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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8403546a4e2e6c1b3245b09d640ae27d623becc0db15c90673bfc5fdf8adea"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::input::handle_idle_input (cognitive 46): astrid::tui::input::handle_idle_input has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (43 pts), boolean chains 2, match/switch 1 (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/astrid-cli/src/tui/input.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"508125d8852311b42051196f41f902120b664e235a426f3a3ba13d52db6e05af"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule_install::local::install_from_local_path_internal (cognitive 45): astrid_capsule_install::local::install_from_local_path_internal has cognitive complexity 45 (threshold 15). Drivers by points: if/else 34 (39 pts), boolean chains 6 (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/astrid-capsule-install/src/local.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98a4fb4a78e445a34e1e1a702c69bf1d1be6f2267c22bcdad9a2c34a32d5ead"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::log::render_log (cognitive 45): astrid_cli_mockup::ui::views::log::render_log has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 4 (13 pts), match/switch 2 (7 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"562f6953a7b7d21bcb8d54a78dc8df0852a98177d687911b757f1d8da56d970a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::handle_pending_actions (cognitive 43): astrid::tui::handle_pending_actions has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (34 pts), match/switch 2 (5 pts), 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"302fb7b86fb22cd36d982f696545be75070c89f2645905175dd3de3df2ca6be7"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBranchStore::rename_batch_inner (cognitive 41): WorkspaceBranchStore::rename_batch_inner has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 5 (9 pts), match/switch 4 (7 pts), boolean chains 3 (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/astrid-storage/src/content/store/workspace/operations.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c1fbee961c20917450b65bca7a8ebc4aaccd49c7a4fa38b6807602badf1d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::render_onboarding_menu (cognitive 40): astrid::tui::render::render_onboarding_menu has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e59b49b7f44d72814df2fa637418b230a4fcfd00936c0b35acf9a1de5ac393"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::engine::wasm::wasm_exports_contain (cognitive 39): astrid_capsule::engine::wasm::wasm_exports_contain has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (7 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9248b34fd963c235f4ef42d5fd7d58d2a608b803503cc3a994dce2374b2ffc5"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_macos_release.validate (cognitive 39): validate_macos_release.validate has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 11, error handling 1 (2 pts), loops 2, ternaries 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":"scripts/validate_macos_release.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c72a66670f17f7cc9705f13f3ff4e4a531a01c0035d1f9f776e8cc25318ad56"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityStore::find_capability (cognitive 38): CapabilityStore::find_capability has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 2 (4 pts), boolean chains 3, match/switch 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/astrid-capabilities/src/store.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"967d21eab64b14bdf6faf247c5c55e8086124d2ed65b048e4fdc272cdbf0500b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule_install::storage::verify_package_identity (cognitive 38): astrid_capsule_install::storage::verify_package_identity has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 6, loops 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/astrid-capsule-install/src/storage.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"81eab8f927d853dd237f952b29ad7829d71385084a7c3e047a475d7557a63268"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::mcp::lifecycle::wait_for_gateway (cognitive 38): astrid::commands::mcp::lifecycle::wait_for_gateway has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 1 (3 pts), boolean chains 1, 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/astrid-cli/src/commands/mcp/lifecycle.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1c0e04ad48e6c7ea1a94c2717807c777089c0dec6ee13342d7e60199305a94"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::routes::audit::paginate_page (cognitive 38): astrid_gateway::routes::audit::paginate_page has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 8, 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/astrid-gateway/src/routes/audit.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc040c0b5129e0eebca407fae0f2d210abe91d3d8903d6f093e930fcefa8489d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::wal::replay::replay_transaction (cognitive 38): astrid_storage::engine::durable::wal::replay::replay_transaction has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 7 (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/astrid-storage/src/engine/durable/wal/replay.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4839f14f60a7bd65a6446034d8252f46b6ea791bf6d3a4898085e2c13bc28ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"App::collect_copy_text (cognitive 37): App::collect_copy_text has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (28 pts), match/switch 2 (8 pts), loops 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/state.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5ccb1a087a147b072c999582a0cda49188d83ad33515ec5bbd9f03e7f82b09"}},{"ruleId":"D2","level":"warning","message":{"text":"PrincipalContentStore::rename_batch_replacing (cognitive 37): PrincipalContentStore::rename_batch_replacing has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (9 pts), match/switch 4 (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/astrid-storage/src/content/store.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c41cf1892bac38d7a72308ee7600ccccf863811e137c25aa6f2f1e73d99f4c4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::dispatcher::collect_matching_interceptors (cognitive 36): astrid_capsule::dispatcher::collect_matching_interceptors has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 11, loops 3 (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/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81f70ed51d76c70c21ddd17042145b20141bc9009b067760c35d209dfb6becc"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::bind_tcp (cognitive 35): HostState::bind_tcp has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (23 pts), match/switch 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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b3a7519e712c50965bcd13006aadc8110313201eb4d3465df10924bbf644d0"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::stellar::render_stellar (cognitive 35): astrid_cli_mockup::ui::views::stellar::render_stellar has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 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/astrid-cli-mockup/src/ui/views/stellar.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d642e178972db72f93a2f41669b0e37b6881c6fe2530ff0d01cee603a0340278"}},{"ruleId":"D2","level":"warning","message":{"text":"RouteEntry::drr_drain (cognitive 35): RouteEntry::drr_drain has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 3 (6 pts), boolean chains 4 (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/astrid-events/src/route/entry.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf6bd4a773133ecfe1248c25ee1378f158dbadae9c9642b9f02a2c15e3451b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule_verb::answer_capsule_approval (cognitive 34): astrid::commands::capsule_verb::answer_capsule_approval has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 1 (3 pts), loops 1 (2 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/astrid-cli/src/commands/capsule_verb.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbee98a0bb91bce8e23fde71cc849926217f51bba72f4c7dee1c5eff206c63ff"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_uplink::native::serve_connection (cognitive 34): astrid_uplink::native::serve_connection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (26 pts), match/switch 2 (5 pts), boolean chains 2, 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/astrid-uplink/src/native/mod.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6290e4133047c4c40433fa16259c608326a227a6429302d828a046f2b9839b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::setup::run_report (cognitive 33): astrid::commands::setup::run_report has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (7 pts), boolean chains 4 (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/astrid-cli/src/commands/setup.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c19bdf76a59afdb87ee562b890a65eea273e6f5d95943579952a52831829bad"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::input::handle_onboarding_enum_input (cognitive 33): astrid::tui::input::handle_onboarding_enum_input has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 3 (7 pts), boolean chains 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"095870cbe941c28897ccb36dce5dcb5a27928bb6ab4d32a00f9012a0d3ff8603"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::routes::agent::post_prompt (cognitive 33): astrid_gateway::routes::agent::post_prompt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (30 pts), match/switch 1 (2 pts), 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/astrid-gateway/src/routes/agent.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c038b1ca9db4c6c0b8859c3081a00b9669affd9ddf83359c08d1880cc4a379"}},{"ruleId":"D2","level":"warning","message":{"text":"OwnershipSnapshot::validate (cognitive 33): OwnershipSnapshot::validate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 5 (6 pts), boolean chains 5 (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/astrid-storage/src/ownership.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b5dbe5537b1407ed9f2492c006f5da442a7640e0c9e426d1d5eb6b2fe4c3fb"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_core::platform_fs::replace_executable_set_by_rename (cognitive 32): astrid_core::platform_fs::replace_executable_set_by_rename has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 6 (12 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/astrid-core/src/platform_fs.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b99eede50f1bd87df0e767c2b2b23b792b4cf79f21935b1539285f3b0c9e01"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandHandler::apply_env (cognitive 32): CommandHandler::apply_env has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-hooks/src/handler/command.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e185e18897b2bf25e7255ec80bae1120a2af03407a8335ee620313fbf6aa9c69"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelProcessStorageMountBroker::mount (cognitive 32): KernelProcessStorageMountBroker::mount has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 7 (9 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/astrid-kernel/src/storage_mount/process_broker/mod.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fbd95ef2b97e495f12a7a1f0060e337058f33fcd7347418e276634fbfd2cbe"}},{"ruleId":"D2","level":"warning","message":{"text":"KvHotCache::insert_bounded (cognitive 32): KvHotCache::insert_bounded has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 5 (7 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/astrid-storage/src/kv/tree/hot_cache.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"288f4102ba572964a22ae4836dfd87adaaa4caf944cc10e27425d08095afa1ec"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical.decode_map_node (cognitive 32): runatal_v1_physical.decode_map_node has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, 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":"scripts/runatal_v1_physical.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c9a493c092fae3df67129af2e65530f6409396d9d68afcf459d82a03db17ec"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_build::rust::getrandom_rustflags_override (cognitive 31): astrid_build::rust::getrandom_rustflags_override has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (31 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/astrid-build/src/rust.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b709e1629d5702c8814899b761b0d4fd14950b9a77edd90420188fd03bd47b12"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::remove::check_removal_safety (cognitive 31): astrid::commands::capsule::remove::check_removal_safety has cognitive complexity 31 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 6 (14 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/astrid-cli/src/commands/capsule/remove.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"143bf53e7c62b410f913958b2ddd122263520afaf2cf5a6e5b84119777d765fd"}},{"ruleId":"D2","level":"warning","message":{"text":"channel_metadata.validate_channel (cognitive 31): channel_metadata.validate_channel has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/channel_metadata.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c745b970c5a027b3c903ad4b297fdfb3629b21a1cbe448c4d952d3582ce79c77"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::request_approval (cognitive 30): HostState::request_approval has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (8 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/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfead2ff7a2051ade015f7c6d4563848cd562f56553c42601d63be516b61bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::deps::build_dep_graph (cognitive 30): astrid::commands::capsule::deps::build_dep_graph has cognitive complexity 30 (threshold 15). Drivers by points: loops 6 (15 pts), if/else 3 (14 pts), boolean chains 1 (nesting depth added 20). 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/astrid-cli/src/commands/capsule/deps.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b209e3f669103a044462175b7f935bfbfd0621f1a09ee3c2a54eea67e512198a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::render_activity (cognitive 30): astrid::tui::render::render_activity has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bd8a29e4c841fcfaa3ff9d1d2c3a32f0f7989dd7f364930286aaf7f0a53ea4"}},{"ruleId":"D2","level":"warning","message":{"text":"Kernel::durable_principal_capsule_paths (cognitive 30): Kernel::durable_principal_capsule_paths has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 4 (15 pts), if/else 3 (11 pts), loops 1 (4 pts) (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/astrid-kernel/src/lib.rs"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc116935b69caf04960f4a184a5c76c7e33a649b06d01b8caf93900b93cbd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"CanonicalPhysicalMap::rebuild_with_entries (cognitive 30): CanonicalPhysicalMap::rebuild_with_entries has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (8 pts), match/switch 2 (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/astrid-storage/src/storage_model/physical/map.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e753ad6525937ba713170a63bb6156488f33dfbe859383e92f6b8dd520398004"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::principal_state::staging::legacy::inspect_migration_intents (cognitive 30): astrid_storage::principal_state::staging::legacy::inspect_migration_intents has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 2 (7 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/staging/legacy.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5e83b6b223f140fec9fccb965908ff8a5ca9639e0e003b784284139488ef46"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_provider_fuse::service::service_loop (cognitive 30): astrid_storage_provider_fuse::service::service_loop has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 4 (13 pts), boolean chains 2, loops 1 (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/service.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b607bc12e54c0931b556c15b6de9b6aaba2ea243ad5890207d6601b1ed1015b4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::deps::show_tree (cognitive 29): astrid::commands::capsule::deps::show_tree has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 5 (13 pts), boolean chains 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/astrid-cli/src/commands/capsule/deps.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3f63dc73cf0cd75c283b270580e81f2a0c881b5d0018f80c8920869a30e365"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::wal::replay::wal_repair_object_ids (cognitive 29): astrid_storage::engine::durable::wal::replay::wal_repair_object_ids has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (7 pts), match/switch 1 (2 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/astrid-storage/src/engine/durable/wal/replay.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb35838d474ae65be44a6d83def90bfd1f9ac6e2be9a756982f8c561add8565"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlayVfs::open (cognitive 29): OverlayVfs::open has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/overlay.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf2f2a0f05aa83bd5de6ba3b0f7ce01aa5bd33d2fcae20a8a8fc1c365ad39a6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::topology::render_topology (cognitive 28): astrid_cli_mockup::ui::views::topology::render_topology has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (11 pts), match/switch 2 (4 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/astrid-cli-mockup/src/ui/views/topology.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9b9dbb60863a070c62fdb390495bcae823875db33619e607a74f4bb617fabf"}},{"ruleId":"D2","level":"warning","message":{"text":"PrincipalContentStore::publish_batch (cognitive 28): PrincipalContentStore::publish_batch has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 3 (7 pts), match/switch 2 (4 pts) (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/astrid-storage/src/content/store/bulk/publish.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabb84eef3f0e3553222c953cd3555265281d79e1dee63a73ec4276cca976b76"}},{"ruleId":"D2","level":"warning","message":{"text":"changelog.roll_changelog (cognitive 28): changelog.roll_changelog has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (25 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":"scripts/changelog.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"23661509d8c4150e79efcc6eade62d1f058e9cffce16100d2186c8be70e4cff2"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_release_archive.validate (cognitive 28): validate_release_archive.validate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 8, error handling 1 (2 pts), loops 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate_release_archive.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcbec08897ecdf53aabe9074945d0b552238785944092f6a404e1227b3f119b"}},{"ruleId":"D2","level":"warning","message":{"text":"WasmEngine::invoke_interceptor (cognitive 27): WasmEngine::invoke_interceptor has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 9 (12 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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"989bc1346c5855ac9090a8cbfcb0e118478b766ac02d47d3e0927f81cbfe8c91"}},{"ruleId":"D2","level":"warning","message":{"text":"InputBuffer::normalize (cognitive 27): InputBuffer::normalize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (24 pts), 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/astrid-cli/src/tui/state.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f392fbcdc320f67f9c986ad2d807c056acc3f8d75a0aaa37f8b4a387cd4767f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_config::merge::servers::sanitize_workspace_servers (cognitive 27): astrid_config::merge::servers::sanitize_workspace_servers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/servers.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"99211bc767e4d395934e806862896226a3f2534c7381387dc7576874c133237a"}},{"ruleId":"D2","level":"warning","message":{"text":"Kernel::shutdown (cognitive 27): Kernel::shutdown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"d145718195355543b4ab16036a940fbd073b8a11513745cbfbb26ea036111977"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::ledger::validate_existing_proofs (cognitive 27): astrid_kernel::legacy_migration_barrier::ledger::validate_existing_proofs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, 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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ff43e800ad1b87ddade29c28a32738a1e8819084d2975fcde434a1d58bc5f4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::principal_home_migration::retire_one_receipted_source (cognitive 27): astrid_kernel::principal_home_migration::retire_one_receipted_source has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/principal_home_migration/mod.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a958dbdf4c085033ecddce6500a2f92a5c021ce17a1be7c0d5949caf52752e"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::process_commit_batch (cognitive 27): DurableEngine::process_commit_batch has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (8 pts), match/switch 4 (7 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/group/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf60a26f1b989ff1b5ac604013199431f5c6ac10f99834ae485cf0ecf16f40f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CapsuleWatcher::run (cognitive 26): CapsuleWatcher::run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 4 (10 pts), loops 3 (5 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/astrid-capsule/src/watcher.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d7418c3eed68534aa09a61dcfe4c41be4a04e19fa44c4539e4fda362c8f74d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::parse_inline_markdown (cognitive 26): astrid::tui::render::parse_inline_markdown has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (7 pts), match/switch 1 (2 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8567cfb49461ea839ea0925e0254afab39d99faaa99c95f39b9db81187827b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::parse_inline_markdown (cognitive 26): astrid_cli_mockup::ui::render::parse_inline_markdown has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (7 pts), match/switch 1 (2 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a61fb54267a8a91f1cc5bdf6ca39b71c88e1d62a83ec5a7ce856db5c95524d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::volume::hosted::recover::recover_from_headers (cognitive 26): astrid_storage::volume::hosted::recover::recover_from_headers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"342dbb2d2519565b56405790f88be903adf67428d7e0dc0286968815d172845b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::volume::hosted::recover::apply_record (cognitive 26): astrid_storage::volume::hosted::recover::apply_record has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 7, 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/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb238861ccf0d730cf0dcd9d0386f75dd35a1bffb7acc43763704024d9f4e83"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeUplink::run (cognitive 26): NativeUplink::run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 4 (9 pts), loops 3 (4 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/astrid-uplink/src/native/mod.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6999adbae5c68744086b62e94ef5754bc8cfa026f13d85848b037578a5ee7d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::toposort::toposort_manifests (cognitive 25): astrid_capsule::toposort::toposort_manifests has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 5 (9 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/astrid-capsule/src/toposort.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14cc6a7f27479e28cb40e6c9a799c0d24832524d3dd6164064bdd42d29a6f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::doctor::run (cognitive 25): astrid::commands::doctor::run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 5 (10 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/astrid-cli/src/commands/doctor.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea69dbd05b6e9e5b2d9948ec6db076a88743b2ac7c357695b3844c50111b0205"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::wit::gc (cognitive 25): astrid::commands::wit::gc has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3 (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/astrid-cli/src/commands/wit.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c3903a62233fd7a5c2641b6e141aa49daad51701d7e52b3850422847d0dc0e"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::handle_slash_command (cognitive 25): astrid::tui::handle_slash_command has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/mod.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5dcc55b56dbab64c36b4b28f45b4624ade26e37cd3ccd873be90fa5b73cb60"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::headless::snapshot (cognitive 25): astrid::tui::headless::snapshot has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 6, 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/astrid-cli/src/tui/headless.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1837e078db0f9a8ed299efc6d7cc0443e22be7a9acbb13f1b155046305f76778"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::render_sidebar (cognitive 25): astrid_cli_mockup::ui::render::render_sidebar has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1457e23a76e41b120228d899e364ae294f7d1a08bc010398aa2d788de8ab75"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::storage_mount::resolve_owner (cognitive 25): astrid_kernel::storage_mount::resolve_owner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bdddf96086cfbe9fa853afdf791e6a9e79b2477c4c1f5850b5a9a9bc92bb4b"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::prepare (cognitive 25): DurableEngine::prepare has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3, 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/astrid-storage/src/engine/durable/engine.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e709f94226b5d4df90dcfbd0d76fbd96d541f91685fe0aa5648b8bb7c0ccaa5e"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::append_wal_transactions (cognitive 25): DurableEngine::append_wal_transactions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 2 (9 pts), loops 3 (7 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/astrid-storage/src/engine/durable/group/wal.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7505b5cc5250fa87e289dc3a87937f3365e4e4c8588be08bbada5eaea9fa94e4"}},{"ruleId":"D2","level":"warning","message":{"text":"supervised_fskit.approved_receipt (cognitive 25): supervised_fskit.approved_receipt has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, error handling 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":"scripts/supervised_fskit.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b5dd186ce6782e901fdce854cf1e8878e802d13fd8c7294b3d65d6fed9d3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"McpHostEngine::load (cognitive 24): McpHostEngine::load has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 3 (nesting depth added 11). 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/astrid-capsule/src/engine/mcp.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc94cecf76fdacf7d813a5b0212ecc827a22a495eb94ac5d4b6f7bcdf4702d67"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule_install::storage::migration::migrate_native_capsules_with_report (cognitive 24): astrid_capsule_install::storage::migration::migrate_native_capsules_with_report has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/storage/migration.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"889c86218e3b3d6f1703a0ac367053aaede9c27613cd9b81c151d64042fbeb39"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::input::handle_onboarding_text_input (cognitive 24): astrid::tui::input::handle_onboarding_text_input has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (22 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d6b6c8ee235623e0264b782286c92ad9f91a7abe07f6a6f2d4ae6d5bea29ba"}},{"ruleId":"D2","level":"warning","message":{"text":"BusKernelClient::request (cognitive 24): BusKernelClient::request has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/bus_kernel.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8532a6f108bc3c4bc1d3613f8e78705e743ad46dad89ab90fd516d32376a0a91"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_hooks::discovery::discover_hooks_in_workspace (cognitive 24): astrid_hooks::discovery::discover_hooks_in_workspace has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (8 pts), 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/astrid-hooks/src/discovery.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2c4be202662dfbf1e12fc77eee58fe5614ed68864fc035aeacf473704a862c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::inheritance::copy_kv_namespaces (cognitive 24): astrid_kernel::kernel_router::admin::inheritance::copy_kv_namespaces has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 4 (11 pts), loops 4 (7 pts), if/else 3 (6 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/astrid-kernel/src/kernel_router/admin/inheritance.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a839279dd2760f7c482bacb66c4a7b30c4be932661b9d8547d5a439d09102d33"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_provider_winfsp::win::validate_service_launch (cognitive 24): astrid_storage_provider_winfsp::win::validate_service_launch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 9. 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/astrid-storage-provider-winfsp/src/win.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70d83748af2496f912a9ff916f30ddff2ebce2f3fe1af37a2450de6c652f430"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_provider_winfsp::win::private_service_loop (cognitive 24): astrid_storage_provider_winfsp::win::private_service_loop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (17 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/astrid-storage-provider-winfsp/src/win.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad811f623447388cae24f5774a9d5326b0e0e6e8e4825f95379191073dd64600"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_sketch.source_chunks (cognitive 24): runatal_v1_sketch.source_chunks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 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":"scripts/runatal_v1_sketch.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"be80435f3dfd120f4e88407534cda2eb167312f8d11fd2fa854ace4e50368c84"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::main (cognitive 23): astrid::main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 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/astrid-cli/src/main.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7d901cf333096a369848d7ed04df547bde1da80ff6bbf1337a92aa5f48d59f"}},{"ruleId":"D2","level":"warning","message":{"text":"BusAdminClient::request (cognitive 23): BusAdminClient::request has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 4 (9 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/astrid-gateway/src/bus_admin.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5766617241be91f7def79d21e67570665a42dafb56bf8f25b3b191f1b0a5da29"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::content::store::workspace::codec::decode_workspace_record (cognitive 23): astrid_storage::content::store::workspace::codec::decode_workspace_record has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, match/switch 3 (5 pts), loops 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/astrid-storage/src/content/store/workspace/codec.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a175f9849f8430dd00795c32d37ae5ebf4d9d6f8e2739d551e431cc31f68fef7"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::principal_state::format_amendment::prepare_destination (cognitive 23): astrid_storage::principal_state::format_amendment::prepare_destination has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 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/astrid-storage/src/principal_state/format_amendment.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1488fddf2239948e19b04555711bd0128cf508ae03c777197773dcbfe54b638c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_vfs::workspace_cow::overlayfs::copy_upper_into_lower (cognitive 23): astrid_vfs::workspace_cow::overlayfs::copy_upper_into_lower has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, 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/astrid-vfs/src/workspace_cow/overlayfs.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41c4f7b4b9f74e2d2ccb5bfa4913d944ff85e98dabae53fa0c7198949b28d25"}},{"ruleId":"D2","level":"warning","message":{"text":"crate_publication.publication_order (cognitive 23): crate_publication.publication_order has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 6 (9 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":"scripts/crate_publication.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5381c9f4f57e7ede4225331d6ef84ab1ffb5342f11bb999ac4e9c4906c09d4"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::elicit (cognitive 22): HostState::elicit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 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/astrid-capsule/src/engine/wasm/host/elicit.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd39380d119a375bb4d7796aed4dbb51e2078bc98237014fcfdbc5b7ead13ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::spawn_persistent (cognitive 22): HostState::spawn_persistent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (17 pts), match/switch 3, 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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccebab07c50a1e8437cba5659e3806f73ecd60de17eb46785c12bf667e7f25c"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestSecurityGate::check_fs_permission (cognitive 22): ManifestSecurityGate::check_fs_permission has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7 (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/astrid-capsule/src/security/manifest_gate.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5ac585cf2c88b8d76b45709d53f82b39166550742c9ae7828f9392161e428d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::shield::render_queue (cognitive 22): astrid_cli_mockup::ui::views::shield::render_queue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 4 (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/astrid-cli-mockup/src/ui/views/shield.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"449f0d829e4492879443ddca947abf6e379b57321e1b5b33ec22db40d91f847e"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_config::env::resolve_string_refs (cognitive 22): astrid_config::env::resolve_string_refs 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/astrid-config/src/env.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc6a09e250feb30958941c70724d313b960857db2a4d526e3e3518a0e8f44d1"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_core::local_transport::windows::validate_pipe_security (cognitive 22): astrid_core::local_transport::windows::validate_pipe_security has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, 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/astrid-core/src/local_transport/windows.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fb328e6f5ce6e4faf2f27cef90b6ead35d0ef644683f999a80ce08384a3fc6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::env_import::import_env_and_secrets (cognitive 22): astrid_kernel::legacy_migration_barrier::env_import::import_env_and_secrets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 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/astrid-kernel/src/legacy_migration_barrier/env_import.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a5d4daa099e516a41453637703eb0a7aaca463537485b0fdc4a07dff18ca02"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::storage_mount::execute_operation (cognitive 22): astrid_kernel::storage_mount::execute_operation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2, match/switch 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/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc59833e6d848f8c8e24c3030761d45e3493e75a7ff210b95d7e17ad1eee79b"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyContext::validate (cognitive 22): LegacyContext::validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, 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/astrid-storage/src/kv/tree/legacy_avl.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"930d7fd46145dfa38853b2a5f1afac0e20ae0decbc55e2d9c5a2fadd99d07691"}},{"ruleId":"D2","level":"warning","message":{"text":"World::publish_placement_epoch (cognitive 22): World::publish_placement_epoch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (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/astrid-storage/src/storage_model/world.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1751e01615aac36fc373e076f55fd002aed5d6ad8b01bbeb8d2d5325f9b5735b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::principal_state::runtime_tree::reconcile_running_projection (cognitive 22): astrid_storage::principal_state::runtime_tree::reconcile_running_projection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, 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/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53b416179dbedd9d16d325635ed4fe124f6b63156d762753f4f63b0d294f35a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_provider_fskit::service::service_loop (cognitive 22): astrid_storage_provider_fskit::service::service_loop has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 2 (6 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb68ca616d3ac5ee5e55e3db271ad2be379ab7476a1fe593cabae784444f8ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry::install (cognitive 22): Registry::install has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 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/astrid-uplink/src/native/egress.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbb41be24988d71ee68540bc744e585b42fe1c85a635b1fe7c64eabf0121329"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_kv.decode_leaf (cognitive 22): runatal_v1_kv.decode_leaf has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 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":"scripts/runatal_v1_kv.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a47225daac2d0adae87b487b5ceb3f34c8d554fdab1947ade6f426c65a168d"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_kv.decode_v4 (cognitive 22): runatal_v1_kv.decode_v4 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_kv.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e873a66d692c79d39794a7bf185613b393e810fbcdb4d9e03cafd88f7afc114f"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_sha384.verify_attestation (cognitive 22): runatal_v1_sha384.verify_attestation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5, loops 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":"scripts/runatal_v1_sha384.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f2d7ce36dadc3510455a734d44d0a0aa28a7f074899767efb3d7907fa0b8c7"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_build::archiver::discover_opaque_assets (cognitive 21): astrid_build::archiver::discover_opaque_assets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 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/astrid-build/src/archiver.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb1fcfd5b39840c952ec88a71e27dd698188174deff695f657221659b51eabb"}},{"ruleId":"D2","level":"warning","message":{"text":"InputBuffer::delete_forward (cognitive 21): InputBuffer::delete_forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 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/astrid-cli/src/tui/state.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"955b6e32eb2428f0666fd61bf70c4da9b083043285bc8275b53221554a34bd21"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::updates::check (cognitive 21): astrid::commands::capsule::updates::check has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 3 (8 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/astrid-cli/src/commands/capsule/updates/mod.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2efda955317d14971fe29e29e1f9624286378dff8119455a8e238061834f73"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::headless::collect_response (cognitive 21): astrid::commands::headless::collect_response has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 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/astrid-cli/src/commands/headless.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f0f458979b634345b4e6a11889349a416aa477386edea7ab065835380d5efe"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::init::collect_variables (cognitive 21): astrid::commands::init::collect_variables has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/init.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2fb17c19e1d88f31d886a45ef72419dc2158b876c3cff6de66ff9b6b486336"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::command::render_table (cognitive 21): astrid_cli_mockup::ui::views::command::render_table has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 3 (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/astrid-cli-mockup/src/ui/views/command.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8e8a789ef59918b3e8226a37a41dbd686ca89105fd45d1e4f38d40329a224c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::revocations::spawn_watcher (cognitive 21): astrid_gateway::revocations::spawn_watcher has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 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/astrid-gateway/src/revocations.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"384752c7bd69ff96b8ebaf235557764cb88758f985c30bb780ca49f4d1c308c8"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::handlers::env_handlers::env_list (cognitive 21): astrid_kernel::kernel_router::admin::handlers::env_handlers::env_list has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 4 (5 pts), loops 2 (3 pts), boolean chains 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/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2cc191d07cc3b51242fb09f667dcd55ce5eceef1b4b0332850d398c0244092"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::retirement::retire_tree_with_access (cognitive 21): astrid_kernel::legacy_migration_barrier::retirement::retire_tree_with_access has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 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/astrid-kernel/src/legacy_migration_barrier/retirement.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"47039cd1266d377d72d6eb39a2d95262720fec2e17b97b3bae2fec0078e64d9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerManager::build_sandboxed_command (cognitive 21): ServerManager::build_sandboxed_command has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 5 (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/astrid-mcp/src/server.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bab96e55a82c4974fe7a2482235027839c49d646d3e2aa27fd51b1c31011e3a"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::shared_objects_for (cognitive 21): DurableEngine::shared_objects_for has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (8 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/astrid-storage/src/engine/durable/engine.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7214c70d8f0564bb6d4e7e1f34dc2cabe55db67c104bae1cdc2314fbb4611b4"}},{"ruleId":"D2","level":"warning","message":{"text":"StateOwnerResolver::resolve (cognitive 21): StateOwnerResolver::resolve has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd6ac4552f746a3fb20d466f376e0505d0a9288677e3a40cdc64ca8efa86bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::content::projection_names::planner::plan_node (cognitive 21): astrid_storage::content::projection_names::planner::plan_node has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 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/astrid-storage/src/content/projection_names/planner.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6a23875736ffd4d91dd9959ce5a7639f835cf3070791bf587b8f1ab3497463"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::representations::activation::append_new_reachable_map_nodes (cognitive 21): astrid_storage::engine::durable::representations::activation::append_new_reachable_map_nodes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), boolean chains 4, 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/astrid-storage/src/engine/durable/representations/activation.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"deca59a841a2b1e15c7c1b26abdaff4946aff16a5641e52b2828e46ceaa82d0f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::wal::scan::has_valid_physical_after (cognitive 21): astrid_storage::engine::durable::wal::scan::has_valid_physical_after has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 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/astrid-storage/src/engine/durable/wal/scan.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d200c9fa7151ad54b032577a65b99b3271e135e8e9ac0c8edf20cf496f0038"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::env::copy_secret_store (cognitive 21): astrid_storage::env::copy_secret_store has cognitive complexity 21 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 4 (7 pts), match/switch 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/astrid-storage/src/env.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69fd8f4f077f68a00887e4e4c4daab23386c3923a72b297c0b8f06d99380f6a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::principal_state::runtime_tree::restore_projection (cognitive 21): astrid_storage::principal_state::runtime_tree::restore_projection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 pts), boolean chains 2, 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/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e43792154cb595355184e3ecb346672b31e6b78d71dba99d2c86dffdfbb622f"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_kv.decode_legacy_node (cognitive 21): runatal_v1_kv.decode_legacy_node has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, ternaries 8, 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":"scripts/runatal_v1_kv.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e05af8b7fec1d0f4320aff9ab9fedb18695a5abee797563d81b95ce1d65d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical_store.validate_direct_arena (cognitive 21): runatal_v1_physical_store.validate_direct_arena has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, error handling 1 (2 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":"scripts/runatal_v1_physical_store.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"244577208d1a47e8cccc0db720026c40051bcbe473aba06e51fc3489c699ce67"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule_install::storage::collect_entries (cognitive 20): astrid_capsule_install::storage::collect_entries has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 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/astrid-capsule-install/src/storage.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c8a7d74879060f844bd9922fb4e528b4ef7c87f8a9707ebe2b8a689cb06699"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::install_prompts::collect_install_env_fields (cognitive 20): astrid::commands::capsule::install_prompts::collect_install_env_fields has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3, 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/astrid-cli/src/commands/capsule/install_prompts.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"aada945fd440087db76e27127991e44f0c3fa84c5824570d88712639acda8aae"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::render_activity (cognitive 20): astrid_cli_mockup::ui::render::render_activity has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ff1f65b9d974fab997a04af5f9bf5217540e861f39b88994150588445df74d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_core::dirs_layout_records::inventory_directory (cognitive 20): astrid_core::dirs_layout_records::inventory_directory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 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/astrid-core/src/dirs_layout_records.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c6c5dda2d888a47ecfc8423fae9f7a87309fbe1e0dc02118f73df4078d172d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_hooks::discovery::load_hooks_from_dir (cognitive 20): astrid_hooks::discovery::load_hooks_from_dir has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 2 (8 pts), if/else 3 (7 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-hooks/src/discovery.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffde93e12edd15fc4b2d497d4db71664725e4122b3f934c79f48a33860477e28"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::import_gateway_revocations (cognitive 20): astrid_kernel::legacy_migration_barrier::import_gateway_revocations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 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/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3fc34a792074c9bfb9e82c04ac609d24e28d5b87a6af2046b63f214ff7981a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::principal_distro_migration::migrate_one (cognitive 20): astrid_kernel::principal_distro_migration::migrate_one has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 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/astrid-kernel/src/principal_distro_migration.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa581facce57d34d4389fc2d2498554e122882bcfdc83d4ebb30238770e900b"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeContext::build_sorted (cognitive 20): TreeContext::build_sorted has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/context.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb945faf893cf662e9cb02a81557565e590534e87f4dae883062b52a6e1e8d87"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorityInner::recompute_logical_targets (cognitive 20): AuthorityInner::recompute_logical_targets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 4 (7 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/astrid-storage/src/resources/authority/state.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a1fb0ea06eafd031c0faef9b0c3b80f8418e2ca3229dfccbd6b542da596f83"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::format::scan_frames_with_protected_prefix (cognitive 20): astrid_storage::engine::durable::format::scan_frames_with_protected_prefix has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 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/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9727417cc6116efb67d386b9b6e82f59defb253ec741721c619cd2ac964af398"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::storage_model::physical::representation::validate_recipe (cognitive 20): astrid_storage::storage_model::physical::representation::validate_recipe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/storage_model/physical/representation.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77ab3ee3590641dc7325274848c00535fdb3881a71b52f3420acbb8afa8aa5b"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminClient::send_and_wait (cognitive 20): AdminClient::send_and_wait has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (6 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/astrid-uplink/src/admin_client.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"354fd324677cc31934ede0765a5a7499e2f228ee8de56fe27bd90d516376574a"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_uplink::native::input::handle_connection_input (cognitive 20): astrid_uplink::native::input::handle_connection_input has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 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/astrid-uplink/src/native/input.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"16afaaf09c13df4885c84957cfdbe3556e68f6f9ca2df75f836c5f28e2704d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_kv.decode_delta (cognitive 20): runatal_v1_kv.decode_delta has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_kv.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a08dcf7c7a44da8a3464532370ea28357b91f59e94442842a4c6d14c664550c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_audit::storage::append::advance_chain (cognitive 19): astrid_audit::storage::append::advance_chain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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/astrid-audit/src/storage/append.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c446bc4d5d727921807ae06d5499b64feedd40db8d6d44b55001874205167d0"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_build::mcp::extract_mcp_servers (cognitive 19): astrid_build::mcp::extract_mcp_servers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/mcp.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"654a6d813d094b5c38059674fba06a2aa1a84e66fb1e87de96caf26f34666dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::discovery::load_manifest (cognitive 19): astrid_capsule::discovery::load_manifest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5, 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/astrid-capsule/src/discovery.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a27ca74e20e8095522d5d955aa35b7b55806d9bdba272347dc82bd1600037a1"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::engine::wasm::host::fs::resolve::resolve_path (cognitive 19): astrid_capsule::engine::wasm::host::fs::resolve::resolve_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 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/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a8913dec79c853d7ec7a9a5aa5eb5a2329bb0de0deba03471b1762bf1a444f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::engine::wasm::host::process::inject::prepare_injections (cognitive 19): astrid_capsule::engine::wasm::host::process::inject::prepare_injections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/inject.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6d5deb61bb8b00b6cea1bea96753b07f6ae935367776f7cf2212943746bfc9"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::check::check_capsule (cognitive 19): astrid::commands::capsule::check::check_capsule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/capsule/check.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adf628176cb2e701e13c32e7b4b991f4e04d790be0ed051e184d8a8519d6b0e"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::install::install_from_local (cognitive 19): astrid::commands::capsule::install::install_from_local has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 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/astrid-cli/src/commands/capsule/install.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee7235ed0506c51815a0e688afd77314a16802c76ec6835329598ea08ff13ca"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::install_daemon::validate_values (cognitive 19): astrid::commands::capsule::install_daemon::validate_values has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, 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/astrid-cli/src/commands/capsule/install_daemon.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1ec616844130e33a2d2c96fb684c884591a4b06961f56c0c7b0915d77682bf"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::headless::run_headless_with_timeout (cognitive 19): astrid::commands::headless::run_headless_with_timeout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), 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/astrid-cli/src/commands/headless.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bfd3d82784cf6133bf3f75a3975d327e6bb7cf8879fe43d59963d986528506"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::render_inline_tool (cognitive 19): astrid::tui::render::render_inline_tool has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (4 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8234089ff17e1ff4e781a7d31a94fd5439cbf7dda4476cfd88906cd93a351019"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::render_inline_tool (cognitive 19): astrid_cli_mockup::ui::render::render_inline_tool has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (4 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafe1ef45da6de26c9f874c9fa3b1ae9822810832e6d3a7f93947c54f560c717"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::validate_imports_exports (cognitive 19): astrid_kernel::validate_imports_exports has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":5135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a474e3406307089087e2016534f88d95d77f91225377ee7b2e3311023d52f075"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::handlers::mutate_caps (cognitive 19): astrid_kernel::kernel_router::admin::handlers::mutate_caps has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4 (6 pts), boolean chains 2, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c896580151c9d94a99682ca39a9e2535758be0fb00202b7fd78a2ba9aa154e6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::host_fs::collect_workspace_targets (cognitive 19): astrid_kernel::legacy_migration_barrier::host_fs::collect_workspace_targets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e1433ccfc3be6c8f013e4942a0362b0a675631f3ea04801302e4281d1c0983"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBranchStore::rename_membership_matches (cognitive 19): WorkspaceBranchStore::rename_membership_matches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 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/astrid-storage/src/content/store/workspace/rename_guards.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc34c57f8359bf6a9885fbf5c152fd8d6d4e0444e59b63ef94fa489f04398b4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_build::artifact::collect_directory_records (cognitive 18): astrid_build::artifact::collect_directory_records has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/artifact.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94c838cb4b228196c7595da47ecb3e486f19b8f530ab035c310417d3dd1e9dd"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::accept (cognitive 18): HostState::accept has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (6 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/unix_listener.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe83fc72abbcb148b6477d05c178429b4b2c2c69e0ec3c4b1024a1c44ea36dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::dispatcher::consumer::run_consumer (cognitive 18): astrid_capsule::dispatcher::consumer::run_consumer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (5 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/astrid-capsule/src/dispatcher/consumer.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c58d986a71597ed44742afda53bbf14779423d494582114f9cdaf7768c060a5"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::engine::wasm::host::ipc::publish_inner (cognitive 18): astrid_capsule::engine::wasm::host::ipc::publish_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 2, match/switch 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/astrid-capsule/src/engine/wasm/host/ipc.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9889dafe2ea1fea35397ded470ad3797d8530da23b53c2dc6f0dc0853e300013"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule_install::storage::materialize_capsule_package (cognitive 18): astrid_capsule_install::storage::materialize_capsule_package has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, 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/astrid-capsule-install/src/storage.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c6bea70a75bc8c7344859b3885a6a2c5e41d048f6f526c599820ef1c396824"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule_verb::await_grant_result (cognitive 18): astrid::commands::capsule_verb::await_grant_result 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/astrid-cli/src/commands/capsule_verb.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9dad6ed4aa1b77cbe3492ba63eb6736dac2d3eed99b05875b1242e33632345"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::mcp::readiness::wait_for_broker_on (cognitive 18): astrid::commands::mcp::readiness::wait_for_broker_on has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 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/astrid-cli/src/commands/mcp/readiness.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c0328bf3a385b85ce9bdbcf7f422fec3ae13e85e9fb79a785b5e8df3db5132"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::headless::run (cognitive 18): astrid::tui::headless::run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/headless.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f52252baf2d08ba286037d412249978584ba090533cc3c2476069401d2f3197"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_core::dirs_layout_retirement::delete_tree (cognitive 18): astrid_core::dirs_layout_retirement::delete_tree has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c49db4445c8e2ea7945c026c6ceb0a54c180c743f896fd7094bc83a80f740ae"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::routes::stream::get_stream (cognitive 18): astrid_gateway::routes::stream::get_stream 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/astrid-gateway/src/routes/stream.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9036138447f320f1499ea91e5bbfdec10c807b33ae9d9e3d2e61e825c06e73"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::next_work (cognitive 18): Writer::next_work has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 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/astrid-kernel/src/audit_sink/writer.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e4d14ca2f1fa56704f23f98c4836c7d195ffc71b4fcda9502f722d196b8168"}},{"ruleId":"D2","level":"warning","message":{"text":"Kernel::unload_one_capsule_with_view_guard (cognitive 18): Kernel::unload_one_capsule_with_view_guard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (2 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/astrid-kernel/src/capsule_removal.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fd9fde6df2d450e0361a4db6ade835f360b14f1026b29f1015fca3a4b48864"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceFilesystem::rename_inner (cognitive 18): WorkspaceFilesystem::rename_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (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/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f51a50ccee5ebd1e5bd5b3822e34bbdf211891c51214d7f68064195dc741d84"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::recover_locked (cognitive 18): DurableEngine::recover_locked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 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/astrid-storage/src/engine/durable/recovery.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"6988f439c5eca4fa16e62faefa7194f84b31fb089540b051e7b8db7c792d93fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectCache::insert (cognitive 18): ObjectCache::insert has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 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/astrid-storage/src/engine/durable_cache/mod.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ef619a554f53df76a1c6cf45e57247f1d6d03e6348d7d5a6bfbe8edd8b9b16"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::staging::staged_closure_evidence (cognitive 18): astrid_storage::engine::durable::staging::staged_closure_evidence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/staging.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b554c8bb1ba720df5b8b7ea0c8e22d970853b2e65f08577aaf4066143baf3386"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::kv::tree::delta::decode_delta (cognitive 18): astrid_storage::kv::tree::delta::decode_delta has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/delta.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c63112e75ed3fc9e8b91e6acc88db4671d4954dfbd2e444fcc7fa827a24aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::kv::tree::header::decode_kv_component (cognitive 18): astrid_storage::kv::tree::header::decode_kv_component has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/header.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b96c2cf0bad82ff116453a83af059ab01776bd8aef64f81052e0030bee93596"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::volume::hosted::recover::replay_checkpoint_tail (cognitive 18): astrid_storage::volume::hosted::recover::replay_checkpoint_tail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"934774b71f7f70c23f928c17ff74a87f804d86e42a70aa13823945eb6b2ce00b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_provider_fuse::service_loop (cognitive 18): astrid_storage_provider_fuse::service_loop has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 3 (12 pts), if/else 3 (5 pts), 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/astrid-storage-provider-fuse/src/main.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb72ce126f97fa61163cce8aa4e52adebe0aa65c39c60d17a46e444241b18ed"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_kv.decode_branch (cognitive 18): runatal_v1_kv.decode_branch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_kv.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"501663ef7be76d9c9fdbbfa972cf093475af97515db581ab4ceea90f0d0ab5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical_store.replay_state_journal (cognitive 18): runatal_v1_physical_store.replay_state_journal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 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":"scripts/runatal_v1_physical_store.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"600bb0691cca954731211f1b42655cca918aace11435c8503b886f9bb370bdb6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_audit::storage::append_batch::next_chain_metadata (cognitive 17): astrid_audit::storage::append_batch::next_chain_metadata 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/astrid-audit/src/storage/append_batch.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddb24133cc03fef0e58de39f1de9c7ff729a0e1abfa71a7d9e17aa5e77ce6e8"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityStore::purge_principal (cognitive 17): CapabilityStore::purge_principal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4, 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/astrid-capabilities/src/store.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb01d8dec627999213b131822850c1c8a47b39dc375bce01d473997d7c7bce8"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBranchService::cleanup_orphaned (cognitive 17): WorkspaceBranchService::cleanup_orphaned has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 3 (7 pts), boolean chains 1, match/switch 1 (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/astrid-capsule/src/context.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc8e197113b295b7e35f85eaabbf2e64d897e3cb86286f6ee2b8efe3be9c434"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::spawn (cognitive 17): HostState::spawn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 5, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a65387f0cfd097bc75cfd1095573617c58bede901748630a6e2fd784500fe18"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::discovery::discover_manifests_in_workspace (cognitive 17): astrid_capsule::discovery::discover_manifests_in_workspace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), 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/astrid-capsule/src/discovery.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb857d2f797c97a4d0eec10735acda0ee23c6cea1499e4ccc79f2cb844da082"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::watcher::collect_source_paths (cognitive 17): astrid_capsule::watcher::collect_source_paths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/watcher.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd58cea6569ad0ddc757993f398a22d3c5548ee34ca3c2d7fc22d6bb7dd8379"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::install_headless::write_headless_env_fields (cognitive 17): astrid::commands::capsule::install_headless::write_headless_env_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"459c9b41f085084f00198c2658d9951fb65d2832ebfaa101229062c6854303c7"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule_verb::wait_for_command_result (cognitive 17): astrid::commands::capsule_verb::wait_for_command_result has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 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/astrid-cli/src/commands/capsule_verb.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f083473aa0be36e3e3a235a0c555d2f3ae4fbaf9b8640b25b9ff6ec5bf5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::init::select_capsules (cognitive 17): astrid::commands::init::select_capsules has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (7 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/astrid-cli/src/commands/init.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aad671cb780d4392cf4407f0e6e3a4693f4093661776406e39a1614826b74bc"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::run_loop (cognitive 17): astrid::tui::run_loop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9d6bf56a6d46e9862bcfdcebe6241ea7212cedc1c0134aa7d8cafa80498caa"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::input::handle_paste (cognitive 17): astrid::tui::input::handle_paste has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a6f34179ec5f23b0b2a5ee08a5029c95127ec0b010ac31a40032fe2691ee26"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::preflight_legacy_audit_sources (cognitive 17): astrid_kernel::preflight_legacy_audit_sources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (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/astrid-kernel/src/lib.rs"},"region":{"startLine":4090}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b5cacd1be8e4610779a2c636960bdbf107fb28476992c223a5744fa4d016f6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::distro_handlers::self_grant (cognitive 17): astrid_kernel::kernel_router::admin::distro_handlers::self_grant has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 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/astrid-kernel/src/kernel_router/admin/distro_handlers.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1bffeb7736767ba21fec117eb7ea6933fcbc94ccb5fcf61fe377d460cebd28"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::principal_home_migration::walk_directory (cognitive 17): astrid_kernel::principal_home_migration::walk_directory 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/astrid-kernel/src/principal_home_migration/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7a002a29acb230c99402072f58ea453113eed4138e94db693c3d22b5bbfbc5"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::principal_home_migration::paths::receipt_uid_for_alias (cognitive 17): astrid_kernel::principal_home_migration::paths::receipt_uid_for_alias has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, 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/astrid-kernel/src/principal_home_migration/paths.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b812f0ad3103b2357d71a65f8eb49b25682a9a1e5a1bec0aa19b7167db69336"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::storage_mount::serve_listener (cognitive 17): astrid_kernel::storage_mount::serve_listener has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"464c20e1a0297d9639d8ddb73192de06f534810586a49254c44a3e5884f8cc03"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBranchStore::create_branch (cognitive 17): WorkspaceBranchStore::create_branch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/lifecycle.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4453361fee0e8330c5c6289920baeb521d63c108e2f51547b7bb48908e9213"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBranchStore::fork_with_uid (cognitive 17): WorkspaceBranchStore::fork_with_uid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/operations.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"724914a85adc4d830ed644768cf6a118df281873e98bae0132028eaede823cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"PrincipalContentStore::migrate_legacy_catalog (cognitive 17): PrincipalContentStore::migrate_legacy_catalog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 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/astrid-storage/src/content/store.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a29b249f2f2c5dbb058e60560fb93f00bc7e9dd34383cd85fbad82afbae7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"PrincipalContentStore::delete_batch_if (cognitive 17): PrincipalContentStore::delete_batch_if has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ecb45df11aa7c1e2b9b9715fc1c386dcf5c4430305dd59e394504155b46576"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::fold_pending_wal (cognitive 17): DurableEngine::fold_pending_wal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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/astrid-storage/src/engine/durable/lifecycle.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd9c9930f84e8adc884eb10ad8f20eb1706e21dbf9e1034e37588b30a1fda00"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeContext::validate_page (cognitive 17): TreeContext::validate_page has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (6 pts), boolean chains 2, 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/astrid-storage/src/kv/tree/validation.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0591885f8a4da066eb0789c23587d70187a7a0a98554002239fa9b15be9e8f0"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::kv::tree::node::decode_leaf (cognitive 17): astrid_storage::kv::tree::node::decode_leaf has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/node.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3832e8c97e6c191231f4ebd11b5a4a2ebb8157d70d6751b112e009ced6bb110c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage_chunker_evidence::corpus::measure_reader (cognitive 17): astrid_storage_chunker_evidence::corpus::measure_reader has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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/astrid-storage-chunker-evidence/src/corpus.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95404c6d436376ecb62a35c55ecaad071cc16434805cc457e1d12b4771a65d9"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_uplink::native::process_inbound (cognitive 17): astrid_uplink::native::process_inbound has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 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/astrid-uplink/src/native/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84e14f7c63e32b5056d65d2b021ed08fa255c5b904d5b2aa2b4b33df888ca2e"}},{"ruleId":"D2","level":"warning","message":{"text":"release_publication.validate_release_assets (cognitive 17): release_publication.validate_release_assets has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (6 pts), if/else 4 (5 pts), boolean chains 3, ternaries 1 (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":"scripts/release_publication.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a2075ba9e9e29a8a0c42e89a29fce122dada6d9fe4558f520b1863a33b8ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical.decode_fixture (cognitive 17): runatal_v1_physical.decode_fixture has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"359c636ac8543da2e45eb65684680b5f65adfe6a094e91444e22d031a5db1f90"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_reader.decode_tree (cognitive 17): runatal_v1_reader.decode_tree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 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":"scripts/runatal_v1_reader.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a961bd4530d361a8c84dce8afd7243e0a8b47056f39890dc900cc9f6c2d3d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"AllowancePattern::matches (cognitive 16): AllowancePattern::matches has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 2 (4 pts), match/switch 2 (3 pts) (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/astrid-approval/src/allowance/pattern.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"823c10b8b0dec85c4901a66c5a67578850edb83f1ffb1052c500aa19558ea429"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_audit::log::archive::archive_pruned (cognitive 16): astrid_audit::log::archive::archive_pruned has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (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/astrid-audit/src/log/archive.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbcecc5826d80272aedfc91c131d261b9f03a62daac0bd3755e444858682535"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_audit::storage::blind_move::copy_namespace (cognitive 16): astrid_audit::storage::blind_move::copy_namespace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 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/astrid-audit/src/storage/blind_move.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3b606c2d7e3c7aeaed0f7371e8629fcc278bdf2537ebcd5f651cf4af6601a6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_build::archiver::pack_capsule_archive (cognitive 16): astrid_build::archiver::pack_capsule_archive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 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/astrid-build/src/archiver.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"032f0e53852499a3fef549d01a9c8c5e57911a2221678df6efdbd30721c8b0aa"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityStore::list_tokens (cognitive 16): CapabilityStore::list_tokens 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/astrid-capabilities/src/store.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d5e4e74e2a688c316fef7b4457509d98cd9a71157e529d3e255d9e51375c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"HostState::finalize_buffered (cognitive 16): HostState::finalize_buffered has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, loops 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/astrid-capsule/src/engine/wasm/host/http/backend.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7506cd6cf66e5c3c4175eba7553463176cba074b57a8a8fd181e9c4ea34814fd"}},{"ruleId":"D2","level":"warning","message":{"text":"WasmEngine::commit_workspace (cognitive 16): WasmEngine::commit_workspace has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 4 (5 pts), boolean chains 2 (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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dd081d13b28cde4d1338147ca16a7b5aa70ae211bac0d89d371b24ad308a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"CapsuleRegistry::unregister_for (cognitive 16): CapsuleRegistry::unregister_for has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/registry.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c2c110272faac134888345db4ec3607e7d113cdc2eb43943a3c9e8db0eb765"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionAllocation::reserve_when_available (cognitive 16): ExecutionAllocation::reserve_when_available has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (12 pts), boolean chains 2, if/else 1, loops 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/astrid-capsule/src/user_cpu/execution.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb1c24569e51c7d0fecf5afee0cc1cf3e11aed0c91f2a4b04a265cb035c9b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_capsule::engine::wasm::host::fs::resolve::resolve_physical_absolute (cognitive 16): astrid_capsule::engine::wasm::host::fs::resolve::resolve_physical_absolute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a25083ff5cdf8abadccc652db610b39e300df7afaaae41fd5ed366df544b051"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::capsule::install_finish::finish_install (cognitive 16): astrid::commands::capsule::install_finish::finish_install has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (5 pts), boolean chains 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/astrid-cli/src/commands/capsule/install_finish.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5591f06354071359563db582ae561e40e4b60e70f334e2fe53566b69673d57d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::mcp::watch::run_many (cognitive 16): astrid::commands::mcp::watch::run_many has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 7 (9 pts), if/else 3 (6 pts), 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/astrid-cli/src/commands/mcp/watch.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc96355e1f5635619765d9c64ccc05264c8002dba792aa4a27df13af0eaceec8"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::commands::update_auth::verify_integrity (cognitive 16): astrid::commands::update_auth::verify_integrity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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/astrid-cli/src/commands/update_auth.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"036d05b2d904eabb05980bb56d3fca58007b9ab7d6e0657f797b405fa8ac4004"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::input::handle_selection_input (cognitive 16): astrid::tui::input::handle_selection_input has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, 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/astrid-cli/src/tui/input.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ff5a6f2026e77ef287c734981710ef87b15437addb55acaf283a3d13c84bb4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid::tui::render::input_height (cognitive 16): astrid::tui::render::input_height has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, match/switch 1 (2 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/astrid-cli/src/tui/render.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8e506da3c78797d9c8304968eaebb0ca97ec2e21a1c49862146da2d6a9ea86"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::render::render_status (cognitive 16): astrid_cli_mockup::ui::render::render_status has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"282dc709794500d9a16458d1618914ea53160da5f8ceab26d7019ce6c3a2b35f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_cli_mockup::ui::views::chain::render_chain_entries (cognitive 16): astrid_cli_mockup::ui::views::chain::render_chain_entries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, match/switch 1 (2 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/astrid-cli-mockup/src/ui/views/chain.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cae3d008038ddaade60ed3673cade2a6aa7b165af11e076f268f696cd2852ff"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_config::merge::deep::deep_merge_tracking (cognitive 16): astrid_config::merge::deep::deep_merge_tracking has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 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/astrid-config/src/merge/deep.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f980a1052d220c52126b631cdaabaa27867fd2f3cd67491674a3f2fe282a5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_config::validate::validate_mcp_http (cognitive 16): astrid_config::validate::validate_mcp_http has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/validate.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad02231490fa8127dc5b85b71215d49f3b6b4efdd69ff3157ae4415e2ee6fec"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_core::platform_fs::unix_directory_walk (cognitive 16): astrid_core::platform_fs::unix_directory_walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020d236a025731894a7d0d1c0eba5d6655aa9c42e13ef071606a95efa7b881f"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::revocations::migrate_legacy_file (cognitive 16): astrid_gateway::revocations::migrate_legacy_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 2, match/switch 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/revocations.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9a7ca2409b9afd3372fcf2738347a422e286b19181a20b0be08d7ee4e93311"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::revocations::spawn_key_revocation_watcher (cognitive 16): astrid_gateway::revocations::spawn_key_revocation_watcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/revocations.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"943e1f5d086d00c4d90b4541d1353fe3ad0cd9617be695636742f8d2ad403e41"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_gateway::routes::agent::get_requests (cognitive 16): astrid_gateway::routes::agent::get_requests has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 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/astrid-gateway/src/routes/agent.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e05082aca554966b91702894731b45fe32344a306483b867b43218c5dd66160"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableInviteStore::ensure_legacy_import (cognitive 16): DurableInviteStore::ensure_legacy_import has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f6665f7ed2ca08e259761779dfd866025a5e7cf60b0669c6d369a0dcc92d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Kernel::load_capsule (cognitive 16): Kernel::load_capsule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6ba893fd7ea848935526ee742e278adad34adc82f717da2e23036029c8ca18"}},{"ruleId":"D2","level":"warning","message":{"text":"DurablePairTokenStore::ensure_legacy_import (cognitive 16): DurablePairTokenStore::ensure_legacy_import has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 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/astrid-kernel/src/pair_token/mod.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"607f6176fb1a979a372d1f5cf5946e2e2e28d735d2ede4ea461a65b26f118aba"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::spawn_idle_monitor (cognitive 16): astrid_kernel::spawn_idle_monitor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 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/astrid-kernel/src/lib.rs"},"region":{"startLine":4491}}}],"partialFingerprints":{"codehealthFindingId/v1":"c163fa2facf1bb9474fade4e4268d3f36e1ca9709bd2317cf5c3a12a880f7316"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::bus_monitor::spawn_bus_activity_monitor (cognitive 16): astrid_kernel::bus_monitor::spawn_bus_activity_monitor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/bus_monitor.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2bf303fc248b0192504f54fc0d3285664e8f11129e9d46cf3e0f602e98574b"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::spawn_kernel_router (cognitive 16): astrid_kernel::kernel_router::spawn_kernel_router has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (5 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/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"053e2a0a2cad1981d6e22521a83d5860e8a14c85749e3eff989fc603b421ea40"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::handlers::agent_modify_from_req (cognitive 16): astrid_kernel::kernel_router::admin::handlers::agent_modify_from_req has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 3, match/switch 3, loops 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/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddc53aa05907caecc4ed7e863f77d0e6e25cc0f423ffd781c7e4f4e2de9440c"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::admin::storage_mount_handlers::dispatch (cognitive 16): astrid_kernel::kernel_router::admin::storage_mount_handlers::dispatch has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (9 pts), boolean chains 4, if/else 2 (3 pts) (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/storage_mount_handlers.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c261f4abcd2a766ae7c360fc15302ec7e44432a028c59a371932bb9ad32e94"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::install::validate_install_provenance (cognitive 16): astrid_kernel::kernel_router::install::validate_install_provenance 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/astrid-kernel/src/kernel_router/install.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf1e76222aec0995f8d96ee102334736d4363f1c1c050d11d6c128a46a1499d"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::install::stage_env_values (cognitive 16): astrid_kernel::kernel_router::install::stage_env_values has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (3 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/astrid-kernel/src/kernel_router/install.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4067e416c1d7e373695f012e729c7efe7101c7bae9ebf7a0f781f399deed0e4"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::kernel_router::install::validate_env_values (cognitive 16): astrid_kernel::kernel_router::install::validate_env_values has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/install.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"768c6e7378574ecef531b01767afcb6fcae643b96246809882c41e87877473bb"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_kernel::legacy_migration_barrier::host_fs::preflight_legacy_audit_sources (cognitive 16): astrid_kernel::legacy_migration_barrier::host_fs::preflight_legacy_audit_sources has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (5 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbab8404bcd557be7c2358fe8cf7ce9788d6d0ef44c51900bcd17af55c531822"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableEngine::shared_object_for (cognitive 16): DurableEngine::shared_object_for has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/engine.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"45544baefe068b80202dab047d1b8305071318cd0f5212bc65b55782d465684d"}},{"ruleId":"D2","level":"warning","message":{"text":"ResidentMemoryAuthority::register_principal (cognitive 16): ResidentMemoryAuthority::register_principal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, 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/astrid-storage/src/resources/authority.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fe27a2423b4cfd8c909ec291a5d25f83679b27527d8da21f1237267c51588d"}},{"ruleId":"D2","level":"warning","message":{"text":"CanonicalPhysicalMap::get (cognitive 16): CanonicalPhysicalMap::get has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 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/astrid-storage/src/storage_model/physical/map.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fea48dac5c46fe52742a2284ad6ee64f7b77d98282d012aa87ef758d2ad8d6"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::engine::durable::restore::collect_restore (cognitive 16): astrid_storage::engine::durable::restore::collect_restore 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/astrid-storage/src/engine/durable/restore.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5c0be0e7016a611d5938ca7b5a233c4bb8967f8e266f5ddf53280cfabbe547"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::env::copy_secret_scope (cognitive 16): astrid_storage::env::copy_secret_scope has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (6 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/astrid-storage/src/env.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"32307f94bd0ee0ffdf270d420bf613814e0c8b6b6df0443dc57d4ee8f24107ce"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_storage::principal_state::owner_migration::derive_bindings (cognitive 16): astrid_storage::principal_state::owner_migration::derive_bindings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 2 (4 pts), boolean chains 3, 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/astrid-storage/src/principal_state/owner_migration.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e75aa93f9028881321f9ec9a7e6c2973d4f4f6b2e0e9c5494befa40fc4cb0b"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscription::human_reply_owner (cognitive 16): Subscription::human_reply_owner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, 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/astrid-uplink/src/native/egress.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf72840e8aace3fe5202b5badaa2bddc889066e11c47766413cc5c84701e960"}},{"ruleId":"D2","level":"warning","message":{"text":"astrid_uplink::native::routing::reconcile_stream (cognitive 16): astrid_uplink::native::routing::reconcile_stream 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/astrid-uplink/src/native/routing.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a504990021549f21ad77459f4723ebd7050a07e4afd49e98681707808e90273d"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_daemon_boot.current_boot_records (cognitive 16): bench_daemon_boot.current_boot_records has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench_daemon_boot.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a736adc021586563b3f00437158155af8becb3ed7585b8a2864c153120fd02"}},{"ruleId":"D2","level":"warning","message":{"text":"check_dco.check_commits (cognitive 16): check_dco.check_commits 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":"scripts/check_dco.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8701ac48c12b7da54ed173334c77483facd099b476e0f9189e36fa82dab7c241"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_physical.decode_representation (cognitive 16): runatal_v1_physical.decode_representation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1517cf0ee1724007f1cfb27503b67acb03e74575f41c19ade7284b4dd1a881e"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_reader.validate_runtime_profile (cognitive 16): runatal_v1_reader.validate_runtime_profile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 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":"scripts/runatal_v1_reader.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b00c3964f63feddf6cbcb7a9fc9f179411b9286775c8b4d7215612b3adb9ccf"}},{"ruleId":"D2","level":"warning","message":{"text":"runatal_v1_sketch.verify_sketch (cognitive 16): runatal_v1_sketch.verify_sketch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 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":"scripts/runatal_v1_sketch.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"65539ca75a36dbc0cb18bba723d934e0a92ec4a3e699492196ae1486d8f6c782"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WasmEngine.load: MethodTooLong \u2014 load runs 762 significant 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 662 over it, 7.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd19837dd9ca7bb7ce0c9970871eb66660215114483369feec256f322f5c2bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 3152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: Kernel (2 blocks, 213-3670), declaring 40 free functions. The bar is 500 significant lines; this is 2652 over it, 6.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b09aba0093874e9137fd6313fab57580568239db1a9e44dc7f0779d832ad86a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Kernel: ClassTooLong \u2014 1976 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 76 methods, 2 blocks, lines 213-3670. The bar is 400 significant lines; this is 1576 over it, 4.94\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/astrid-kernel/src/lib.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4bcbb7dcf11ed4143d4c639b16f297831584e702cc1e6d36f65000e633f185"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wasm/mod.rs: FileTooLong \u2014 2138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 1638 over it, 4.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefefdca6a0521d635cbf3f01d36202c6d5083cf7e8ac30760425a21f92e063e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DurableEngine: TooManyMethods \u2014 114 methods, declared across 15 files: durable/engine.rs (27), compaction/mod.rs (17), group/mod.rs (11), durable/opening.rs (10), \u002B11 more file(s). The bar is 30 methods; this is 84 over it, 3.80\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/mod.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f7283894c33eccff405bc1a21115f59c0904ac257e8ff7b2785514358576c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_kernel::kernel_router::handle_request: FunctionTooLong \u2014 astrid_kernel::kernel_router::handle_request runs 336 significant 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 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2144534809019165914567ac897eb098d18f88043bed3b9593c1f83737d400e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Kernel.with_resources_and_workspace_layout_with_profile_cache_and_directory: MethodTooLong \u2014 with_resources_and_workspace_layout_with_profile_cache_and_directory runs 325 significant 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 225 over it, 3.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c07934f2ea16f5c13ccf3fd39f1af33efbed950de4caff562a04c232128788"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: HostState: TooManyFields \u2014 92 stored fields beside 57 methods. The bar is 30 stored fields; this is 62 over it, 3.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host_state.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9742e11d49f8c259e326b0d3ea923d39e84b6d467d57d7c1761786e8821fbe2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WasmEngine: ClassTooLong \u2014 1201 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 3 blocks, lines 195-3666. The bar is 400 significant lines; this is 801 over it, 3.00\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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c139e19be37872b39f4b94ecf0c63a8f99d02d4a4199821133fab5b0748262"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AuditLog: TooManyMethods \u2014 86 methods, declared across 10 files: src/log.rs (32), log/v2.rs (14), log/retention_guard.rs (10), log/heads_export.rs (7), \u002B6 more file(s). The bar is 30 methods; this is 56 over it, 2.87\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/log.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4991787c3b403a568ccd8cd221acfc59496a0f0593ad38f59bc36e1115e65942"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_capsule_install::local::install_from_local_path_internal: FunctionTooLong \u2014 astrid_capsule_install::local::install_from_local_path_internal runs 279 significant 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 179 over it, 2.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/astrid-capsule-install/src/local.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"4425ed14512b74674ce9dee64286a4d1957796eb2d9fbe778e97a263c16cd8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KvAuditStorage: TooManyMethods \u2014 80 methods, declared across 18 files: storage/append.rs (16), src/storage.rs (12), storage/prune_chain.rs (9), storage/append_batch.rs (8), \u002B14 more file(s). The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3222d6d0064b50c70845b04f311604096a2f2f1a67a1071b7a1fd40b4b018fe7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KernelProcessStorageMountBroker.mount: MethodTooLong \u2014 mount runs 256 significant 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 156 over it, 2.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount/process_broker/mod.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"13052be197637a4d5f8ee74f23b36ddc194c19a84c0ac503ff81c8db1b43f0f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Kernel: TooManyMethods \u2014 76 methods, declared across 4 files: src/lib.rs (65), src/capsule_materialization.rs (6), src/capsule_removal.rs (3), src/native_input.rs (2). The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d823c6133611c4699dd104efb4256ab66856702eee6ebf21c253aa25317329a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WasmEngine.invoke_interceptor: MethodTooLong \u2014 invoke_interceptor runs 242 significant 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 142 over it, 2.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5858bad75df025073142e85c56750228533e4fce5e706d7f2734318d151ee37e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs: FunctionTooLong \u2014 astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs runs 224 significant 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 124 over it, 2.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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"14404616794383a5da5c7c81b6db89a742377a409b9a5142ceb58b3ec8220134"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/render.rs: FileTooLong \u2014 1109 significant 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 609 over it, 2.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"376013db17d56981976b12c784fee2ecd8d7f526b4583ba7c8cd55d3c04310c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrincipalContentStore: TooManyMethods \u2014 65 methods, declared across 7 files: content/store.rs (27), store/bulk.rs (14), store/internals.rs (14), store/constructors.rs (4), \u002B3 more file(s). The bar is 30 methods; this is 35 over it, 2.17\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd11df5f98ee70bad55d83b94071791f798506b6d8041d24956130bf6aaac881"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 64 stored fields beside 10 methods. The bar is 30 stored fields; this is 34 over it, 2.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/state.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c57322afc132c89c5c2d868c7f49073993c1d4524b443f4e33bc772845e9623"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::render::render_input: FunctionTooLong \u2014 astrid::tui::render::render_input runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc4ac245ab9be978b75ee2a82f5c2ed67fb36307011d8c254e2a10d17747908"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CapsuleRegistry: TooManyMethods \u2014 62 methods, declared across 4 files: src/registry.rs (47), registry/replacement.rs (7), registry/uplinks.rs (7), registry/compatibility.rs (1). The bar is 30 methods; this is 32 over it, 2.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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/registry.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"454362bd4277e5672dd47e8c6cc7500f14e64a00cf68ebcb2992cfd6099115f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.spawn_persistent: MethodTooLong \u2014 spawn_persistent runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b086d4dc031b6da05a0a035cd7375cb3713ccb54bbab5a95a694ae2eb7ee3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_cli_mockup::ui::views::nexus::render_nexus_entry: FunctionTooLong \u2014 astrid_cli_mockup::ui::views::nexus::render_nexus_entry runs 195 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"260057ff3cc34bc534baffd71c984eb02400a12efead611fdcc8cd21c4647ce0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HostState: TooManyMethods \u2014 57 methods, declared across 14 files: wasm/host_state_effective.rs (16), wasm/host_state.rs (8), wasm/host_state_invocation.rs (7), http/backend.rs (6), \u002B10 more file(s). The bar is 30 methods; this is 27 over it, 1.90\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host_state.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b262cf077c339516c15add90eefe537da92a7dc118fc815a1f47686e670c0d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::handle_daemon_event: FunctionTooLong \u2014 astrid::tui::handle_daemon_event 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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c724b07d09985762df35c2d36f425ddc4a5b4c177050d7a454af295b4e9290"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_config::merge::restrict::enforce_restrictions: FunctionTooLong \u2014 astrid_config::merge::restrict::enforce_restrictions runs 184 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/restrict.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"65296ffa67ce7fa19af17aa602c62f703a55e3e3ea1d25e3f6793ddc4c830401"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Kernel: TooManyFields \u2014 55 stored fields beside 76 methods. The bar is 30 stored fields; this is 25 over it, 1.83\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/astrid-kernel/src/lib.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3205c824be7c05a015e17a15bd79276c9d16d93da637bf369c895831b15849c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AstridHome: TooManyMethods \u2014 54 methods, declared across 2 files: src/dirs.rs (39), src/dirs_layout.rs (15). The bar is 30 methods; this is 24 over it, 1.80\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e57c68a32395e65a76dc7e3b79aabb9a717bc7352032b776308ffce07cc7705"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.spawn_background: MethodTooLong \u2014 spawn_background 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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e110e86252b00e27074b17fbc58e15f32835459fd0e2df4b87ae0ee4b99c0d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/runatal_v1_reader.py: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_reader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"428fa81aee9aabaa8f11332956cdbc44909937b1bcfd522a329af9406b46ef07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/state.rs: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 357 over it, 1.71\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad69d02c8f2cc4ddbd81ce3a2af93d08975879c20f5bb35ece902187747f9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_storage::content::store::workspace::codec::decode_workspace_record: FunctionTooLong \u2014 astrid_storage::content::store::workspace::codec::decode_workspace_record runs 171 significant 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 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/astrid-storage/src/content/store/workspace/codec.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbae31f909a64f286e2eb76bb3b47751c1c75b4171eb5e43fa5e5b5802081bfa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DurableEngine.compact_volume_locked: MethodTooLong \u2014 compact_volume_locked runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/compaction/volume.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc1cee3c35ebbc63edc43750205e4a406046c94385f9b9c3d8788e8cf8ef78f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.request_approval: MethodTooLong \u2014 request_approval runs 156 significant 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 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d010461adcb0a842aa213800231444d5269f731d9f2f9e3f92f54ce1a8c3afd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/runatal_v1_physical.py: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 277 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"611aa6e14ddb3e613c7b2901a40768b23f92934d02caf47bb05a12b2c5a7ea39"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::handle_pending_actions: FunctionTooLong \u2014 astrid::tui::handle_pending_actions runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/mod.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b07b1a7b7efd13bdd218361ac62b9c6d196d41569114d3409947a22a74ae77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: durable_cache/mod.rs: FileTooLong \u2014 751 significant 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 251 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable_cache/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"342909d4335caf4a9c8de13b8e231100f348277ae9f9d60a106cfc3a7ae51607"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.spawn: MethodTooLong \u2014 spawn runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf3c732943ef8af57b2f43036ebfa0bc1b17a7a56d3c7e9793b35059a300d95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepresentationStore: ClassTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 2 blocks, lines 97-842. The bar is 400 significant lines; this is 193 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ab01fa2e8ca8bade13552668691e429d480f77d890239ed9e77f5aa0073c13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: legacy_migration_barrier/mod.rs: FileTooLong \u2014 736 significant 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 236 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3f2773834c44126f47fd7dc1707bbdafa8d47131df9b6ec51172f3184e5f91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: read/traversal.rs: FileTooLong \u2014 733 significant 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 233 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content_dag/read/traversal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"187517d63533eecc87fd1e510c477bbe67203063ecde5930cf62823303f1c9e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/render.rs: FileTooLong \u2014 710 significant 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 210 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd527c0f8675af33a854b961402d0080613becbcc85a55ab5bdd53ecc54c0c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrincipalContentStore: ClassTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 65 methods, 2 blocks, lines 66-956. The bar is 400 significant lines; this is 165 over it, 1.41\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/astrid-storage/src/content/store.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a85cd47bfe65a4a26c4a63de929635538bf013233a2dbbca28eda1888a0d971"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_daemon::run_with_args: FunctionTooLong \u2014 astrid_daemon::run_with_args runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-daemon/src/lib.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1d9ecc8b2e664abbd0e32bd7f2c8f3dd7b298bc12382570e671bd8a9acb489"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.bind_tcp: MethodTooLong \u2014 bind_tcp runs 140 significant 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 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d14f1626f869b8010715abbe92dab9ba8be6231b025cd534d8000604c182818"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: legacy_migration_barrier/ledger.rs: FileTooLong \u2014 696 significant 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 196 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50aa7b71e612692cd3fdbe2c8504a275e4747afe93812ca7ba8a32b683d359f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/storage_mount.rs: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 192 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea272eeb67d81ead79cbe99b1ee42bb49bbebd736048261a752b652b9338493"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: principal_state/runtime_tree.rs: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f02ad714bfee1cc494aaf1438fed9d151c01ec99518435cc4cd8202b1cc48e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::render::render_activity: FunctionTooLong \u2014 astrid::tui::render::render_activity runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a67e239a661534e7d62d932691833e3b720a5eb3dbcbf1ff34009de929dc8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/gateway.rs: FileTooLong \u2014 688 significant 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 188 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/gateway.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1307b7fee6115b1126847cfb8a55d876e7440d5fa60aefc0c841255276b63f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: principal_state/native_io.rs: FileTooLong \u2014 686 significant 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 186 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab17325d815e134a9161724f74f9ea01c7eb1725dcdb60be4f7b8f2203f2e171"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: format/mod.rs: FileTooLong \u2014 683 significant 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 183 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"205624e3a8f1b5a777ca1ae5f2680dfa1b90801f5cc9b6250722280f647c7088"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compaction/mod.rs: FileTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: DurableEngine (2 blocks, 196-828). The bar is 500 significant lines; this is 181 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/compaction/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94045bf6a4c20093753e4c99241cc93a2493ade822fd93b69b360e9176e816a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/tree.rs: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 180 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/catalog/tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dbada447925dcfb3c6561a2eb27fff26fa1fcd259f80c6ff66722d17e89fa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workspace/operations.rs: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: WorkspaceBranchStore (2 blocks, 25-927). The bar is 500 significant lines; this is 180 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/operations.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"983372f6e11e864f20cc2d43347109dde10bcb7fe7760bb805934600a735ffa3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/storage.rs: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: KvAuditStorage (4 blocks, 320-926). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"963f98887501526eb82deace1a830a17e751af8065f5052063b50a77980c008a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hosted/recover.rs: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 175 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0652370dc2fc487bcb305baa9aec776c08f92491bdfd2a8ca8b09130bc7e1518"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: representations/mod.rs: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: RepresentationStore (2 blocks, 97-842). The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa02507b1213462f3559308ba1f0bf37b2797eb24bcac642336772ef2436cd7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OwnershipStore: TooManyMethods \u2014 40 methods, declared across 8 files: src/ownership.rs (14), ownership/deletion.rs (11), ownership/provision.rs (3), ownership/upgrade.rs (3), \u002B4 more file(s). The bar is 30 methods; this is 10 over it, 1.33\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/ownership.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0166e732c66be891bc42f262834d3ada613a776e0c7dc62a850b121b74f112"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: legacy_migration_barrier/host_fs.rs: FileTooLong \u2014 665 significant 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 165 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c147372911cae977b90935bd13e27a706fab61526b2f2403c40f11e4ccb33e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 657 significant 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 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0029027e7a816c170a21fd54d094ecbb877028ac832e76957ef6247ecfa815"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/authority.rs: FileTooLong \u2014 656 significant 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 156 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/authority.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9697c89bf9c69ea34c77ba7e00b69b3910a2bb787b4d1c5df831b6ef987a4137"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/lifecycle.rs: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 155 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/lifecycle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"489bc34c2a908e2e272937a578be714c1f35970032765a075ed091e699c45293"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: process_broker/mod.rs: FileTooLong \u2014 655 significant 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 155 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount/process_broker/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce66d1733c42c7c6f6ce42f019c658bd5a4085fd72db27f44c686c805258fe1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: principal_home_migration/mod.rs: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 153 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/principal_home_migration/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"196bd143a0d8347f2153efd511a38b035631ab1ccf4961c211fa07b60cfb1a43"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceBranchStore: TooManyMethods \u2014 39 methods, declared across 4 files: workspace/operations.rs (25), workspace/lifecycle.rs (10), workspace/model.rs (2), workspace/rename_guards.rs (2). The bar is 30 methods; this is 9 over it, 1.30\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/model.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9574795a6cee104478f5a4215a107a66753a27e162182dcde18a42e7dd399f20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/storage.rs: FileTooLong \u2014 644 significant 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 144 over it, 1.29\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/astrid-capsule-install/src/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4ced306c3579b0fa0723384621e9c805bc445a3ede196008c50770941034b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CapsuleRegistry: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 62 methods, 4 blocks, lines 113-958. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/registry.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1750a26af362e051cf5b2335febed61162d10e96f9b9e0002933503d36eefc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_capsule::engine::wasm::build_lifecycle_host_state: FunctionTooLong \u2014 astrid_capsule::engine::wasm::build_lifecycle_host_state runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":3774}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08e5ea0ed5d26f71d21f2147b2807011a72d182af4a9250b54d12515efc279c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: capsule/install.rs: FileTooLong \u2014 637 significant 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 137 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/astrid-cli/src/commands/capsule/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba5b096a72d35e8893c5cca4a1dffd76af3460d02e8d4c4f6765c79de655bd1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceBranchStore.rename_batch_inner: MethodTooLong \u2014 rename_batch_inner runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/operations.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5250cf444ee8e9de292d2b1abba17af48c558056d2e88e01ef212091a2b316"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/update_channel.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/astrid-cli/src/commands/update_channel.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb6de3a4032cc8230f909ed716fe85e8fd43e8f73177429fee235812e248846"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: content/store.rs: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: PrincipalContentStore (2 blocks, 66-956). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"925febc08e2ca7024ec067e26cfd38faac4a87f6a8e486d25c1e555bae061e88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: process/mod.rs: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: HostState (183-953). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc2c79864ff70356c730b2feda75a2e21ecd7b08de5df3cc7af1c8f942b8a90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local_transport/windows.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/local_transport/windows.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b057bd75d4c96b98062c516e483927430836eb7581ab4b391c839c87fe6dc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sketch.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-chunker-evidence/src/sketch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a119c7affcb395e042fc569e721e05c4a0ddd472f852c8a87550ed989bd431"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllowancePattern.matches: MethodTooLong \u2014 matches 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/astrid-approval/src/allowance/pattern.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3524d8311c72a76e61905724c21807500ab1094bd8f6a30ce53489e60ffc1576"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/mod.rs: FileTooLong \u2014 613 significant 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 113 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"963e399c01389091027f7d85042a3629bcf06f07dceaa84a5dce7a6f36403f5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wal/scan.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: WalScanner (2 blocks, 53-566). The bar is 500 significant lines; this is 112 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/wal/scan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e196a74756573edff111eec4ba3dc2874953d638983e2ac0b33ab02fbf0b7de1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: refinery/cross_hash.rs: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/refinery/cross_hash.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58f014fe89dc1dfc9fc32b618e5a0e0fd8f4fe0885f908c4eed00585b589742"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/state.rs: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d499ff06baa8339a50847c7553589267737a5ccb2b55e89d0005379f688518fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::render::render_nexus: FunctionTooLong \u2014 astrid::tui::render::render_nexus runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"da63651f931f81c4e32a23f72a4b48966bf9fd6b08198be0168f4e6835fb4dc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape: FunctionTooLong \u2014 astrid_kernel::legacy_migration_barrier::ledger::validate_ledger_shape runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"3691f58d748cdd51e904304239e08b3372612955090cca4f6821d16a51726a97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage_model/derivation.rs: FileTooLong \u2014 604 significant 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 104 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/storage_model/derivation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8187a01c386ab60de8872693e00e6452c4f9cdafc4870274d8af1c0889c930d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_cli_mockup::ui::render::render_welcome: FunctionTooLong \u2014 astrid_cli_mockup::ui::render::render_welcome runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"e034d4a3c065ff36ed2d6dbe9be4d629b1d111d075e048bace64e531e8287522"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kernel_router/mod.rs: FileTooLong \u2014 595 significant 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 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae3b2f8e350f475dbb38db36cf0e8184ff7e369ab92b3c3ba6af21ad19298ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_cli_mockup::ui::views::command::render_table: FunctionTooLong \u2014 astrid_cli_mockup::ui::views::command::render_table runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/command.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a6875786cd2165b12ebafe3258438278f671937b84f18a425336694473b3b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/bulk.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: PrincipalContentStore (103-682). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/bulk.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35358a76584436a95bfa3ec60abe559860ba703be75f2e2064622d9914d8148f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/map.rs: FileTooLong \u2014 594 significant 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 94 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/storage_model/physical/map.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"305bf30df1a003f65528c150978964ca47ad3137bd07e4b237f85c3a9e421940"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServerManager: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 31 methods, 3 blocks, lines 79-1023. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-mcp/src/server.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"839f7d7009d7ac183f106cb8067c63b7f89bb95250168f1468f2d93f0b589a9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wal/codec.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/wal/codec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"220a43f4731b1c2b147e1b50aadad6b4e32c2e61c2b47042ad0de6a039ff298c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_storage::engine::durable::wal::replay::replay_transaction: FunctionTooLong \u2014 astrid_storage::engine::durable::wal::replay::replay_transaction runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/wal/replay.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bbcbc0f912fa9b7129053ca982377c400ad391583a96f0ed6ed39270b24540"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/local.rs: FileTooLong \u2014 588 significant 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 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaecbdec583821dc356b9c38a8538b0018a99d4f129493232ce0a469f754c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_capsule_install::storage::migration::migrate_native_capsules_with_report: FunctionTooLong \u2014 astrid_capsule_install::storage::migration::migrate_native_capsules_with_report runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/storage/migration.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0886d80d7b53692bb19ef4238f4f799133a827e897e56e4714ab6a148daa4d91"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_cli_mockup::ui::input::handle_idle_input: FunctionTooLong \u2014 astrid_cli_mockup::ui::input::handle_idle_input runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02094181fdc2adae39168a3d61c2e904b47ef2b2fc5c9bc121c61f4e7446cd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: principal_state/staging.rs: FileTooLong \u2014 581 significant 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 81 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/staging.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e082f66449d17c340093c303e77d1ff3ec3f9f80c9e0bf0bd68aeb3eb3e428"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/init.rs: FileTooLong \u2014 579 significant 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 79 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"871ce6fbc9d59aeabf8bd95da911c8bab6df782518886c448294dbbd2fbdfc6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_cli_mockup::ui::views::topology::render_topology: FunctionTooLong \u2014 astrid_cli_mockup::ui::views::topology::render_topology runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/topology.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea638fa7577e76291db47c180b4a127fc087206d84055b787764267028b7683"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/registry.rs: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: CapsuleRegistry (4 blocks, 113-958). The bar is 500 significant lines; this is 74 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82c5a938decb2702a3136e92a1b4b4a53263538063827b6fce7c09e31cf64cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rust.rs: FileTooLong \u2014 566 significant 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 66 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/rust.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cc966245563c92f539872a25cad051198c96f70c8ff16699884c1970ba6849"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/win.rs: FileTooLong \u2014 566 significant 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 66 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-winfsp/src/win.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c55607a23a1f0afb4feb967013d57bd562bdd005e2054f8decbaa25ed1503b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_kernel::legacy_migration_barrier::preflight_sources: FunctionTooLong \u2014 astrid_kernel::legacy_migration_barrier::preflight_sources runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f456ec4b8939e623bb89d7c257d1d1637b63b353cf3a80db3ca74195fa0d457"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/mod.rs: FileTooLong \u2014 563 significant 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 63 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb82b42b8c5c231a54dde8b1dfef9e80f8e23066d18f0ee8e704f7a61cd9c7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/mod.rs: FileTooLong \u2014 563 significant 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 63 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/index/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66644d5ad338eeddfd8bd09fc67ada72c922e70806fbda59e45ec9044ae7bf6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/mod.rs: FileTooLong \u2014 562 significant 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 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc6e92d6b02f95c67f271e376d45da36048b6876f32ca738af172ffdd1fa4cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_sources: FunctionTooLong \u2014 astrid_kernel::legacy_migration_barrier::ensure_no_unretired_component_sources runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8cd59f5ba12b036ac3882aba5eed224ccad85b38e18272e90c5c38a3463480"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/mod.rs: FileTooLong \u2014 558 significant 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 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/agent/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ffe2d0af72c85bb0a8eb399df210863c8cc1796cb59e4638bbde13083bd151"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/kv.rs: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/kv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc0ae9aadcc2a169c79313438ca07e27450bd5c62cfff0a8db4773bf1c5757a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: windows/path.rs: FileTooLong \u2014 554 significant 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 54 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs/windows/path.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2777c872e36104086c8eac1ba34a956e485735a432a853b1abc77ed0f06430b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KvAuditStorage: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 80 methods, 4 blocks, lines 320-926. The bar is 400 significant lines; this is 43 over it, 1.11\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/astrid-audit/src/storage.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"401487b367af6a59d7f8f58d6fbd1c544c84f04d92cc2867486a58a75bcac615"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/daemon.rs: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/daemon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab6680a353c38f2bc57edc59a0c20844a13fc8a578088cf929d992efbb93274"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/input.rs: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/input.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8927efd431a673d393744fb3426c4b31a048b6783867ca54b2b02bb2aacd86cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HostState.for_hook: MethodTooLong \u2014 for_hook runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host_state_hook.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea130d136cb392d5ea140b80dcabc468069523ffb8a3c7e66f169b717ad3ead"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::dispatch::dispatch_subcommand: FunctionTooLong \u2014 astrid::dispatch::dispatch_subcommand runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/dispatch.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0093721ec2a817b952da4a4373a9109a3779b8e62b22248b5e0e492f2e3d4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: astrid::tui::input::handle_idle_input: FunctionTooLong \u2014 astrid::tui::input::handle_idle_input runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/input.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a2a4cb4bc9986fb9c859be0c5465850eb9fe01284cf6b74747e6accd9b6f67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/sessions.rs: FileTooLong \u2014 549 significant 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 49 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/sessions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9b2f053516b2766d4f2bbf2f6ddc3911f517f5b2f49d1d2de79184c6cb311c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/capability_registry.rs: FileTooLong \u2014 538 significant 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 38 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/capability_registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9641503d5d8be1ac2af36e706fe4526e36dbf79507963568aef52836b92b2993"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hosted/mod.rs: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f7d89f78d185591fa77e54688c100e87064d48e27f31458f30f6c2e1404f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage_model/mod.rs: FileTooLong \u2014 532 significant 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 32 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/storage_model/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1543c4da1ba44aa78f4833262bd40e38ce5892b08d3e4d56b786f954a0d4c8cb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TreeContext: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 2 blocks, lines 25-589. The bar is 400 significant lines; this is 24 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/context.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ae1717ceb0bd1cb26873ce21e1c9181e55e6a7a215661ded16c6ade84111d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/context.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"489f17ae544e3d7c1de7ec460d1d173b761047f4acb06cd8ab62464606b05b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kernel_router/install.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f52fc6a4ccbdb312668a90e66e4ed8e3efbf774df877e9532b13af775e55d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2940d014a803a44f811e2c74132f5b3341d826f8efb9cee63f463c41727c8a4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: native/mod.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-uplink/src/native/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0acbd381e700a95ed5b53684b089bd2d8366e13723612de7115a36f6240a58"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CapabilityStore: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 4 blocks, lines 58-876. The bar is 400 significant lines; this is 17 over it, 1.04\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/astrid-capabilities/src/store.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3643a17263baf38a6fb49264579a7291bbeb2e330c85e2119924908c48b0f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WalWriter: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 13 methods, 2 blocks, lines 76-640. The bar is 400 significant lines; this is 17 over it, 1.04\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/astrid-storage/src/engine/durable/wal/writer.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e74432272b23ea84b16455e7e76cf3b4d2046e028b4315fe18f4eef514728b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: net/mod.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"532a27625c887e69dde19249747dbda8ccd508f648033f5346ff9de8fc9e08f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/filesystem.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 78% of them inside a single declaration: AstridFuseFilesystem (3 blocks, 71-624). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"594f79dce7209d0097c3a6598341a0cafa2962df9a5848f481e5645e821eaa8f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerManager: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-mcp/src/server.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"78db76a2b7243cc8775c7af66fa9c5fa067aa8d1c74642d5273b7773cf8574c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RuntimePrincipalStore: TooManyMethods \u2014 31 methods, declared across 3 files: src/principal_state.rs (25), principal_state/bootstrap.rs (4), principal_state/contiguous_ingest.rs (2). The bar is 30 methods; this is 1 over it, 1.03\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/ci.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"25087e2555f863279cfba8f0b7fdd81b7a8feb3ce92273b27843319759d95e39"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: WasmEngine: TooManyFields \u2014 31 stored fields beside 6 methods. The bar is 30 stored fields; this is 1 over it, 1.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":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62e916558c6c71c5aae154a4848440de7cde71aee0ac1bf1d7018a0a3b23ac5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/server.rs: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 92% of them inside a single declaration: ServerManager (3 blocks, 79-1023). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-mcp/src/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c653731abb85d1c6f55a73154619478fc8dec2075a4d95b150e41eb1a98f4a18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: windows/io.rs: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs/windows/io.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aae0f8585ffc9b52271d88d0e1de23e0351f2bf000bd2ede934ee0d474964b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tree/context.rs: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 82% of them inside a single declaration: TreeContext (2 blocks, 25-589). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f27c916b41402c12b98cd7a0dcbd895620e194b339f3f57d01455b3039f9472"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Admitter.reserve: MethodTooLong \u2014 reserve runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/dispatcher/admission.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba285c5e52f93b11d0f964814b8dfa8a606c119f4203c47fb0e07da01b1cb9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: self_update/mod.rs: FileTooLong \u2014 509 significant 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 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/self_update/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a7fab7c4daa6ecb125504d6a0669f1655dde0542531834d010921cf50f2254"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AstridFuseFilesystem: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 3 blocks, lines 71-624. The bar is 400 significant lines; this is 7 over it, 1.02\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/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d68df391be46d318695c5912a69fbe188f544a39f5679bb1c4682c93640030c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (98 shared lines): crates/astrid-cli-mockup/src/ui/render.rs:447-564 | crates/astrid-cli/src/tui/render.rs:702-892 \u2014 These two members are variants of one another: 98 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90c51f25c18109dc27c8f7200dc6e2dd1d0b2a20ff4fceef8fc48f2b6486421"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:184-389 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:394-645 \u2014 These two members are variants of one another: 64 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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef77e8118424c387cd1e8fd6c0b9f22d2a3ccdb3d84ea521098ff941433779c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): crates/astrid-kernel/src/invite/mod.rs:202-288 | crates/astrid-kernel/src/pair_token/mod.rs:216-316 \u2014 These two members are variants of one another: 59 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed5cb186cd07ac920591cd44250e500fd9bf1761a517298ff3914b7c878b574"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): crates/astrid-storage/src/principal_state/volume_migration.rs:101-158 | crates/astrid-storage/src/principal_state/volume_migration.rs:181-253 \u2014 These two members are variants of one another: 36 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/astrid-storage/src/principal_state/volume_migration.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bb8e515ef90806b839fb2abb23f9c8af747b475c3edee23a784564c5c64e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): crates/astrid-storage/src/volume/hosted/mod.rs:105-158 | crates/astrid-storage/src/volume/hosted/stream.rs:94-151 \u2014 These two members are variants of one another: 33 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"96978523e7a3c8b52f12bbdc108cd375e86f8d85509d2c5d4ad04e2b302f65ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): crates/astrid-cli-mockup/src/ui/render.rs:682-774 | crates/astrid-cli/src/tui/render.rs:1471-1545 \u2014 These two members are variants of one another: 33 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3572123dcdb7f7557b84ede2ebe84404176534d9bae4e39c96aff3170f0c3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): crates/astrid-kernel/src/invite/storage_migration.rs:60-96 | crates/astrid-kernel/src/pair_token/storage_migration.rs:76-112 \u2014 These two members are variants of one another: 29 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcb51231a6e5932845568fbb20e1ac370dfc2d1204256985d02943b804bd7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): crates/astrid-storage/src/engine/durable/representations/mod.rs:184-268 | crates/astrid-storage/src/engine/durable/representations/volume.rs:65-154 \u2014 These two members are variants of one another: 29 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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f5c4a2b17647e6124e31d393dcb8961cc448ee9df7af2d34f99302be6a4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): crates/astrid-cli/src/commands/ps.rs:38-126 | crates/astrid-cli/src/commands/who.rs:47-143 \u2014 These two members are variants of one another: 28 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/astrid-cli/src/commands/ps.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca21e499acf4d3a3c573f99f868f749a1ae65dd670f89e14044016bce24c6dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (20 shared lines): crates/astrid-storage/src/kv/surreal.rs:358-385 | crates/astrid-storage/src/kv/surreal.rs:387-417 \u2014 These two members are variants of one another: 20 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/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3319b0740d3218bbf789d40a385b80c842db9e2c1485f1f504da0bbb5485435f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): scripts/musl_release_manifest.py:300-312 | scripts/windows_release_manifest.py:278-290 \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":"scripts/musl_release_manifest.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae7d0aeac5adb4bd539e3903b462561390ba618d51ceffb6aaf3c774b677853"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/astrid-kernel/src/invite/mod.rs:367-418 | crates/astrid-kernel/src/invite/mod.rs:425-441 | crates/astrid-kernel/src/invite/mod.rs:449-479 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:197-230 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:239-296 | crates/astrid-kernel/src/pair_token/mod.rs:399-436 \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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a7c9a6546444db571bd3f89f813f6338e35d790e122eaba9db4c6e74ab0437"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/astrid-capsule/src/engine/wasm/host/identity.rs:30-64 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:66-99 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:101-130 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:135-163 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:168-205 \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/astrid-capsule/src/engine/wasm/host/identity.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ebd07e1e730516019863eabf6e139b33add36587bffad2ae22f5ed718f44e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/astrid-gateway/src/routes/caps.rs:59-78 | crates/astrid-gateway/src/routes/groups.rs:114-132 | crates/astrid-gateway/src/routes/groups.rs:150-168 | crates/astrid-gateway/src/routes/principals.rs:176-199 | crates/astrid-gateway/src/routes/principals.rs:317-338 \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/astrid-gateway/src/routes/caps.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb96cbf9069e0b589b144bd5fe84aca78ba5951c46f749eeb826d1ded455a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/astrid-cli-mockup/src/ui/render.rs:140-215 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:22-118 | crates/astrid-cli/src/tui/render.rs:169-244 | crates/astrid-cli/src/tui/render.rs:514-697 \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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af8c339a16a84665c258f0a26e32bd22694909f61a9e9511b7e981cdb440a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/astrid-cli-mockup/src/ui/views/pulse.rs:56-114 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:116-177 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:179-223 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:225-277 \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/astrid-cli-mockup/src/ui/views/pulse.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4e701035bd402c813dd8094764abde3cb43a38df72d80398a75089a41d1864"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/astrid-gateway/src/routes/principals.rs:140-158 | crates/astrid-gateway/src/routes/principals.rs:218-235 | crates/astrid-gateway/src/routes/principals.rs:483-500 | crates/astrid-gateway/src/routes/principals.rs:526-552 \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/astrid-gateway/src/routes/principals.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"475e6383fb63440e2fc0cd545b66e35f44576ba50fc432fee8e629950c621433"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/astrid-storage/src/engine/durable/native_io.rs:131-147 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:173-189 | crates/astrid-storage/src/principal_state/native_io.rs:482-528 | crates/astrid-storage/src/principal_state/native_io.rs:637-691 \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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f74e229bdf12c0b1aea5109276de3c37c3fa6d9afb5a0aab278e4e7074914f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/astrid-telemetry/src/logging.rs:356-379 | crates/astrid-telemetry/src/logging.rs:384-408 | crates/astrid-telemetry/src/logging.rs:413-437 | crates/astrid-telemetry/src/logging.rs:442-465 \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/astrid-telemetry/src/logging.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9762c71383deba9dd31cc171a75ee888982cbdb7adc05c9974bfe2f0c7442858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): crates/astrid-storage/src/engine/durable/recovery.rs:87-143 | crates/astrid-storage/src/engine/durable/recovery.rs:180-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/recovery.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"293560759616618205f8ad17706eb5069642f5cc1d4758337be167193dc86274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201349 lines \u00D7 2): crates/astrid-core/src/local_transport/windows/acl.rs:255-301 | crates/astrid-core/src/platform_fs/windows/acl/ace.rs:172-220 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/local_transport/windows/acl.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/acl/ace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 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/astrid-core/src/local_transport/windows/acl.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b34d954f20be518f6e5005afe8d208c0819e850ece722aad4450675f8d964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:131-168 | crates/astrid-storage-provider-winfsp/src/main.rs:140-177 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d46657bc73f87480e3d7cfd5ce59d67af2dc4771e7a5234b493a92dedde0767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/acl.rs:57-92 | crates/astrid-core/src/platform_fs/windows/acl.rs:346-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/astrid-core/src/platform_fs/windows/acl.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae17ccc5d23965d6475872d5462921178ffdb6e516929ef48311bfdeb27e85fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): crates/astrid-gateway/src/revocations.rs:130-163 | crates/astrid-gateway/src/revocations.rs:196-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/revocations.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b248f0fd72cc0c21ccbac1123e2bd717a8eed9cdd6eb6a20c7e3d1a91d6470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201332 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:552-575 | crates/astrid-capsule/src/engine/wasm/mod.rs:600-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e8b8567b3e8065c4f3cde92720e7334b1fa1e870ab6277ed10dcc7c33506c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:141-171 | crates/astrid-cli/src/tui/render.rs:170-200 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"351314f441c754bc187ab59b1b1778df5d51d24a93d0ae90b3c39901b715243c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): crates/astrid-kernel/src/pair_token/durable_reservation.rs:76-105 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:131-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/pair_token/durable_reservation.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"78188d6aa8e25242d4eddecafa34b1f0dce3d7a879833de304f1e084a53c1d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/log.rs:90-115 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:72-100 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/log.rs\u0060 and \u0060crates/astrid-cli-mockup/src/ui/views/nexus.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02d84693680c3b0fc5bc250814e894a24d4cc2c8c49388c2516dc1ae8bd6159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): crates/astrid-core/src/groups/io_impl.rs:81-105 | crates/astrid-core/src/profile/io_impl.rs:130-158 \u2014 \u0060crates/astrid-core/src/groups/io_impl.rs\u0060 and \u0060crates/astrid-core/src/profile/io_impl.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 4 separate duplicated blocks between them, totalling at least 58 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/astrid-core/src/groups/io_impl.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8f3eeed70c06fd0d0c0ecf217883a28d1797a1f5b95cf4bf6439f14d82abd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/astrid-core/src/dirs_layout_retirement.rs:347-373 | crates/astrid-core/src/runtime_scratch.rs:210-236 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd70edf801971f1c1d8a2cfece94a7b6b549fd826f2cd55126e96886b6c4928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/astrid-audit/src/storage/append.rs:510-535 | crates/astrid-audit/src/storage/append_batch.rs:395-420 \u2014 before extracting anything, compare \u0060crates/astrid-audit/src/storage/append.rs\u0060 and \u0060crates/astrid-audit/src/storage/append_batch.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-audit/src/storage/append.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0646a8f642a99d76c70a32fbb94d858ab4278f93f22796746cc48796eba30be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:496-521 | crates/astrid-cli/src/tui/render.rs:748-772 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d2d316d143cde3bee7d8f55db616c34fa5f23282faaa735db9f770b987c40e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install.rs:799-824 | crates/astrid-cli/src/commands/capsule/install.rs:915-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/capsule/install.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f7638dc45c396d3c8f97952248ca7b8717f37f43476bcfd59b7208cec07d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): crates/astrid-core/src/platform_fs/windows/acl.rs:469-492 | crates/astrid-core/src/platform_fs/windows/acl.rs:602-626 | crates/astrid-core/src/platform_fs/windows/acl.rs:689-712 \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/astrid-core/src/platform_fs/windows/acl.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9607946e97d6dbde0fd662a6b6adccbbdcca3afa9cab06bdf15f6bb3335a365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): crates/astrid-audit/src/storage/append.rs:546-569 | crates/astrid-audit/src/storage/append_batch.rs:424-448 \u2014 before extracting anything, compare \u0060crates/astrid-audit/src/storage/append.rs\u0060 and \u0060crates/astrid-audit/src/storage/append_batch.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-audit/src/storage/append.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"68983db7b1078007d0a3d5643cf3b8a68738fb831e9904c88438563bed7478f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201325 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:1018-1028 | crates/astrid-cli/src/tui/render.rs:1567-1591 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e17044d8d0d91ba546e63336dd81c38b95d3c755358fe8949f3a272af7d6a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): crates/astrid-gateway/src/routes/auth.rs:106-130 | crates/astrid-gateway/src/routes/auth.rs:379-401 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/auth.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5613c8b31aa8c772fd8f794cc5ddad500fa85a5c5bdfd556d3fbebe01c043b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:85-108 | crates/astrid-cli/src/tui/render.rs:114-136 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"443cc4d71b77e5a15692c28a1f3ed17deee95297ef9603b1a9cb9a8f2eafb395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:533-556 | crates/astrid-cli/src/tui/render.rs:861-883 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"480159b7a9de074532c3f8b27f5e00e894ddf367676da83e1c6ffc8e8e2deb48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/astrid-capsule-install/src/archive.rs:341-362 | crates/astrid-capsule-install/src/local.rs:507-528 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/archive.rs\u0060 and \u0060crates/astrid-capsule-install/src/local.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-capsule-install/src/archive.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9bcc012172c9a46008f71b1f0b7677303d3aab9d959ee8b3d8abafc72fee73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): crates/astrid-core/src/local_transport/windows/acl.rs:316-336 | crates/astrid-core/src/platform_fs/windows/acl/ace.rs:237-258 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/local_transport/windows/acl.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/acl/ace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 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/astrid-core/src/local_transport/windows/acl.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bbe34e64007fe06f1c0bbd81cce90b5e6e6c0e5a4d5b3fd9573b8eaa7cc641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/ipc.rs:668-688 | crates/astrid-capsule/src/engine/wasm/host/ipc.rs:764-778 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/ipc.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9f7cce393ceb6661a0b8a3946da98e4c9c0fbdd0ce051bb5f678abe38d5b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:39-59 | crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:223-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/audit.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bd6ea233f9eca52beef58352401c2e5a21ce832fd32ace0252946160176127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:458-478 | crates/astrid-cli/src/tui/render.rs:710-729 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bf0ecc65f0418c7917c9a6ef7c0c382e04e9e9b7a04c8936efd524915a50cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:862-882 | crates/astrid-kernel/src/storage_mount/process_broker/process_cleanup.rs:282-302 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"93845c823f88c2b677db0cf07f239b96e7386f4cf3d87932864ab29d0bbf0a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/astrid-storage/src/resources/pool.rs:108-128 | crates/astrid-storage/src/resources/pool.rs:284-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/astrid-storage/src/resources/pool.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c2b970310b8f6dcaff5a3ad2a7424ccf9fd8afb2b1740296975bca5d69eafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): crates/astrid-telemetry/src/logging.rs:360-379 | crates/astrid-telemetry/src/logging.rs:389-408 | crates/astrid-telemetry/src/logging.rs:418-437 | crates/astrid-telemetry/src/logging.rs:446-465 \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/astrid-telemetry/src/logging.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"662f56099d47f031a171709425826462a2d18b2e0afdba7853b5b4cc8dc01e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:240-258 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:469-488 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:750-769 \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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"179df7a83b218b0d01c88122de505736b77550f68fa97e4e591cac4f9394a99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:261-279 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:495-513 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:776-795 \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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cb38e32012bf702921f649ea6b7f00d2b68872fb939172efc46de43909091f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs:236-255 | crates/astrid-uplink/src/native/handshake.rs:175-193 \u2014 before extracting anything, compare \u0060crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs\u0060 and \u0060crates/astrid-uplink/src/native/handshake.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-capsule/src/engine/wasm/host/net/handshake.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf8d52ff7ed278c1c549b9cfd7d502b651a9b5fddd2bebdab6d61ec77e3648f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:727-745 | crates/astrid-cli/src/tui/render.rs:1514-1532 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"8876b1e3e964419717b4f96cfe0d281676a25a49d53c75dea3c8c8c9b0284a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-core/src/dirs_layout_retirement.rs:52-70 | crates/astrid-core/src/dirs_layout_retirement.rs:105-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dde03dbd8348a89553553feba18236fe737b295aa15f6d4e4161c6228c0a435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-core/src/platform_fs/macos_acl.rs:127-145 | crates/astrid-core/src/platform_fs/macos_acl.rs:149-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/astrid-core/src/platform_fs/macos_acl.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"021added1321cf468a01b43717ca0c04350d2d4bc45680378d7152fb5322494f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-core/src/runtime_scratch.rs:71-89 | crates/astrid-core/src/runtime_scratch.rs:112-130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/runtime_scratch.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"14032e8ab15cf2e1e47a79eb171d9b0cd53f707cb5d32ac5aad2a07b64334357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:250-268 | crates/astrid-kernel/src/pair_token/mod.rs:265-283 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1668015860f3fffc7388bb961c8a6391d0bb9380061d0e5f1482e636adebb942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:102-120 | crates/astrid-storage-provider-winfsp/src/main.rs:111-129 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d695756d780072575da6a5a8db7ce1c168e2090cfd8b23c8ce1bc8e0f02a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): crates/astrid-capsule/src/discovery.rs:212-229 | crates/astrid-capsule/src/discovery.rs:237-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/discovery.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aaf2888b7aae9a3f73b734528b584ba3238b1d8fcc4ea0798ecfa0e0552b150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crates/astrid-core/src/dirs_layout.rs:165-180 | crates/astrid-core/src/dirs_layout.rs:220-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9e65a5a1c3791fd6e8dd463da051a95b0455bc143303db819b65cb22d81299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs:338-355 | crates/astrid-kernel/src/lib.rs:5539-5553 \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/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be9f043048a1fd6e01e93c83af8d5d4c5c0e7bd86ca7b69afa57f0f71185557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs:139-150 | crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs:358-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315a4fd07e535492adb5a09c8eaad254383bd0985dd711fa649cf6d54558e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_headless.rs:130-146 | crates/astrid-cli/src/commands/capsule/install_prompts.rs:124-140 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/capsule/install_headless.rs\u0060 and \u0060crates/astrid-cli/src/commands/capsule/install_prompts.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b47bf32412047f59c48ae93c450b3545c0382348456f404818d0d3ab7f08e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_headless.rs:196-210 | crates/astrid-cli/src/commands/capsule/install_prompts.rs:411-427 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/capsule/install_headless.rs\u0060 and \u0060crates/astrid-cli/src/commands/capsule/install_prompts.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"153f2e2d81801ee9ca618fc66bb533c20a8ba657215b759d1e196b0105db6ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/astrid-core/src/local_transport/windows/acl.rs:165-181 | crates/astrid-core/src/platform_fs/windows/acl/ace.rs:106-122 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/local_transport/windows/acl.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/acl/ace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 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/astrid-core/src/local_transport/windows/acl.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0d6065603cd6599d1c0fde6bc15bdb128c9d5a647e5eb8bbbd9f95b3898637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/astrid-emit/src/lib.rs:480-496 | crates/astrid-emit/src/lib.rs:504-520 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-emit/src/lib.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2582eac83d8e88e46e3243df35153c2779132ce675dfc0ca4e9437e12974978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/astrid-kernel/src/storage_mount/process_broker/process_identity.rs:41-57 | crates/astrid-storage-provider-winfsp/src/win.rs:475-491 \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/astrid-kernel/src/storage_mount/process_broker/process_identity.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da07de89cb83ce0ec72b132448ff2ea526ec03197e5e42527601bf3d686798e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:84-100 | crates/astrid-storage-provider-winfsp/src/main.rs:90-106 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d56efbd961b993b1edcf4c83498e03ed58d2d0ede3a39e3ae4b6e1efe9f748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/astrid-storage/src/engine/durable_cache/mod.rs:873-887 | crates/astrid-storage/src/engine/durable_cache/mod.rs:916-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable_cache/mod.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b80e4052220696bd5c8321645368a81485dcd6ea4c10b7d87c5505109df0c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/astrid-capsule-install/src/authority/leftover.rs:228-243 | crates/astrid-capsule-install/src/authority/status.rs:41-56 \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/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3b3f4b309988e3cf1a00e358bd1d667ffbe3b57d069439bde868f36c2ee903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201316 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:488-493 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:841-856 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6363c59f815a146f8aa48171eb0b19fe6f49b01d6bd7a049c6c56a8d8c5970fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:156-171 | crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:251-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/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bd64c2908d59cdad2e8d35867b808c293e3edf0916684e523dc76adc7785a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/astrid-cli/src/tui/mod.rs:744-759 | crates/astrid-cli/src/tui/mod.rs:775-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/mod.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"99efa9e0bc9fe2820eeaa287639cd7e8d3d15eefa99bab19a86283d6d68f2ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:225-239 | crates/astrid-kernel/src/pair_token/mod.rs:239-254 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b75301258f601042ad2bf1002235983fecf0c81309763f91c2f8fc6e1eeb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/astrid-kernel/src/invite/storage_migration.rs:81-96 | crates/astrid-kernel/src/pair_token/storage_migration.rs:97-112 \u2014 \u0060crates/astrid-kernel/src/invite/storage_migration.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/storage_migration.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 5 separate duplicated blocks between them, totalling at least 43 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1687048b1371985217b70ae5bc47132c25fadfd7635cea0eb897a48f3df3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/astrid-kernel/src/principal_home_migration/unbound.rs:290-305 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:288-303 \u2014 before extracting anything, compare \u0060crates/astrid-kernel/src/principal_home_migration/unbound.rs\u0060 and \u0060crates/astrid-storage/src/principal_state/unbound_legacy.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-kernel/src/principal_home_migration/unbound.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"738678db6b2992e3736c8beaf2487b2f0d5802981dd1b564370dfbd6c5d4c002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/reader.rs:65-80 | crates/astrid-storage/src/engine/durable/roots.rs:413-428 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/format/reader.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/roots.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/reader.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"285dee47e02c24d2e94066b82e870ea535892d4429c341fa18a373469bb65a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_headless.rs:106-120 | crates/astrid-cli/src/commands/capsule/install_prompts.rs:100-114 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/capsule/install_headless.rs\u0060 and \u0060crates/astrid-cli/src/commands/capsule/install_prompts.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7c87c9fccd897fddc2539fa3ae4e3d2bbd69e1349b425872c0dbe68b64c5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_headless.rs:282-296 | crates/astrid-cli/src/commands/capsule/install_prompts.rs:466-480 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/capsule/install_headless.rs\u0060 and \u0060crates/astrid-cli/src/commands/capsule/install_prompts.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba62000943171bf2e609c54ca622313397e3460fe9c50ba162b85f3e5a706a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-core/src/dirs_layout_records.rs:302-316 | crates/astrid-core/src/dirs_layout_records.rs:397-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/astrid-core/src/dirs_layout_records.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17266060596c6bbd1e8ba86b182b36a9777c14dce268aa4e1cede124ab34ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-core/src/local_transport/windows/acl.rs:106-120 | crates/astrid-core/src/platform_fs/windows/acl/ace.rs:77-91 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/local_transport/windows/acl.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/acl/ace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 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/astrid-core/src/local_transport/windows/acl.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43cd6c4ee8b1760ff0fffd55367393bdb5d94517f36e9b5ef52c817666f97df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/executable.rs:276-290 | crates/astrid-core/src/platform_fs/windows/private_file.rs:210-224 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/platform_fs/windows/executable.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/private_file.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-core/src/platform_fs/windows/executable.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbe746ecca19b8ed082f57117410f9cdf5857fb9a4dd0637d06d43ee6415fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-events/src/bus.rs:536-550 | crates/astrid-events/src/bus.rs:670-684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-events/src/bus.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bb27f55a4e247e4175f55cd11f965e5c8255468f1783c7bf8911a18aeb8e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-kernel/src/capsule_materialization.rs:81-95 | crates/astrid-kernel/src/lib.rs:616-630 \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/astrid-kernel/src/capsule_materialization.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24aeed51ec72b05acabf95b4e000c870288a00a53aa6f59e415765c7036afbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:737-751 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs:97-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c4a743eb23e88d0a18150dd15bd2c3663c70cc03fc34e9883223e096fbf125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/indexed.rs:55-69 | crates/astrid-storage/src/engine/durable/format/indexed.rs:262-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/indexed.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecc206421139074a27e14e5ec883a1aee01e1e18e265ae30d5226d81e6996b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/indexed.rs:218-232 | crates/astrid-storage/src/engine/durable/format/mod.rs:78-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/indexed.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88606635098e0d8faaa2609340c2d8af6e877ab73244885f5d5daebeebbc818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/astrid-build/src/rust.rs:473-486 | crates/astrid-build/src/rust.rs:491-504 | crates/astrid-build/src/rust.rs:508-521 \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/astrid-build/src/rust.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d352fa95507e07c3db44e3c17a15508c9d1a650131da5cdb829f3f1365ac2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-capsule-install/src/authority/leftover.rs:70-83 | crates/astrid-capsule-install/src/authority/leftover.rs:155-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a360331189deba4d2f2a5e8a51699d1fc125d96a284e8b469953f0f48346e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-capsule-types/src/manifest/topics.rs:64-77 | crates/astrid-capsule-types/src/manifest/topics.rs:167-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-types/src/manifest/topics.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f6c8eaf28ddb7462ecdc370f63e1e1fd62c1627f7c4f78ef8664f87616817b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:69-82 | crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:132-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/audit.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4c1c36674481381c3d0f14607f23673a76233233bd86dfd1ff29f7ebe3602b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:209-220 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:424-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"141e99a390e47e9f26d6aa8ea5689645bd323fb3183e2ce9a9fff8c28d546014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:289-302 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:527-540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2a93415fd121001d182693343cc8864e1b88cebee659355185303b53e1e264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:777-790 | crates/astrid-cli/src/tui/render.rs:289-302 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"804cd080c0148d83067ad9758a97f349c5895f291b444ef4493d2ec21922ed8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/log.rs:44-57 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:280-293 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/log.rs\u0060 and \u0060crates/astrid-cli-mockup/src/ui/views/nexus.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ffae65cb994deae907e4bd429a3e197e2a9ed1f9c6670c36e08527b0bccea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_update.rs:215-227 | crates/astrid-cli/src/commands/capsule/install_update.rs:312-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/capsule/install_update.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b66f2c8108ba34be0656a874ffb597b2c7077dbe92be76328e8793d25620e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-cli/src/tui/state.rs:143-156 | crates/astrid-cli/src/tui/state.rs:257-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/state.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67749d4c6a12ae25a027a45862b91d7c20a552514de581c637926ea49e31f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-core/src/identity/ownership.rs:436-449 | crates/astrid-core/src/identity/principal.rs:259-272 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/identity/ownership.rs\u0060 and \u0060crates/astrid-core/src/identity/principal.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/identity/ownership.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa306808f2e7e620aa95ff80abc4290eb31cec6e56878d91780faa1e74772813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/executable.rs:433-446 | crates/astrid-core/src/platform_fs/windows/private_file.rs:427-440 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/platform_fs/windows/executable.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/private_file.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-core/src/platform_fs/windows/executable.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"df24cb68d35babab4769e0936f3e52593dad25077176bcb6b468360b7f8f376c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-hooks/src/handler/command.rs:213-226 | crates/astrid-hooks/src/handler/http.rs:94-107 \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/astrid-hooks/src/handler/command.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bfbf6b4452d3e4af28ba5c75fa7f0d83b29dfc820b78017b42c0bd8ab82815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs:43-54 | crates/astrid-kernel/src/kernel_router/install.rs:605-618 \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/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c6ff097e36ecb77f23cd6e955c018804bcbfe1ef6bb08eb6eb83e8a6aa5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:64-77 | crates/astrid-storage-provider-winfsp/src/main.rs:70-83 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"665879e3a8ff7d8c642ad0379dfa37a8bc497248eeaea1365a7c17d7c9718a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/main.rs:356-369 | crates/astrid-storage-provider-fuse/src/main.rs:387-400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/main.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b891ab1d73c17067df5a8a8d64467f5d4d3b01ec986bbb1a6c010110da4cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage/src/content/catalog/tree.rs:224-237 | crates/astrid-storage/src/content/catalog/tree.rs:263-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/catalog/tree.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593f832663bcf0030d8b19877461bad92deda86b57e02efebdf41194f05e6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/astrid-storage/src/content/store.rs:342-355 | crates/astrid-storage/src/content/store.rs:418-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"870046ae0d4be2d7e9f09c621caefaad63fa2a436242b48c7669720cc9cf73cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage/src/engine/kv.rs:630-643 | crates/astrid-storage/src/kv/tree/legacy_avl.rs:319-332 \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/astrid-storage/src/engine/kv.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd37e9877e468567e5a5425c4c3c850c92b24f9021a03ab62810a2ab97c1b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage/src/kv/surreal.rs:246-259 | crates/astrid-storage/src/kv/surreal.rs:277-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a137458b604242b72c09be456204325eb96ef7c82699fa90c32fd2e59fa74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:360-373 | crates/astrid-storage/src/principal_state/native_io.rs:396-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d15db2ccf1b9489ebf66c5b7f4f8dba9f5bbb6d2f58dd206353e4cd913fb1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-storage/src/storage_model/proof.rs:109-122 | crates/astrid-storage/src/storage_model/proof.rs:260-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/storage_model/proof.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba3c5bc49fe5bcf679d0acffb09da18218c55a6d66f6be26d667b39b1e5bb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:235-246 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:289-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3647e4f85fa0abc6aad9d00ce6bfc2c149877e5456f3e03a30ef9fc46261015d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:558-568 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:604-616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0499ad1643f7339726410f3d291900e2f3871c2bd93d819703c93aaff7f6028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:374-386 | crates/astrid-cli/src/tui/input.rs:802-812 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a044af648549fd6974947024be7ff4b1950d90c80402b5a39d033d3b128b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:109-121 | crates/astrid-cli/src/tui/render.rs:138-149 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"16249f303a98eca4f2ecdd20f053c8051850aa39d54e159e48f0c86b9d2179a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 2): crates/astrid-events/src/route/entry.rs:381-393 | crates/astrid-events/src/route/entry.rs:528-535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-events/src/route/entry.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"68542435e58c16f9071b06b8ac593afb6b5c8d985f95e1559a035d50b457d31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): crates/astrid-hooks/src/discovery.rs:143-155 | crates/astrid-hooks/src/discovery.rs:163-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-hooks/src/discovery.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef8b63265ee7e04c28ec8b59e44b0606605422896404d591d90b758960ffdf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:601-613 | crates/astrid-kernel/src/pair_token/mod.rs:570-582 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccfed66ca2b1ca362173dff65ce1bdc006b6507d42e5a7dc656cc70b6652c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-storage-chunker-evidence/src/algorithm.rs:69-81 | crates/astrid-storage-chunker-evidence/src/algorithm.rs:104-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-chunker-evidence/src/algorithm.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa75405452eae6d0ce6d7dca2c473ccbc264632b4ad9b6ec9790337bd067198b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:312-324 | crates/astrid-storage-provider-winfsp/src/main.rs:322-334 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"328d8f4e3fec1b453d84c68ee74a873ad075954522c26448391b8353ddeb55e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-storage/src/resources/pool.rs:173-185 | crates/astrid-storage/src/resources/pool.rs:342-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/resources/pool.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"512fbda15d1be03982e82209e91915a67e422c07f62e9065101cae32f71572a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs:68-79 | crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs:138-149 | crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs:357-368 \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/astrid-kernel/src/kernel_router/admin/invite_handlers.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0409e1d3003dd624f36ee2b261eaae2e1b83cc01dbce5e36ba13c7fba6d01893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/astrid-kernel/src/pair_token/durable_reservation.rs:254-265 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:280-291 | crates/astrid-kernel/src/pair_token/mod.rs:420-431 \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/astrid-kernel/src/pair_token/durable_reservation.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc372a24cb0fad1a620bb847709e685460fd6f8eb10bde6abad47de190da840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/astrid-storage/src/engine/durable_cache/mod.rs:136-147 | crates/astrid-storage/src/engine/durable_cache/mod.rs:221-232 | crates/astrid-storage/src/engine/durable_cache/mod.rs:403-414 \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/astrid-storage/src/engine/durable_cache/mod.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8949d9531f76a6356bd54a36a2cd2db11db01b950784303fa05d9898a430ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/astrid-capabilities/src/store.rs:107-118 | crates/astrid-capabilities/src/store.rs:128-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capabilities/src/store.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51520455010c04ee4cb01c2e16f2fa6553c1dcba784fb4b2d7c9b0126501850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule-install/src/contracts.rs:105-116 | crates/astrid-capsule-install/src/contracts.rs:173-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/contracts.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e299819e9152d0543871ef5574fffb39afccc0d443921d94c33a9e4d1c01d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/approval.rs:326-337 | crates/astrid-capsule/src/engine/wasm/host/consent_egress.rs:291-302 \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/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3c6d1a86ccdcf1327fbfc8aad762fd834eeb2ddbf2e4cfbc15363aeb173fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:137-148 | crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:221-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cca009d65cc87eb86088abebdcfdffeff4b0a0634af03b2c52c0449cf391a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:299-310 | crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:66-77 \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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9793d9d0432144f38c6135bd0451b8ac1fcd190b044f16c3e4177c03152ce4c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:1983-1994 | crates/astrid-capsule/src/engine/wasm/mod.rs:2030-2041 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a49c4ffada36b05e3c0e68c0bf39a9168deae1a6d271ce2e0b5dd4648b6cfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:484-495 | crates/astrid-cli/src/tui/render.rs:736-746 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a74c32bae7fe55de3fc3d6fc0f1a612bd3361b05644aa72d25de778e196c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:618-627 | crates/astrid-cli/src/tui/render.rs:947-958 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3503eaed4bea85a754eb76ce72bf5c89578a3a9eddfa39e9e35185f2568ba72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:1057-1068 | crates/astrid-cli/src/tui/render.rs:1642-1653 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66f7b916019062955603a9b1920e2fa1c9f0a2c5a3c438e3630623f1a5121ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/chain.rs:101-112 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:136-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/chain.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c904d1cc4c358ea5088750470b86a0e81c24fd0e0ad97082554a4238c6c50f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/nexus.rs:55-66 | crates/astrid-cli/src/tui/render.rs:641-652 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/nexus.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cb0f7b9ca451aea0e47b09012adcfc4b2ab7a6e88f63035444b7a6ca0e213f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-cli/src/commands/ps.rs:47-58 | crates/astrid-cli/src/commands/who.rs:56-67 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/ps.rs\u0060 and \u0060crates/astrid-cli/src/commands/who.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/astrid-cli/src/commands/ps.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"37684979d33fc3391016c52d008e8d3d82d9b8830b874b4febc011f14a23a077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/astrid-cli/src/tui/render.rs:1214-1224 | crates/astrid-cli/src/tui/render.rs:1349-1360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/render.rs"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fc788d10b8f30a2f425913e07d92877d7a795b19745a9261f14fb4ab14b725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-core/src/dirs_layout_retirement.rs:42-53 | crates/astrid-core/src/dirs_layout_retirement.rs:273-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d5e2af1a400e4bf064710cd3f0e65beb50675e217755ad9d0eca69b85b556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-core/src/groups/io_impl.rs:110-121 | crates/astrid-core/src/profile/io_impl.rs:163-174 \u2014 \u0060crates/astrid-core/src/groups/io_impl.rs\u0060 and \u0060crates/astrid-core/src/profile/io_impl.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 4 separate duplicated blocks between them, totalling at least 58 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/astrid-core/src/groups/io_impl.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa0fa6f950c4863c93531bab2347490ee2882d00c2cfccf9413a7d5dda54ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/path.rs:191-202 | crates/astrid-core/src/platform_fs/windows/path.rs:852-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs/windows/path.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bebcf5bc936e3f32b508504a0c9778f855b0402d1e388a9025a1138fe4e39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/group.rs:125-136 | crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:717-728 \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/astrid-kernel/src/kernel_router/admin/group.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"98948a846233368ff58bb2f7a6b5863c49f7210e2c91f8741faba2bcbf127132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/pair_device_handlers.rs:122-133 | crates/astrid-kernel/src/kernel_router/admin/pair_device_handlers.rs:350-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/pair_device_handlers.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"204b8a6fd90deb3818702233f4cf5bda62269b93b18ae75b04ceff361a77e59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:499-510 | crates/astrid-kernel/src/lib.rs:4323-4333 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da34faf0f451fb95d5477fd66242605e0fc265c6913a7c408c0fb20935b0299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/content_dag/boundary.rs:132-143 | crates/astrid-storage/src/content_dag/boundary.rs:144-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content_dag/boundary.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"260b0bbc96731f7b0aae83f3c4ee78a14b0355139e69e4ef21d452be7a49fa13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/engine/durable/native_io.rs:158-169 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:103-114 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa7b0dff633912da890aaa442e48715c82766299533082c29505501b11b9a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/mod.rs:166-177 | crates/astrid-storage/src/engine/durable/representations/volume.rs:47-58 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/representations/mod.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/volume.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8607de02c839f0c3b54d390d3586ad9630d2beac8e2dedde04ef2514dd794a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/env.rs:325-336 | crates/astrid-storage/src/env.rs:387-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/env.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1caf2c6df3e5cfab5dcb3d4d728deda55954c6ddb747ad16aa78e203a124b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/kv/tree/context.rs:611-622 | crates/astrid-storage/src/kv/tree/header.rs:449-460 \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/astrid-storage/src/kv/tree/context.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f9e9c9c964e156e1a99a3a0a162049295d9470bf0a8b012ff9c30efc95e9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/kv/tree/overlay.rs:140-151 | crates/astrid-storage/src/kv/tree/overlay.rs:158-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/overlay.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"80084ff0aaaea5c1164f87a3fc9a6eed9e17e7775222c10c1fc705c23da109e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/principal_state/runtime_tree.rs:558-569 | crates/astrid-storage/src/principal_state/runtime_tree.rs:811-822 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6e79e0cda0344bad425c71205a4fb9d2e4112bdd7f991c1d4d99f48ef5e599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): crates/astrid-uplink/src/socket_client.rs:261-272 | crates/astrid-uplink/src/socket_client.rs:293-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-uplink/src/socket_client.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d415d311f31565ed628293e0b2890841b0d55d811538df2fab7581719c38ac1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/identity.rs:31-41 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:102-110 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:136-144 \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/astrid-capsule/src/engine/wasm/host/identity.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"80faee225815b95fc06a902cf85e215d44957d9804210207d35ff289b958b42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/astrid-storage/src/content/store.rs:159-169 | crates/astrid-storage/src/engine/kv.rs:634-644 | crates/astrid-storage/src/kv/tree/legacy_avl.rs:323-333 \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/astrid-storage/src/content/store.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7aa4dcc02f79fa05b854b00ad5d5a58c991d1ec455ad7494ecb9fea0740c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/astrid-storage/src/engine/durable/native_io.rs:158-168 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:103-113 | crates/astrid-storage/src/principal_state/native_io.rs:201-211 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b423620dd4baf61c9b17d7742b713ec7c9d7d0998f4ce932e3dedc946fd389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:411-420 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:478-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f234f366d32f44bc882c1fca57cccd2ea7ebe17c2a78d654ecb439a61f4caf23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/http/backend.rs:508-518 | crates/astrid-capsule/src/engine/wasm/host/http/backend.rs:648-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/http/backend.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"138d09b61858bcb7044999e0bfadf988fd277481738c3c9011108d26ba58c604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:55-65 | crates/astrid-cli/src/tui/render.rs:86-96 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acf57f70c06cfd63596d117e8aed99283ea309f50c5b121d6a69bad04bac0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:203-213 | crates/astrid-cli/src/tui/render.rs:232-241 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1af6fdb981d48c12be6a5833f0effc09058631db84a1a0e1fce09bef0593a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:577-587 | crates/astrid-cli/src/tui/render.rs:366-376 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ca1f3cbd0e748e33c7015495e6789962b4974fedde9731c59d630f3658086d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/log.rs:21-28 | crates/astrid-cli/src/tui/render.rs:525-535 \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/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f11335c8a10166865722e5165bccfb36b48f44055f0e104b431bf59517c796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-core/src/dirs.rs:377-387 | crates/astrid-core/src/dirs.rs:474-484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"4969bcbc4d628072a402c7be513e36eb19e847e971eaf153759ae425d1e1d8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/astrid-core/src/runtime_scratch.rs:40-50 | crates/astrid-core/src/runtime_scratch.rs:129-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/runtime_scratch.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbeb4f54f4f88af6c313970b73e76c6a300f9c73ee70e1eb4a90e150dce57d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): crates/astrid-gateway/src/routes/sessions.rs:468-478 | crates/astrid-gateway/src/routes/sessions.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/sessions.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"414078e04ed1ff02bf520e684ca26d5c6fed3d3222aa1e5dbfba0f20ed1f06aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/resume_receipt.rs:24-34 | crates/astrid-kernel/src/kernel_router/resume_receipt.rs:76-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/resume_receipt.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd77fd32a2931bccff5ba70a2cc4905ea65a7f2230dbab052cf155cca47a182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/filesystem.rs:391-401 | crates/astrid-storage-provider-fuse/src/filesystem.rs:422-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"114d86d312598bf1de5f650c006d0121e98eff014b25d153fd515a24cb64ba77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): crates/astrid-storage/src/content/store.rs:330-340 | crates/astrid-storage/src/content/store.rs:408-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d18efb5373172761ff4e9e8c2eabc6be3fa16d97e4bb0ef046c1db9c6f850f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/content/store.rs:637-647 | crates/astrid-storage/src/content/store.rs:656-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f0024b0a2bba422536ec94a2bc13caf0f6b45cb07cd6ae49b67b3c6d958a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/content/store/projection.rs:422-432 | crates/astrid-storage/src/kv/tree/legacy_avl.rs:465-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/projection.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d895d0ed1e78c7f86648bc8db634c769ecf3837912dc7d5004dd1040fec494d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/content/store/workspace/filesystem.rs:92-102 | crates/astrid-storage/src/filesystem.rs:469-479 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/content/store/workspace/filesystem.rs\u0060 and \u0060crates/astrid-storage/src/filesystem.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7fcd3e7457f82c51aa7cce7821ffffe0f0daaed202345bd436ffedef72eb87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/astrid-storage/src/content_dag/mod.rs:390-400 | crates/astrid-storage/src/content_dag/read/traversal.rs:788-797 \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/astrid-storage/src/content_dag/mod.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9404aaddaa08a85494bcb3b4899b64b03a993dae261c79a3f8e34d0e8aae922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/mod.rs:153-163 | crates/astrid-storage/src/engine/durable/format/mod.rs:462-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f48edfdbb609d17174c67272e928c33d41074b9de5d8a6199dc37a1b057827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/engine/durable/index/mod.rs:155-165 | crates/astrid-storage/src/engine/durable/index/mod.rs:184-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/index/mod.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"69465c5a1cafb5a028fab8635b6ae0558b731180bf10e359bc23df446c7034b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/astrid-storage/src/engine/durable/native_io.rs:16-26 | crates/astrid-storage/src/engine/durable/native_io.rs:35-43 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaf754834970f61c22cd14acdcf69cf32c07551723f4e9c8a1fc543b0510476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/engine/durable/wal/scan.rs:315-325 | crates/astrid-storage/src/engine/durable/wal/writer.rs:246-256 \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/astrid-storage/src/engine/durable/wal/scan.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6de4be5a53767dcc95c7951591d5e3e5950a52b37445e2a4afc9ed346556cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/env/legacy_import.rs:253-263 | crates/astrid-storage/src/env/legacy_import.rs:270-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/env/legacy_import.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0644fca64b8e9a3bdace7ebe897036d7689f7866502b7488e04c1b9e4520dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:499-509 | crates/astrid-storage/src/principal_state/native_io.rs:664-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed3b8c1e20b02a09714e83ad4f2449f2a1e25818910f58d45ad14ab2f882473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/resources/pool.rs:140-150 | crates/astrid-storage/src/resources/pool.rs:312-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/resources/pool.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dcc14d1ee9d9203e9228f6e618047396914f0b41078becbf6b88539b1c32cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:371-381 | crates/astrid-storage/src/volume/hosted/mod.rs:397-407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0023fb1b09173c865477eee105008f3b4bf39d8704960214718cd972766fc278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/open.rs:78-88 | crates/astrid-storage/src/volume/hosted/reclaim.rs:83-93 \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/astrid-storage/src/volume/hosted/open.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c4d6056175f32d0c842d06744bde2a7143edf7ede41c3c79f675c0d781d1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/astrid-vfs/src/overlay.rs:127-135 | crates/astrid-vfs/src/overlay.rs:193-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/overlay.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"05268fb54e3c2f76b20561b3b2e82466088b68083e2633c41d827b80ae8fd101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/approval.rs:323-331 | crates/astrid-capsule/src/engine/wasm/host/consent_egress.rs:288-296 | crates/astrid-capsule/src/engine/wasm/host/elicit.rs:143-152 \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/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab65b1ff980c473a0bc740f9647353c4d211c8c47c7e2b85aaf7873afca7561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/astrid-storage/src/content/store.rs:480-489 | crates/astrid-storage/src/content/store.rs:561-570 | crates/astrid-storage/src/content/store.rs:688-697 \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/astrid-storage/src/content/store.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f473ea10bba46e74a644ca7d34aae7e8293b1ed09cb1fe5b8b8731c7a12d715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-build/src/archiver.rs:298-307 | crates/astrid-build/src/artifact.rs:468-477 \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/astrid-build/src/archiver.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"099aaecea97ab5aa555ae47aab346b9e038ca2551a787c16bacba1c271673f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-capabilities/src/store.rs:793-802 | crates/astrid-capabilities/src/store.rs:823-832 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capabilities/src/store.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eec34de0847b426630b0c28e884f542015fe99d30d57f01bcbe7a49363d3735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-capsule-install/src/authority/leftover.rs:272-281 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:265-274 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/authority/leftover.rs\u0060 and \u0060crates/astrid-storage/src/principal_state/unbound_legacy.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf581d77a7dd8be9050ca791c23d786ad00a8ee4f28b37a6cb00d61f9e79ab99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:28-37 | crates/astrid-vfs/src/host.rs:20-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/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"920d7ad775259fc4c91d205300d15658e101d59133b712ef8c483c5d1830d0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:38-47 | crates/astrid-cli/src/tui/input.rs:551-560 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea7748df27cd43e3aaaeaa6d421cdfa46b28c829aa11344c9a43820b5c2b385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:219-228 | crates/astrid-cli/src/tui/render.rs:248-257 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2a037106c2c6ec793a829a7bb13f11a03c81684d72de65f01a41eece0e3dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:522-531 | crates/astrid-cli/src/tui/render.rs:774-782 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02d431c3058071d6f637fba29fe81d230f7ae302ddd721c4f8e7c372d24819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli/src/commands/daemon/temporary.rs:27-36 | crates/astrid-workspace/src/sandbox/mod.rs:632-641 \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/astrid-cli/src/commands/daemon/temporary.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"171051b6f54347015757a59e7ac68c7df16a466572c7edfa5ddd127d4b1ba3d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli/src/tui/state.rs:212-221 | crates/astrid-cli/src/tui/state.rs:310-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/state.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3ec049c88ae163a8e977d62a942c82df98b5731258ae14532baf5fa01d429a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/executable.rs:355-364 | crates/astrid-core/src/platform_fs/windows/private_file.rs:292-301 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/platform_fs/windows/executable.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/private_file.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-core/src/platform_fs/windows/executable.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4851bf83e2a00ce3f49faa29487925598e52d1f374f79aec049865ee41e07d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/io.rs:728-737 | crates/astrid-core/src/platform_fs/windows/path.rs:591-600 \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/astrid-core/src/platform_fs/windows/io.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"83562ebdb4748df6a8448286da13cd0246fcc53bd4a22c26c51d97807cb3e247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/astrid-gateway/src/routes/groups.rs:121-129 | crates/astrid-gateway/src/routes/groups.rs:156-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/groups.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e83cac36c73ca528b4c71007e84c3996a4a2f0a61acf1cdb8f614d826b21c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:460-469 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:277-286 \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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f910d72d60a7ca5d5806df1457840b833ee3d4af9553bf07a6e7579db8429a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:514-523 | crates/astrid-kernel/src/pair_token/mod.rs:485-494 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26b16b89c0f9489ab301c17a5d103c72a7e940ba9c6a199736c04f5169f3d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:579-588 | crates/astrid-kernel/src/pair_token/mod.rs:548-557 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5db3d84a36a11c03043a0c5d0467b4d58d767e7b8bd9013d3cf02bf16a1e18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/derived.rs:188-200 | crates/astrid-kernel/src/kernel_router/admin/agent_delete.rs:337-346 \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/astrid-kernel/src/kernel_router/admin/agent_create_helpers/derived.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d56b62c6fb05a4ab32db4ce355783f2afd29139ad51b1936e3b6bde7ef1a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs:48-57 | crates/astrid-kernel/src/principal_home_migration/mod.rs:867-875 \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/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb58c211eaed0cfdc86b14d96716a31ecc5db3052386d870ee92e10fddeadaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/lib.rs:2460-2469 | crates/astrid-kernel/src/lib.rs:2579-2588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0351a95393781241c87c30d4accef790c7514d7a7e5840d00ddfc56f360ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:600-609 | crates/astrid-storage-provider-winfsp/src/main.rs:448-457 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f81868d09aed4e2e60d75c9ba8c7997857a5f0dff2382679b734850364c2d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:61-70 | crates/astrid-storage-provider-winfsp/src/win.rs:172-181 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/win.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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a85ca5672e212f186a0523bfe0a69c63fd39401a68c26ede88f769b0998c3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:307-316 | crates/astrid-storage-provider-fuse/src/service.rs:154-163 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff507cae2a526f333c9662f99422bae4d6a706e47604e17c914401038a07fcb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/filesystem.rs:435-444 | crates/astrid-storage-provider-fuse/src/filesystem.rs:447-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5365cad10a180d1110a78ad88edfdf15f6ae30e48d48ba8c9e6a09979367b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage-provider-winfsp/src/win/filesystem.rs:233-242 | crates/astrid-storage-provider-winfsp/src/win/filesystem.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-winfsp/src/win/filesystem.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c38c743ce788defddc37065f26c4ca22ee5d859744158bbe9022a3dab672500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/content/store/bulk.rs:742-751 | crates/astrid-storage/src/content/store/bulk/admission.rs:129-138 \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/astrid-storage/src/content/store/bulk.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2df20ee0173fa39dede288ae5bce78bdb2caee669859e115f1bc04859652d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/mod.rs:196-204 | crates/astrid-storage/src/engine/durable/representations/volume.rs:80-89 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/representations/mod.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/volume.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8f05884bba45b6b226a4c3d83387b2e27774e86472b869cf8acbd5777502e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/mod.rs:207-216 | crates/astrid-storage/src/engine/durable/representations/volume.rs:91-100 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/representations/mod.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/volume.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59211e8095ad82c616325876adb0e7b4660df64f0d8c168075f93552519074d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/mod.rs:219-228 | crates/astrid-storage/src/engine/durable/representations/volume.rs:104-113 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/representations/mod.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/volume.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"147413a4ed061d978a24fea3724884fe679c7ffdc37abe432830f09144625857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable/validation.rs:49-58 | crates/astrid-storage/src/engine/durable/validation.rs:154-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/validation.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c461e46ae72485618b6b33f11deb55a726f0680817cf913dc18bed90ec2932a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable_cache/mod.rs:757-766 | crates/astrid-storage/src/engine/durable_cache/mod.rs:797-806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable_cache/mod.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ed4c17ebbb2005cdc767846c8c77ee12f1edbe2f27ebcb93774e0a2bf9b328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/astrid-storage/src/kv/surreal.rs:266-275 | crates/astrid-storage/src/kv/surreal.rs:299-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"92be048b391dcd634a38ef4eaf417752fbb953989d14dbae6ffc5d036152a9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/principal_state/staging/legacy.rs:134-143 | crates/astrid-storage/src/principal_state/staging/migration.rs:126-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/staging/legacy.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"028cb3543933f59acaad2aa20a958e4b24c1d267baa76131ffc81a9aa3eda8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): crates/astrid-kernel/src/pair_token/durable_reservation.rs:204-211 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:221-229 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:256-263 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:282-289 | crates/astrid-kernel/src/pair_token/mod.rs:409-416 | crates/astrid-kernel/src/pair_token/mod.rs:422-429 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/pair_token/durable_reservation.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74f35551dd06cafe3d1552144f401b36e18cebc62aa3248838b1d17d6bc0c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/astrid-cli/src/tui/mod.rs:104-112 | crates/astrid-cli/src/tui/mod.rs:611-619 | crates/astrid-cli/src/tui/mod.rs:754-762 | crates/astrid-cli/src/tui/mod.rs:784-792 | crates/astrid-cli/src/tui/mod.rs:808-816 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc12af2355d88b382360a6a4c6b4eeb685576a51cbcd44e830cb29014da82a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/astrid-gateway/src/routes/caps.rs:70-78 | crates/astrid-gateway/src/routes/groups.rs:124-132 | crates/astrid-gateway/src/routes/groups.rs:160-168 | crates/astrid-gateway/src/routes/principals.rs:191-199 | crates/astrid-gateway/src/routes/principals.rs:330-338 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/caps.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4262bcd5b4c4b08766c7f84f1f7af81741e187677a236685e3249e27c785fc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): crates/astrid-storage/src/engine/durable/native_io.rs:132-140 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:174-182 | crates/astrid-storage/src/principal_state/native_io.rs:501-508 | crates/astrid-storage/src/principal_state/native_io.rs:666-673 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"560251fbf5e5cb46aa9165598dc290a4f5cd6f5d5e1576d20729d09d01826fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-capsule-install/src/authority/leftover.rs:292-300 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:290-298 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:288-296 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/authority/leftover.rs\u0060 and \u0060crates/astrid-storage/src/principal_state/unbound_legacy.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b921d42d16786857101a10da159a9378be956298b06d8450465287db1c059a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-cli-mockup/src/ui/views/chain.rs:104-112 | crates/astrid-cli-mockup/src/ui/views/command.rs:79-87 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:139-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/chain.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf86e9497e76318d890a1d95c68dc623281c0775f06cb7116f4e6bc6e3c9bd27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-cli-mockup/src/ui/views/log.rs:31-39 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:268-276 | crates/astrid-cli/src/tui/render.rs:540-548 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/log.rs\u0060 and \u0060crates/astrid-cli-mockup/src/ui/views/nexus.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/log.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aa39b0fac740e556ef0ca72313863e72522dc8ccc5a725a834c0b6387fb109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-cli/src/commands/keypair/mod.rs:562-570 | crates/astrid-core/src/groups/io_impl.rs:94-102 | crates/astrid-core/src/profile/io_impl.rs:146-154 \u2014 \u0060crates/astrid-core/src/groups/io_impl.rs\u0060 and \u0060crates/astrid-core/src/profile/io_impl.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 4 separate duplicated blocks between them, totalling at least 58 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/astrid-cli/src/commands/keypair/mod.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b81aa2f0caffd4316059e0ff2772512aae92058a3ef768875ee7f65864a5ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-cli/src/tui/mod.rs:650-658 | crates/astrid-cli/src/tui/mod.rs:742-750 | crates/astrid-cli/src/tui/mod.rs:773-781 \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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"536d0bd1760049e8895fd942f771dbf2e0f098ee2d6197b4414b1a0f668e131a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-storage/src/storage_model/physical/placement.rs:286-294 | crates/astrid-storage/src/storage_model/physical/profile.rs:490-498 | crates/astrid-storage/src/storage_model/physical/representation.rs:408-416 \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/astrid-storage/src/storage_model/physical/placement.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1d2432be6e772b2334661e781f7e83884340ca385d2eddc8526abc5bf992be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-audit/src/storage.rs:461-469 | crates/astrid-audit/src/storage/anchor_marks.rs:74-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/astrid-audit/src/storage.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f3c2c9a5059fbe88af6bac37a520cc7e9632c6c76af14750c903db0d6a9739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-audit/src/storage/heads_page.rs:61-69 | crates/astrid-audit/src/storage/sealed_segments.rs:37-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage/heads_page.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a98903371f866f76be6bbe8afb4bc2b56b4d6397cbed4b84fa680678811212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-capsule-install/src/storage.rs:208-216 | crates/astrid-capsule-install/src/storage.rs:677-685 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/storage.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dabb0627c1d2dd5b3e5d609ed21ebe162364381a831a5ba60330b050db44bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-capsule-types/src/fuel_ledger.rs:370-378 | crates/astrid-capsule-types/src/fuel_ledger.rs:425-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-types/src/fuel_ledger.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"817ba21da75ca9eb2d6ca63e9f118217cf8a887eb787f45c61cdee04698847cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/io.rs:458-466 | crates/astrid-capsule/src/engine/wasm/host/io.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/io.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bcc39ba39903a0779769d9deb186d8c3ac8ba8f08d72c60f6f15a67d53125f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs:141-149 | crates/astrid-uplink/src/native/handshake.rs:117-124 \u2014 before extracting anything, compare \u0060crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs\u0060 and \u0060crates/astrid-uplink/src/native/handshake.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-capsule/src/engine/wasm/host/net/handshake.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c8f4933eac23ddcb8b98a8b6b1e99ae780a74eff9be8629a21cd3c64c56004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:658-666 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:672-680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"216c037556714ad916be06c3aa07eaa53b1402c288b98319252229366231d283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:179-187 | crates/astrid-cli/src/tui/render.rs:208-216 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b4968b413533092ba20186a3ff8cdce4ae9c3913253604aa5936b5b0733c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:683-691 | crates/astrid-cli/src/tui/render.rs:1472-1480 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"059cb74fb984f01e0bea8628de04bbf5c7673a3495c4b7a5ad9d7508730f439f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/command.rs:209-217 | crates/astrid-cli/src/tui/render.rs:1514-1523 \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/astrid-cli-mockup/src/ui/views/command.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9229f629f4c6703358d6c965f3e828703ce7e12b9c964d00ec8ab7eda27ec1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install_headless.rs:92-100 | crates/astrid-cli/src/commands/capsule/install_prompts.rs:89-97 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/capsule/install_headless.rs\u0060 and \u0060crates/astrid-cli/src/commands/capsule/install_prompts.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-cli/src/commands/capsule/install_headless.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2f694030a15e96116e73638865cd4e9281375af09bcc90a685a31fdffa5801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/commands/daemon_control.rs:78-86 | crates/astrid-cli/src/commands/daemon_control.rs:116-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/daemon_control.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"096255c4806335fcf3248928050a50e955a7c9ef6083f00488a913e493a65cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-config/src/merge/path.rs:14-22 | crates/astrid-config/src/merge/path.rs:40-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/path.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"915d6b8d781057453f06ed5ea3d9e99aa3e9d7e555ba7be50d6fccd1dc052b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-events/src/bus.rs:570-578 | crates/astrid-events/src/bus.rs:659-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-events/src/bus.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"698eb46973e0286037727b87faa127e0da1ec5d8cdc6363983d58f3314d386a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:428-436 | crates/astrid-kernel/src/pair_token/durable_reservation.rs:217-225 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b6fd7e0a598672d6e2844c413b7738c27d235f98c9d6d3174b191ea3a7e733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:438-446 | crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:485-493 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a5efc00bfb736207fad750ad0acc53ae42fb873998319f756eeeea52c24461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/mod.rs:649-658 | crates/astrid-kernel/src/kernel_router/admin/mod.rs:670-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/astrid-kernel/src/kernel_router/admin/mod.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5084ee79f1627ebb71b1a263f62a2ea207c2453edfb8a6bc69a216e1cb87e850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/mod.rs:410-418 | crates/astrid-kernel/src/legacy_migration_barrier/mod.rs:804-812 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd65d7de5d6fba0d0c76e74ec595bfedd2c8c8eebc25987a3c082070272012f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/retirement.rs:90-98 | crates/astrid-kernel/src/legacy_migration_barrier/retirement.rs:138-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/retirement.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0799e9e44cb6cfa85ec5105a585045303b19e4c048f1ea8672d058e10fb41275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/principal_distro_migration.rs:457-465 | crates/astrid-kernel/src/principal_log_migration.rs:460-468 \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/astrid-kernel/src/principal_distro_migration.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eec8fe748b2c3456641ef53f8f7c21bcabc59dd21fe320ddfe8e798bf0e6f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/principal_distro_migration.rs:537-545 | crates/astrid-kernel/src/principal_log_migration.rs:479-487 \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/astrid-kernel/src/principal_distro_migration.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c349e15a30eefb6837588c36de1faf0ad0d89cfea5d856d62fe85a5cbec17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/storage_mount/process_broker/process_identity.rs:23-31 | crates/astrid-storage-provider-fskit/src/service.rs:449-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount/process_broker/process_identity.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb27e7de39c9cdf7a34326a0e0f9a211004b090de7f98c2199a5fe962119c59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/main.rs:665-673 | crates/astrid-storage-provider-fskit/src/main.rs:688-696 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed819724d797227f515360cf9f9b86e79562530bfbbe17e3fec30f6beaec1379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/filesystem.rs:381-389 | crates/astrid-storage-provider-fuse/src/filesystem.rs:412-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ad71c5e100a7554a7ad67e531616bdf7dd28ff4b32315c850ed8ff485133f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/astrid-storage/src/content/store.rs:670-678 | crates/astrid-storage/src/content/store/bulk/publish.rs:40-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9910225d2d5b417c4b3e7e2625b9621704a02b5714b71bfdbad5938f7c9304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/astrid-storage/src/content_dag/stream.rs:151-158 | crates/astrid-storage/src/content_dag/stream.rs:166-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content_dag/stream.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f7072dec3c382f2311054bdd4b06fe5dc37c832a5c659cca9ea7e680c38964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/astrid-storage/src/engine/durable/validation.rs:45-53 | crates/astrid-storage/src/engine/refinery/sketch/mod.rs:488-495 \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/astrid-storage/src/engine/durable/validation.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ed63eacb6bdc943b353d966021711be9d1281e81f399bcdbbad512f406875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/engine/kv.rs:744-752 | crates/astrid-storage/src/engine/kv.rs:759-768 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/kv.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e586a43996481f190a0e98e829c69f164f32dcf5a1afb2d0d94ff65e5c0eddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:653-661 | crates/astrid-storage/src/volume/hosted/mod.rs:693-701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19cf3c8378586525b6c4f0676d64629718081b7d940d23a22a47b9591261efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/astrid-cli-mockup/src/ui/render.rs:151-158 | crates/astrid-cli-mockup/src/ui/views/nexus.rs:59-66 | crates/astrid-cli/src/tui/render.rs:180-187 | crates/astrid-cli/src/tui/render.rs:645-652 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0390893b88e341888a6e5f4abd398c5d15a1e248e2334fce74ee357599dcc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-capsule-install/src/authority/leftover.rs:271-278 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:271-278 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:264-271 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/authority/leftover.rs\u0060 and \u0060crates/astrid-storage/src/principal_state/unbound_legacy.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b7dfda3d66a6276b1dd46065ff82ed2c27ad76c9bc45c34a89a82d75ad600a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-cli-mockup/src/ui/views/pulse.rs:60-67 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:120-127 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:183-190 \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/astrid-cli-mockup/src/ui/views/pulse.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bb6f1d7f4a076453ea2a4bacc1dc00100afd55944feb3d11a07e95e2fc0810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): crates/astrid-cli/src/commands/agent/mod.rs:627-633 | crates/astrid-cli/src/commands/caps.rs:178-184 | crates/astrid-cli/src/commands/caps.rs:354-361 \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/astrid-cli/src/commands/agent/mod.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35e44120526289b4941a664d690ff3b572c0a26d114be64d2ad3dca5913c8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-cli/src/commands/capsule/local_egress.rs:203-210 | crates/astrid-core/src/groups/io_impl.rs:95-102 | crates/astrid-core/src/profile/io_impl.rs:147-154 \u2014 \u0060crates/astrid-core/src/groups/io_impl.rs\u0060 and \u0060crates/astrid-core/src/profile/io_impl.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 4 separate duplicated blocks between them, totalling at least 58 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/astrid-cli/src/commands/capsule/local_egress.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ffcb026a6184f91c9ad4b352b5728eb14a0ba821275dcc109c979b26479a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): crates/astrid-kernel/src/invite/mod.rs:382-388 | crates/astrid-kernel/src/invite/mod.rs:433-440 | crates/astrid-kernel/src/invite/mod.rs:466-472 \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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"823c850e566ca652aa97d90d1bb8a9b87f95911f20881afc1c255a9e1f315e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-kernel/src/storage_mount/process_broker/process_identity.rs:12-19 | crates/astrid-storage-provider-fskit/src/service.rs:438-445 | crates/astrid-storage-provider-fuse/src/service.rs:379-386 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-kernel/src/storage_mount/process_broker/process_identity.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0069541b4ac88f739d83ebc95e53e0dd94004117bde61f919aec4d320daf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-storage-provider-fskit/src/service.rs:88-95 | crates/astrid-storage-provider-fuse/src/service.rs:72-79 | crates/astrid-storage-provider-winfsp/src/win.rs:217-224 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1c4c95d55042af44d880c2eff687568d500e31144a0e006c2bee7679e50aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-storage/src/content/store.rs:540-547 | crates/astrid-storage/src/content/store.rs:633-640 | crates/astrid-storage/src/content/store.rs:652-659 \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/astrid-storage/src/content/store.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64e63950cb4b7505e17c0b841103e18bbd1ac06fa70bd11d66232c2f6294516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-audit/src/storage.rs:426-433 | crates/astrid-audit/src/storage/append_batch.rs:302-309 \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/astrid-audit/src/storage.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a572096ec447aa9b970370ad2c232756d8a31550e8869c28fc754849d14498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/astrid-capsule-install/src/wasm.rs:87-93 | crates/astrid-capsule-install/src/wit.rs:165-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/wasm.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e1a447d95890ca81ae091b15a10df69f7d7a6f2fb1a757d74d7448a54e4480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/elicitation/mod.rs:366-373 | crates/astrid-capsule/src/elicitation/mod.rs:455-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/elicitation/mod.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b949d317b9c276c33d716147383fb6dfcc0bdf52958786e636beb4d4ffe514b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:719-726 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:838-844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"428075db48c98616df4f9265844247139cad58eaab5b819243a507825df10ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/install.rs:284-291 | crates/astrid-cli/src/commands/capsule/install.rs:476-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/capsule/install.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a04c0bb73da1cb445a23770b7d3d738964fb2da731a3695da8b86c53f1e3399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-cli/src/commands/doctor.rs:227-234 | crates/astrid-cli/src/commands/doctor.rs:254-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/doctor.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9136cf69b86bccb882ece6b050f6f2e00143071168ed7512ba85101487961177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-cli/src/dispatch.rs:139-146 | crates/astrid-cli/src/dispatch.rs:148-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/dispatch.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec07d641b603996c54b85c1522cbc82b327d2e4cfa08da01979175ac04e4ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/astrid-cli/src/tui/input.rs:570-576 | crates/astrid-cli/src/tui/input.rs:597-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/tui/input.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9ae165bb9b9b7fdbf34d46d7ddbb0b76beefc7c19af6a3fe542e424259b772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-core/src/dirs_layout_retirement.rs:336-343 | crates/astrid-core/src/runtime_scratch.rs:199-206 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db12042f8400c0d5dd192517cc1f0f2fdbe259cd52d1ee188601eb1631bca2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-core/src/platform_fs.rs:546-553 | crates/astrid-core/src/platform_fs.rs:566-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/astrid-core/src/platform_fs.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"354852e79d7e078067b95964bb904c33ab4de66b2bfbc9750042971478818c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/executable.rs:493-500 | crates/astrid-core/src/platform_fs/windows/private_file.rs:498-505 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/platform_fs/windows/executable.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/private_file.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-core/src/platform_fs/windows/executable.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcd5a9b2862a3c644630a123bc1fe4f0a81af1a8b603c7c16e3d80cc4e31675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs:175-182 | crates/astrid-kernel/src/kernel_router/admin/handlers/capsule_assignment.rs:35-42 \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/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e8fee6aec7928e439010004640e6484a436342406aae9969d85caecd5086a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs:20-27 | crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs:67-74 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a6b3d86da8247b1c830c62653e7cc6eede420defe7588d44900bba72899f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:780-787 | crates/astrid-kernel/src/kernel_router/admin/handlers/user_principals.rs:87-94 \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/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61146f0443294052a6583a0e5750e1984db322d3eeaee934e79e1961f04ffd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/install_batch.rs:74-82 | crates/astrid-storage/src/principal_state/native_io.rs:846-853 \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/astrid-kernel/src/kernel_router/install_batch.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d344b99ce54a76c2350ea2b9c5a330597603e6cc1b963e20d4353e90317d725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/legacy_audit.rs:80-87 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:277-284 \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/astrid-kernel/src/legacy_migration_barrier/legacy_audit.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e14040533b14660b9ff3c8e81ced2b2a02da3900e2ea5c3ed3d65dbf196ee89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs:41-48 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs:134-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4708c722bc083d066be52480979f2f5a207034bd8a25230a8108879d8bfa04d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/main.rs:165-172 | crates/astrid-storage-provider-winfsp/src/main.rs:101-108 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fuse/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/main.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72fd2b41302f7827628f32dd6139657a087a3c013c73d12f4ccd6f61d511299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/content/store/bulk.rs:752-759 | crates/astrid-storage/src/content/store/bulk/admission.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/bulk.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"549e54b66ac6929af40584f5346b176def5364ac4f0e6b4cab04dbd427c36b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/mod.rs:137-144 | crates/astrid-storage/src/engine/durable/representations/mod.rs:146-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3a7602f5ff2b1555372c76858dd72059346f258a825934b74d91901e23e7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/kv/surreal.rs:378-385 | crates/astrid-storage/src/kv/surreal.rs:408-417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76463d2b383619ac7b17e90f06dba295b89a5833fe6343d8a6b6b75e23dbd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/kv/tree.rs:106-113 | crates/astrid-storage/src/kv/tree.rs:172-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"200f7a1867e24151df5e0d3d78097dbc8813532a49cac8d91235c9485adcc8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/principal_state/staging/journal.rs:164-171 | crates/astrid-storage/src/principal_state/staging/journal.rs:335-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/staging/journal.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"200bd14b7e946d8a32c94ea92071f54b3964e070731adc21154b095daec0fb4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-vfs/src/host.rs:323-330 | crates/astrid-vfs/src/host.rs:358-365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/host.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9f29f89f3c9074887a0b62a6fa2b4e0553e96902ad64c45d20fd14cc2919e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/astrid-vfs/src/workspace_cow/apfs.rs:76-83 | crates/astrid-vfs/src/workspace_cow/overlayfs.rs:165-171 \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/astrid-vfs/src/workspace_cow/apfs.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d364484ea8ed3189ac1a7b2f7a3c170f5903db87e80d137357ab7fd83ce87177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/astrid-capsule/src/engine/wasm/host/identity.rs:34-42 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:73-79 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:105-111 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:139-145 | crates/astrid-capsule/src/engine/wasm/host/identity.rs:175-181 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/identity.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c3b24c4b9e5845d78543a60720fc90d9c724d7954b777dc2b89d735c03ed18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/astrid-storage/src/content/store.rs:542-548 | crates/astrid-storage/src/content/store.rs:635-641 | crates/astrid-storage/src/content/store.rs:654-660 | crates/astrid-storage/src/content/store.rs:671-677 | crates/astrid-storage/src/content/store/bulk/publish.rs:40-46 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"34df043e2e366b8b5a97cfc49fc6aebf8a790fbc4eeb105360a1be17a8c8dd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/astrid-cli-mockup/src/ui/views/pulse.rs:59-65 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:119-125 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:182-188 | crates/astrid-cli-mockup/src/ui/views/pulse.rs:228-234 \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/astrid-cli-mockup/src/ui/views/pulse.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a588085a74744cba87bb5a473ab0742dbd40603f6d5e5b81ace7e22e32f8f60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:411-417 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:478-484 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:667-673 \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/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"0447097822e785cf4f8e38f1150185f0be4b092ff43e829e7c6ed3e5f27a41cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/astrid-cli/src/commands/daemon_control.rs:77-83 | crates/astrid-cli/src/commands/daemon_control.rs:115-121 | crates/astrid-cli/src/commands/daemon_control.rs:137-143 \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/astrid-cli/src/commands/daemon_control.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d59c9e1fcc4fadeb944be22ee12f87a4014d90d8860b633e01e058f1a93fe90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): crates/astrid-storage/src/kv/surreal.rs:239-245 | crates/astrid-storage/src/kv/surreal.rs:270-276 | crates/astrid-storage/src/kv/surreal.rs:303-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc38e6d1e03b6de42eb2e06060c4bbbe10f592dcc8036cec0c849b9cfb9c97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/astrid-audit/src/host_call.rs:245-250 | crates/astrid-kernel/src/audit_sink/coverage.rs:62-68 \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/astrid-audit/src/host_call.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf10c94591582c08f74d671ebfbcda8a178498a98cfaaae48b743fbe02f287a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-capsule-install/src/authority.rs:393-399 | crates/astrid-crypto/src/key_storage.rs:43-49 \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/astrid-capsule-install/src/authority.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6c93b452f5227e7ff027897ea644026fd618de2bdd7f9ef10af3edf76653a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:4350-4356 | crates/astrid-capsule/src/engine/wasm/mod.rs:4382-4388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4350}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef6c74cf65fd746fb62976fe372446c5f8ad3ad604883ffaad3e9f09f560bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:23-29 | crates/astrid-cli/src/tui/input.rs:14-19 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e36d5fc53d9ff6bba17b08623c101834275e9e694f351fb93ad1e121e1fed94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:188-196 | crates/astrid-cli/src/tui/input.rs:696-702 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed4a611c85a14555df35a836070339c791f4973a422e9108cd5b9cf19cd1dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/nexus.rs:295-301 | crates/astrid-cli/src/tui/render.rs:593-599 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/nexus.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3eea9d65fecd2550a166266bef96d3652fa9b5011088c698fd4bc84795ea7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli/src/commands/init_grant.rs:194-201 | crates/astrid-kernel/src/socket.rs:117-123 \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/astrid-cli/src/commands/init_grant.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c527fd5a8232816576f06a918a0ca899915824ce1b92081feb664f6ca8f43c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli/src/commands/sessions.rs:56-62 | crates/astrid-cli/src/commands/sessions.rs:72-78 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/sessions.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"40958ffe5c5a0c3a76459e1adad8a42a32e54e4b01af770b2f4d2ab2e550ad2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-gateway/src/routes/quotas.rs:135-141 | crates/astrid-gateway/src/routes/quotas.rs:214-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/astrid-gateway/src/routes/quotas.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcf3019deeb5b34ee1b39e254b5b4dfd044348b17bad46e798e8138c362a8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:324-330 | crates/astrid-kernel/src/pair_token/mod.rs:352-358 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a59f1828bd6bf7974bf0aa16942aab9c359efd5618588e7666ba2da64ba8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:379-385 | crates/astrid-kernel/src/pair_token/mod.rs:407-413 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74c09361d7096514ba375f281c95c041cee94510585a19ee9c6250f4d4f8764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/socket.rs:323-329 | crates/astrid-storage/src/secret.rs:525-531 \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/astrid-kernel/src/socket.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39799f54a64d247465790b735a4a9b44518733ca0c724a0d84601688da104a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/control.rs:181-187 | crates/astrid-storage-provider-fuse/src/main.rs:886-892 \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/astrid-storage-provider-fuse/src/control.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dd70ac5819842b8d57c0449b6f6ca012cc6498206064564bffb2b187681597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/content/store/workspace/filesystem.rs:304-311 | crates/astrid-storage/src/filesystem.rs:723-729 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/content/store/workspace/filesystem.rs\u0060 and \u0060crates/astrid-storage/src/filesystem.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"5415316b65ac849ebfa37781db6410f019a8aba93f4c7285f20b67cda86d3b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/content_dag/read/traversal.rs:511-517 | crates/astrid-storage/src/content_dag/read/traversal.rs:630-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content_dag/read/traversal.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c68e581631d9f04cf8b8659bdc8ec8e1bf36c00d99de07cf8d89062b9047fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/indexed.rs:44-50 | crates/astrid-storage/src/engine/durable/format/mod.rs:127-133 \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/astrid-storage/src/engine/durable/format/indexed.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a288162c200930fa4a5dd73f516398f300b91b9074e90dd304a0f761eb0fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/muninn.rs:427-433 | crates/astrid-storage/src/engine/refinery/cross_hash.rs:584-590 \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/astrid-storage/src/engine/muninn.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c690a8c06a46d0e671b75a85489c3da4bbabde1a4c1bcaad423a23f087361a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/kv/surreal.rs:369-375 | crates/astrid-storage/src/kv/surreal.rs:399-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c92021ae858df80b98fd63541693db74e9197276fd36f33ec2abec9a2c14f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/kv/tree.rs:124-130 | crates/astrid-storage/src/kv/tree.rs:143-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee313806820a24a6bf0ec7fa849155992a1deb8e46b3974fc8429a4fc2040d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/kv/tree/adapter.rs:75-81 | crates/astrid-storage/src/kv/tree/adapter.rs:92-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/adapter.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4c88e2aa7187a90eb72d409c7cf83c49c79bc9be1eae268af808db57d7ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/kv/tree/overlay.rs:105-111 | crates/astrid-storage/src/kv/tree/overlay.rs:121-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/tree/overlay.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d79cf3d29e082472cf71081c46001c600e673be436ab67fd79607963c7d27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/principal_state/volume_migration.rs:137-143 | crates/astrid-storage/src/principal_state/volume_migration.rs:225-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/volume_migration.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3661509e1183d74e59d4fe7b79cd19cb6d46404dd10f1c28b8f8e532b97c952d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-vfs/src/host.rs:195-201 | crates/astrid-vfs/src/host.rs:210-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/host.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7d334ad88e7f3d502da7efbba85935ea42a5f63dad1d8b5f65f1445f638fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-vfs/src/overlay.rs:232-238 | crates/astrid-vfs/src/overlay.rs:257-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/overlay.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"336d5a71ba015b331ffd92cb0f802f65b5924b7e405101fd0e51ef1bb1337745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 7): crates/astrid-core/src/dirs_layout_retirement.rs:14-19 | crates/astrid-core/src/dirs_layout_retirement.rs:99-103 | crates/astrid-core/src/runtime_scratch.rs:19-24 | crates/astrid-core/src/runtime_scratch.rs:106-110 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:161-166 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs:39-44 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:35-40 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a332697d9f3cc69b397cf8c80bfd695ee604caa0d1a0eb09cd42b8ba93fe3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:387-392 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:510-515 | crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:535-540 \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/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff5f5d6a3ecf2d88624d79593085bf45a880028eb206820905e09a95c10d98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-storage-provider-fskit/src/main.rs:95-100 | crates/astrid-storage-provider-fuse/src/main.rs:165-170 | crates/astrid-storage-provider-winfsp/src/main.rs:101-106 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef47958cdaa6cab49e75338673de66042f1455696a9051dceea351e4b389935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-storage/src/engine/durable/representations/mod.rs:785-790 | crates/astrid-storage/src/engine/durable/representations/recovery.rs:339-344 | crates/astrid-storage/src/engine/durable/representations/recovery.rs:353-358 \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/astrid-storage/src/engine/durable/representations/mod.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"693841ef918148dc8e089be1e885667428911e229be39deb124743f9f7e343ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:201-206 | crates/astrid-cli/src/tui/input.rs:707-712 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a12855a5fd863fa559b0723601034ce3423b5991f23c9a7ad18cd4265e25070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:792-797 | crates/astrid-cli/src/tui/render.rs:304-309 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d110483e136bf5c423532b4cf176b9973c69b2891030c0c62f66d216fa15bdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/chain.rs:41-46 | crates/astrid-cli-mockup/src/ui/views/chain.rs:68-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/chain.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"693b54a57f160364900229427dc18dba0584d0e14c2d07c27816ce1be7ad9333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/nexus.rs:69-74 | crates/astrid-cli/src/tui/render.rs:655-660 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/nexus.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f66703d8c0fd4732d5029f3932a92d1765c2f88393ca08cccf664e2c38ec91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): crates/astrid-cli/src/commands/mcp/lifecycle.rs:188-192 | crates/astrid-cli/src/commands/mcp/lifecycle.rs:330-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/lifecycle.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"004343d717af171057fcd0c0688b5b7dd67e27fa0999e58e2b81df458ef4941b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli/src/commands/ps.rs:39-44 | crates/astrid-cli/src/commands/who.rs:48-53 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/ps.rs\u0060 and \u0060crates/astrid-cli/src/commands/who.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/astrid-cli/src/commands/ps.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c119be667e2990f8129986c3b81c7c6a019a2787e5ed66377115b8c580537787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-events/src/route/entry.rs:337-342 | crates/astrid-events/src/route/entry.rs:528-533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-events/src/route/entry.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d193310ffdbae5a3f6bf3715347999afd3b11ff124172aa12bee03d7b3b13b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:534-539 | crates/astrid-kernel/src/pair_token/mod.rs:505-510 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55726ec5f1ba81322b940bb45dd1b116552b5c39441ae48f796c77d8b364164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:232-237 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:666-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"658997236b6c2449bbfae891accda06baf380794ab937409fea2bdc1a6f09c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/compaction/outbox.rs:282-287 | crates/astrid-storage/src/engine/durable/compaction/outbox.rs:384-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/compaction/outbox.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd93431fef7c1bdd68fd8bf9bdfa08c38e90558eeaf08abe3d9b611b1fec1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/validation.rs:45-50 | crates/astrid-storage/src/storage_model/world.rs:492-497 \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/astrid-storage/src/engine/durable/validation.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"149f0795f0232bc40b42849d093f8245c3d92e7f62a8647c15f9d1e8e1613d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/kv/batch.rs:245-250 | crates/astrid-storage/src/kv/batch.rs:255-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/batch.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9583ec386546195520f1d7cfbb142619bf9e765b0335871bbbba200d3d82d36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:558-563 | crates/astrid-storage/src/principal_state/native_io.rs:593-598 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"3067b3b3ae45f99401fea2cfc17993a5eed3fd22f199e0f13f5115d9e8a67c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:106-111 | crates/astrid-storage/src/volume/hosted/stream.rs:95-100 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/volume/hosted/mod.rs\u0060 and \u0060crates/astrid-storage/src/volume/hosted/stream.rs\u0060 as WHOLE FILES: this scan already matched 5 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ce0ae6fb762cf8cd1dc0ad69a8c74a74f6ea8b0fe8f9ba42f3f2ff622b7b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:121-126 | crates/astrid-storage/src/volume/hosted/stream.rs:108-113 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/volume/hosted/mod.rs\u0060 and \u0060crates/astrid-storage/src/volume/hosted/stream.rs\u0060 as WHOLE FILES: this scan already matched 5 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"74df0a33371f676fc7193d620cc3d790549665138e40b48313bf10e4b9ac62f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:144-149 | crates/astrid-storage/src/volume/hosted/stream.rs:130-135 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/volume/hosted/mod.rs\u0060 and \u0060crates/astrid-storage/src/volume/hosted/stream.rs\u0060 as WHOLE FILES: this scan already matched 5 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5afe50fb71dd1758e2c9f1519dcf0f48b589db524054467cab955a476970daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): crates/astrid-core/src/dirs_layout_retirement.rs:11-15 | crates/astrid-core/src/dirs_layout_retirement.rs:96-100 | crates/astrid-core/src/dirs_layout_retirement.rs:268-272 | crates/astrid-core/src/runtime_scratch.rs:16-20 | crates/astrid-core/src/runtime_scratch.rs:103-107 | crates/astrid-core/src/workspace_security.rs:301-305 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c58d7a6d67c9692ffbe8a4dab791ec3d61b9bb2a67e0faa1b64a95e682ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/astrid-gateway/src/routes/principals.rs:141-145 | crates/astrid-gateway/src/routes/principals.rs:219-223 | crates/astrid-gateway/src/routes/principals.rs:484-488 | crates/astrid-gateway/src/routes/principals.rs:527-531 \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/astrid-gateway/src/routes/principals.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99452722c15dcf507b0bfacf026124ddf962298ba349563eacbc66b57caf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/astrid-capsule-install/src/authority.rs:332-336 | crates/astrid-cli/src/commands/daemon.rs:902-906 | crates/astrid-cli/src/commands/distro/trust.rs:107-111 \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/astrid-capsule-install/src/authority.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da5162027c9c8d19fb101fcff38d3e2f6dddd6c701717935190bfb84f556ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:487-491 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:722-726 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:840-844 \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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b802635779e59b94187a91ff25611fa44cd767231d3c20226e978f455de4dad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/persistent/mod.rs:168-172 | crates/astrid-capsule/src/engine/wasm/host/process/persistent/mod.rs:309-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/persistent/mod.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"110a33a5460dbabd1170793be80458053ff9a3d7d26117b8398424a7d24c6d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/storage_vfs.rs:258-262 | crates/astrid-capsule/src/engine/wasm/storage_vfs.rs:409-413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/storage_vfs.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"091a7566c4683ecdb79cd8e27984a8457875454f0bb5edf0ffd39fcdae9c5bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:448-453 | crates/astrid-cli/src/tui/render.rs:703-707 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a5009e4f52a35634a0a65ad08a149602d7b74c48e5ebeba678ab280111d5d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:479-483 | crates/astrid-cli/src/tui/render.rs:731-735 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2110e75d64b83f1ec0bc74710128163aed924a1f9a93bfab6137120fd3ca3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:770-774 | crates/astrid-cli/src/tui/render.rs:1541-1545 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbb61e8942d05eeea8bf4bb7901273a9ca2e19ba3c3eda1828e40229e1a9397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-cli/src/commands/distro/trust.rs:87-91 | crates/astrid-cli/src/commands/mcp/lifecycle.rs:173-177 \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/astrid-cli/src/commands/distro/trust.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c3c600950676df89122fdaea59c6febac7313becfc21daaf4cccc5657b9ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): crates/astrid-core/src/identity/ownership.rs:172-176 | crates/astrid-core/src/identity/ownership.rs:274-276 | crates/astrid-core/src/identity/principal.rs:181-185 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/identity/ownership.rs\u0060 and \u0060crates/astrid-core/src/identity/principal.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/identity/ownership.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f758920e1077e9b6a9e42539e2f6522e2669a2e293afc3fd9b88532fa8ba85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-core/src/local_transport/windows/acl.rs:227-231 | crates/astrid-core/src/platform_fs/windows/acl/ace.rs:142-146 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/local_transport/windows/acl.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/acl/ace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 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/astrid-core/src/local_transport/windows/acl.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e09cbcfa87119e289e02af4e84515c177a63bdab1df90ccecd745740b31d386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-gateway/src/routes/quotas.rs:125-129 | crates/astrid-gateway/src/routes/quotas.rs:164-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/quotas.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c2e9240fcefb6aa2c0d5ad5af2117c55f79a019cc987c42694d940983e1980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/invite/storage_migration.rs:28-32 | crates/astrid-kernel/src/pair_token/storage_migration.rs:29-33 \u2014 \u0060crates/astrid-kernel/src/invite/storage_migration.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/storage_migration.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 5 separate duplicated blocks between them, totalling at least 43 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc478ea57e64d4e060a5b7c464c0ec3bf3178a3cd5483557583946a7ae0aeb7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/invite/storage_migration.rs:73-77 | crates/astrid-kernel/src/pair_token/storage_migration.rs:89-93 \u2014 \u0060crates/astrid-kernel/src/invite/storage_migration.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/storage_migration.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 5 separate duplicated blocks between them, totalling at least 43 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"606e6e4bee2c5cfbcca428752968bc1ce770fcd89c4fedd3897f85f6283e2bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:338-342 | crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs:886-890 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f722701d7d058883c91474c4b6d080be127eb1d02c3ebab66a86c88916ad69bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:893-897 | crates/astrid-kernel/src/principal_distro_migration.rs:438-442 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea24435df68751d6fde01ef3e575b245af7295239eeec508e85932e796484724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/principal_home_migration/mod.rs:71-75 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:32-36 \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/astrid-kernel/src/principal_home_migration/mod.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a5edcd5582f6baa49186b7f1d163fb3439d2ff5e68113f22d05fadf5850a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:233-237 | crates/astrid-storage-provider-fuse/src/service.rs:311-315 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa6e40e5d89cd9b25260096492e14fec3344b626da632027e9c5b7f8fa30931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage-provider-fuse/src/filesystem.rs:687-691 | crates/astrid-storage-provider-fuse/src/filesystem.rs:699-703 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage-provider-fuse/src/filesystem.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb91a1d6dc50e05e47985aa84a8ab256fc0fea330e40e0312830873a1981906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/content/store/workspace/filesystem.rs:292-296 | crates/astrid-storage/src/filesystem.rs:711-715 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/content/store/workspace/filesystem.rs\u0060 and \u0060crates/astrid-storage/src/filesystem.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b49850095e8f4a22c00ade17591c05b1ab2c2242ef3aadeb4f7181167649949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/engine/durable/compaction/evidence.rs:271-275 | crates/astrid-storage/src/engine/durable/roots.rs:267-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/compaction/evidence.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f075f7ca69ce50f823f3a47bb891ad0638d08ff740e7ca59eadb794d7750cdf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/engine/durable/compaction/evidence.rs:275-279 | crates/astrid-storage/src/engine/durable/compaction/facts.rs:28-32 \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/astrid-storage/src/engine/durable/compaction/evidence.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e75238be9f6730760e63454b5ec3152de2e130f11ee340ead2d5600c080b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/kv/surreal.rs:363-367 | crates/astrid-storage/src/kv/surreal.rs:393-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/surreal.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"28263da2690ce8229c1d12921adcd50d3190cd992e931be95ef975c8fb3750bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/kv/tree/context.rs:600-604 | crates/astrid-storage/src/kv/tree/header.rs:438-442 \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/astrid-storage/src/kv/tree/context.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"652416432258be7bb8a8c1bc8f4a05858d44185f21992cbf6ba1a3323970c24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:552-556 | crates/astrid-storage/src/principal_state/native_io.rs:587-591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"0443fbb4b6a077df95b5633bbb0dadaf5c10cefce8d61418f211b50e7095738c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:115-119 | crates/astrid-storage/src/volume/hosted/stream.rs:102-106 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/volume/hosted/mod.rs\u0060 and \u0060crates/astrid-storage/src/volume/hosted/stream.rs\u0060 as WHOLE FILES: this scan already matched 5 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e13b1bcc3ad6536e65e2f8a310198cc5415306f369b22bd2f12baef22887ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-vfs/src/overlay.rs:223-227 | crates/astrid-vfs/src/overlay.rs:246-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/overlay.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"75be6a1a4070d217332c705cbcfa6156919973dbbdc02f932fab2b4da6c0d315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-vfs/src/overlay_registry.rs:170-174 | crates/astrid-vfs/src/overlay_registry.rs:187-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-vfs/src/overlay_registry.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eadd05372ab6954058aef39977658c786bf67da1b5030020299bf676540db5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-vfs/src/workspace_cow/apfs.rs:216-220 | crates/astrid-vfs/src/workspace_cow/overlayfs.rs:485-489 \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/astrid-vfs/src/workspace_cow/apfs.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6ba2eff5bddfb6bdc7cd50936360c659d7521933a941c1d58ca14a41884507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-audit/src/log/retention_guard.rs:92-97 | crates/astrid-kernel/src/kernel_router/admin/audit_anchor_handlers.rs:121-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/log/retention_guard.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6797976c3c9c8dbf4740ded346a7318bcababa817f8b521e601d5a772e8234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-audit/src/storage/append.rs:498-502 | crates/astrid-audit/src/storage/append_batch.rs:557-561 \u2014 before extracting anything, compare \u0060crates/astrid-audit/src/storage/append.rs\u0060 and \u0060crates/astrid-audit/src/storage/append_batch.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-audit/src/storage/append.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7fdc4c04dc28e79e86dc47c2c53ee98d5d0ca80823837c6e8271e29c257246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/astrid-capsule-install/src/authority/leftover.rs:309-319 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:307-317 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:305-315 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/authority/leftover.rs\u0060 and \u0060crates/astrid-storage/src/principal_state/unbound_legacy.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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/astrid-capsule-install/src/authority/leftover.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b6bc314e709947ba0f5d605a37c0e4524a199e050a690d2679cbebe6ac795d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/discovery.rs:19-26 | crates/astrid-cli/src/commands/distro/validate.rs:40-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/discovery.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f6b196c9f55f7b23a363205b3d7cfb97a6d65ed878449adbdf2c201e84d06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:143-151 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:357-365 \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/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"558d56fef65a25e4b6c203148ee60ae013cc8d75f3b07438ada3082d98049ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/storage_vfs.rs:574-579 | crates/astrid-kernel/src/storage_mount/filesystem.rs:452-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/storage_vfs.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb648cfa94e60305c903be40f198f397f8cdb643f2173a3ee394716026340be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/input.rs:401-413 | crates/astrid-cli/src/tui/input.rs:871-881 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/input.rs\u0060 and \u0060crates/astrid-cli/src/tui/input.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-cli-mockup/src/ui/input.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b285e3cbf11c5cf8e5f4962f83b8c1339f06353b39897b2ad6e5ae01161f836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/theme.rs:29-36 | crates/astrid-cli/src/tui/theme.rs:25-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/theme.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bdc5e33c28f582bd4f20ced5b89b774d02cdbf738c6601ee9c1d551d95a66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/astrid-cli/src/commands/capsule/install_daemon.rs:420-425 | crates/astrid-cli/src/commands/update_channel.rs:300-305 | crates/astrid-cli/src/commands/update_channel.rs:307-312 | crates/astrid-kernel/src/kernel_router/resume_receipt.rs:143-148 \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/astrid-cli/src/commands/capsule/install_daemon.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0042d2d0ea3162d08d0797532190322d8dd951159885148adb4e8f085b5cbf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/commands/distro/validate.rs:50-58 | crates/astrid-cli/src/commands/init.rs:681-689 \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/astrid-cli/src/commands/distro/validate.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b117691968f0b78cb678713b51351b05dcfb0226407161b806b1509be1b38e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-cli/src/commands/self_update_notice.rs:33-37 | crates/astrid-runtime/src/lib.rs:70-74 \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/astrid-cli/src/commands/self_update_notice.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cde98a1776d40ddd42e84f714b8f95b46e0b2882867574ed97e0b9108bc8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-crypto/src/keypair.rs:227-233 | crates/astrid-crypto/src/signature.rs:76-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-crypto/src/keypair.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e54af678a029cd1d6626b645aee0077555059394b49d414938d455256cfde1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/capsule_materialization.rs:45-49 | crates/astrid-kernel/src/lib.rs:194-198 \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/astrid-kernel/src/capsule_materialization.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fbb195c940a70501dada36113321d0ffa053b6710c5a6d601eaafbdf6a9ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:696-701 | crates/astrid-kernel/src/pair_token/mod.rs:663-668 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb989ad11535715621ee53acfc381aa80ed4227e6954df7d58ebb0f5560b1612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs:153-159 | crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:615-621 \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/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c8b4183a9859c12a098a6d8f796e39661ae00b9ad7632e2fd16808733d09f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:540-551 | crates/astrid-kernel/src/principal_log_migration.rs:510-521 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e0f1466ab324c2353e8ada6e0c81d1c729bc23e72cc67ce3ef5d0a1246add9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:884-890 | crates/astrid-kernel/src/principal_home_migration/paths.rs:24-30 | crates/astrid-kernel/src/principal_log_migration.rs:502-508 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c8ad241e6fe8673fdec1c14ddb7029e88cb26d2e60784a70863f7800ec04e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs:600-604 | crates/astrid-kernel/src/principal_home_migration/receipts.rs:295-299 \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/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ab9cca7984f21937f9bff28f568dc76408233f0aae2462818f685352c1ff98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/principal_home_migration/mod.rs:354-362 | crates/astrid-kernel/src/principal_log_migration.rs:526-534 \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/astrid-kernel/src/principal_home_migration/mod.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9cc45a5071d5f146f2819b0fec7419795071d8c5282447958bb5229c9f5eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/astrid-storage-provider-fskit/src/main.rs:293-299 | crates/astrid-storage-provider-fuse/src/main.rs:894-900 | crates/astrid-storage-provider-winfsp/src/main.rs:303-309 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2204e80b18aac594216d8b7d46a1f0accdc40157b3a097964e921793a4a08d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-storage-provider-fskit/src/main.rs:301-309 | crates/astrid-storage-provider-fuse/src/main.rs:902-910 | crates/astrid-storage-provider-winfsp/src/main.rs:311-319 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/main.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/main.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0f7da025c081107718eebdffa2ae4a03bfe97b192d4d2b3d4d596802d54c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/content/store/workspace/filesystem.rs:365-370 | crates/astrid-storage/src/filesystem.rs:826-831 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/content/store/workspace/filesystem.rs\u0060 and \u0060crates/astrid-storage/src/filesystem.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store/workspace/filesystem.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6751a80f8a9b34ab98d59bfcc6a6086605406a816827002262c31ef000b6b215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/mod.rs:765-770 | crates/astrid-storage/src/engine/durable/roots.rs:283-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bac2793434ce40315abfbf6dc0dbcdb508b6cc82f22cb8ff31c624120c7c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/reader.rs:19-30 | crates/astrid-storage/src/engine/durable/roots.rs:367-378 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/format/reader.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/roots.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/reader.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f480f8f3dd835cac7bbf44c503e698618bb5a2152045e578c8abe0006155ce9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/reader.rs:36-42 | crates/astrid-storage/src/engine/durable/roots.rs:384-390 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/format/reader.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/roots.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/reader.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4ffbb817eb5de7d8b2d45c1b347fa38b0fc3bfcd2d1cd402acbd70e929595f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/reader.rs:44-50 | crates/astrid-storage/src/engine/durable/roots.rs:392-398 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/format/reader.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/roots.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/reader.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c145de9cd2c8f332fd7d41918e478b43261f20714e8312eb02be3a16804f96e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/reader.rs:52-58 | crates/astrid-storage/src/engine/durable/roots.rs:400-406 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/format/reader.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/roots.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/format/reader.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fedce8cb9aed1eed38c1b81efe4816f62a563f27f53abe000a3c8520a87f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/engine/durable/group/mod.rs:199-206 | crates/astrid-storage/src/principal_state/staging/group.rs:185-192 \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/astrid-storage/src/engine/durable/group/mod.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"43739ac0a85e5b257dd3c03dc79576380bbf63517dadbb4dc3b5f8f9cb674ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/native_io.rs:105-111 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:143-149 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"96db50bdd26745589231212d53cf4b17f781469c2bf9ccf7ec092239c6c807f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/native_io.rs:188-193 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:130-135 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"df780e7f68d1c2492859a4e31958255557cede50b66dcaf186e63b545f62977e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/format.rs:304-308 | crates/astrid-storage/src/principal_state.rs:125-129 \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/astrid-storage/src/engine/durable/representations/format.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdf70740a06bb03854429e16564fcd2f14e05e3adb982e1a115776a679c732b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/format.rs:310-316 | crates/astrid-storage/src/principal_state.rs:131-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/format.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c04755499a3cbf9ec47d68c3e7e81164d216b40f5472870b82995edc1f1e168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/roots.rs:430-435 | crates/astrid-storage/src/engine/durable/wal/codec.rs:750-755 \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/astrid-storage/src/engine/durable/roots.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f0d9e408fb3f05f9d031cd8bdf3f1f5bd2a9f39075044c1a0feca78bdd50f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-storage/src/engine/durable/wal/types.rs:68-73 | crates/astrid-storage/src/engine/durable/wal/types.rs:167-172 | crates/astrid-storage/src/storage_model/mod.rs:679-684 \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/astrid-storage/src/engine/durable/wal/types.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b646a8471497575207a6bac8216a3eb265470e596482b28c96973dfee5b6fe51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/refinery/cross_hash.rs:802-807 | crates/astrid-storage/src/engine/refinery/sketch/wire.rs:141-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/refinery/cross_hash.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"07144d60f5d56694707528d949872094f0d2bd4739b9a943516b451461cc74d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/storage_model/physical/profile.rs:596-604 | crates/astrid-storage/src/storage_model/physical/representation.rs:462-470 \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/astrid-storage/src/storage_model/physical/profile.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"8595c1327c0ae8699c71ad819769c1fb44c376bec97990742ffdc1d193bd5471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-audit/src/storage.rs:69-75 | crates/astrid-audit/src/storage/append_batch.rs:120-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b608638b2f74e35ef3e54ef660d4c513ee6ebbbffae26c5f4c2804a617c64a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-audit/src/storage.rs:787-792 | crates/astrid-audit/src/storage/heads_page.rs:113-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ab86cecca5b7be57cbe96d65f411b7fa4e28a9de54b6fc92c5b413f955c45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/astrid-capsule-install/src/archive.rs:91-101 | crates/astrid-capsule-install/src/authority.rs:682-692 | crates/astrid-capsule-install/src/authority.rs:742-752 | crates/astrid-capsule-install/src/local.rs:277-287 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/archive.rs\u0060 and \u0060crates/astrid-capsule-install/src/local.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-capsule-install/src/archive.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"869c43e6f51a22fe516a9fef16468709a42cabcd3c424a943155d6ae78ec16c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule-install/src/archive.rs:195-206 | crates/astrid-capsule-install/src/local.rs:404-415 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/archive.rs\u0060 and \u0060crates/astrid-capsule-install/src/local.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-capsule-install/src/archive.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd3d31fabcd4cbfe8454300ea55bd2f9f55bb000206a2e2f0227b1dfd0183f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-capsule-install/src/archive.rs:307-320 | crates/astrid-capsule-install/src/local.rs:473-486 \u2014 before extracting anything, compare \u0060crates/astrid-capsule-install/src/archive.rs\u0060 and \u0060crates/astrid-capsule-install/src/local.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-capsule-install/src/archive.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a56ef58ed787e913575440ecf6d4cdd35a30213238af6b69d2daf9dd249a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:1640-1645 | crates/astrid-hooks/src/handler/wasm.rs:369-375 \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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f361f402ef979ba0a1a4ff4962175c65a17e29e9f4eab47c869b1d06932b96a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-core/src/identity/ownership.rs:153-158 | crates/astrid-core/src/identity/ownership.rs:257-262 | crates/astrid-core/src/identity/principal.rs:152-157 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/identity/ownership.rs\u0060 and \u0060crates/astrid-core/src/identity/principal.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/identity/ownership.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e756073c87d626f97a971632a18de738d5f8a4c617a109e34d4fe2f801bf6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/astrid-core/src/identity/ownership.rs:205-214 | crates/astrid-core/src/identity/ownership.rs:308-317 | crates/astrid-core/src/identity/principal.rs:214-223 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/identity/ownership.rs\u0060 and \u0060crates/astrid-core/src/identity/principal.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/identity/ownership.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf14e2c9ec0153ef698a6be5384d670e2428e9be00a318b1e52412097f12eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-crypto/src/keypair.rs:167-177 | crates/astrid-crypto/src/signature.rs:30-40 \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/astrid-crypto/src/keypair.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"999f38aab394ddc6cb401c0593f1b004dd8f3f38f298378cfa80d8243665bb44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/kv.rs:490-495 | crates/astrid-storage/src/engine/projection.rs:792-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/kv.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba50380a2764b1039e9fc7c45ff927f092f7a8a84f57123b7bf3cc4bc823ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:567-581 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:614-630 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d85288d43d8332df68306b7e39ff50baa002b8463d904308ceb33e99120d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:1398-1413 | crates/astrid-capsule/src/engine/wasm/mod.rs:1419-1431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"48310ab8541d50727155fef22b8ad899a66a10e2b69a812a7cd9f82c8848d6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/commands/mcp/watch.rs:174-188 | crates/astrid-cli/src/commands/mcp/watch.rs:274-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/watch.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9099fc197eeb658d5c14a65707e26adf1754ecb3910e206c192bee863df309d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/astrid-hooks/src/handler/command.rs:237-250 | crates/astrid-hooks/src/handler/http.rs:116-129 \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/astrid-hooks/src/handler/command.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad1fe4f495febe0ebc35abefbf9fde4ace5c2e5106f3711e2ca555e790dd443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:185-197 | crates/astrid-kernel/src/legacy_migration_barrier/mod.rs:916-928 | crates/astrid-kernel/src/legacy_migration_barrier/mod.rs:953-965 \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/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8feebb42ec9fbcdc1c3edc9b41183396d83d247c85705deb12b511816860f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli/src/commands/ps.rs:69-81 | crates/astrid-cli/src/commands/who.rs:76-85 \u2014 before extracting anything, compare \u0060crates/astrid-cli/src/commands/ps.rs\u0060 and \u0060crates/astrid-cli/src/commands/who.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/astrid-cli/src/commands/ps.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f95802963690478d73fb10aff54aa427054fdcd4e3752252f49aa88fae1636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-storage/src/engine/durable/wal/writer.rs:337-349 | crates/astrid-storage/src/engine/durable/wal/writer.rs:432-444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/wal/writer.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5062e2545e137c0cbfd15bc45c6150188e8f97887c178ad7884a832d9baf399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs:86-98 | crates/astrid-kernel/src/legacy_migration_barrier/retirement.rs:64-76 \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/astrid-kernel/src/legacy_migration_barrier/legacy_permissions.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b345b386a38fe93999267ae3df0903a3feafd0596ff04c9f3b6e8786fea3d4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/inheritance.rs:216-226 | crates/astrid-kernel/src/kernel_router/admin/inheritance.rs:227-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/inheritance.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9451019d33da7f3c1d414f624a2b095032043c8834b8a1cbdb077c01baaff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/astrid-storage/src/principal_state/volume_migration.rs:26-37 | crates/astrid-storage/src/principal_state/volume_migration.rs:142-153 | crates/astrid-storage/src/principal_state/volume_migration.rs:231-242 \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/astrid-storage/src/principal_state/volume_migration.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d3f3c7eeb86cb86480c8d3dcbe132ec1d0786a5be2c011debd9fc0cbc0a6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/io.rs:247-258 | crates/astrid-capsule/src/engine/wasm/host/ipc.rs:162-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/io.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a786e21b91be693ee9bccdbf31b1a2da5fb6c876d3cec8167a518b4514c44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/principal_state/volume_migration.rs:111-122 | crates/astrid-storage/src/principal_state/volume_migration.rs:195-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/volume_migration.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"beff3bf47d26ef7aee526ac6d7acd41d9348b21e80f05a583292446beeb52e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:300-311 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:327-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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fefc5ad70f0770e07844a3c8ca051b7b9778b2e282802776564cc206ec1d31f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-core/src/dirs_layout_retirement.rs:323-331 | crates/astrid-core/src/runtime_scratch.rs:171-182 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd280d4097f402ab15447195b7aa35ec4985a97415560334381515994ef5de39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/astrid-storage/src/engine/durable/lifecycle.rs:98-109 | crates/astrid-storage/src/engine/durable/lifecycle.rs:205-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/lifecycle.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"78212d2e487e1af816454cb17d215958d44391398b6de2af4f4fd9cef6c111d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-core/src/dirs_layout_retirement.rs:43-50 | crates/astrid-core/src/dirs_layout_retirement.rs:274-281 | crates/astrid-core/src/runtime_scratch.rs:56-67 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f62045194d3f98712c244ec86d7ad6bab1f9a3dd76ca6bd240362021a310e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:433-443 | crates/astrid-capsule/src/engine/wasm/host/process/mod.rs:698-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5aa14a9ca801afcc55060ca53ec6fce263b67f641bfcfb25d447438f569b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/astrid-capsule/src/engine/wasm/host/fs/mod.rs:66-76 | crates/astrid-capsule/src/engine/wasm/host/net/mod.rs:264-274 | crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:40-50 | crates/astrid-capsule/src/engine/wasm/host/process/audit.rs:224-234 \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/astrid-capsule/src/engine/wasm/host/fs/mod.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"01436c49217ca90a2c9e71c540913fe9dad512e6e17e2b9ee2fe2aa07a2c0ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:70-80 | crates/astrid-cli/src/tui/render.rs:99-109 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/render.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 345 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/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c580f8328948bba93c7e25bf136c441932b7b4652a6c056cb108905a0d0d00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/kv/tree/delta.rs:335-345 | crates/astrid-storage/src/kv/tree/node.rs:481-491 \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/astrid-storage/src/kv/tree/delta.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f8e568d90732cdf383d4231851bd3e432c386a4f40d032a126bf5c55fdbcb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-storage/src/principal_state/staging/legacy.rs:85-95 | crates/astrid-storage/src/principal_state/staging/migration.rs:156-166 \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/astrid-storage/src/principal_state/staging/legacy.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"de97df1dd1afa38990c65aaf765d13a45ed7cf3311e32d8ffe3686d1f69e237f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs:114-124 | crates/astrid-uplink/src/native/handshake.rs:97-104 \u2014 before extracting anything, compare \u0060crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs\u0060 and \u0060crates/astrid-uplink/src/native/handshake.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-capsule/src/engine/wasm/host/net/handshake.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9016e7223e1c8e3269d58dcb48c52f08d4e33fb4c6068effae87f899401c5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/inheritance.rs:424-432 | crates/astrid-kernel/src/kernel_router/admin/inheritance.rs:434-444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/inheritance.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a703ebb0c1975a4bbe1573d38afee39fc3d4d370aed8503747d46740d339646d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:217-226 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs:40-49 \u2014 before extracting anything, compare \u0060crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs\u0060 and \u0060crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10761e2b443736ff344490aa54246c89f7705e1534cfdbeace34d1b8939f8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-cli/src/commands/mcp/lifecycle.rs:431-440 | crates/astrid-cli/src/commands/mcp/lifecycle.rs:565-574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/lifecycle.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"946e956f14d545660d77207901c7add615f6ed7b0de6d35c6fec5abbf71e2fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/io.rs:681-689 | crates/astrid-core/src/platform_fs/windows/path.rs:532-541 \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/astrid-core/src/platform_fs/windows/io.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"98224b586b78a7904b784fd7eb3cb7f597bdbe4f33b1e5494ce6c58316965ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/identity.rs:351-359 | crates/astrid-storage/src/identity.rs:457-466 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/identity.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0532e4b9bd7d7161bd9182a4e92adb3fae3416dea4a4d7068e5532044cf80636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:212-221 | crates/astrid-storage/src/principal_state/native_io.rs:234-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c109d73d9dccbdfd726f5d550eb77529d411d0fde0cf016a4b94b6944e35352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/mod.rs:130-139 | crates/astrid-kernel/src/legacy_migration_barrier/secret.rs:24-30 \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/astrid-kernel/src/legacy_migration_barrier/mod.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a259eb4f6742632f52cd54f08dbf68e118f62b67a07368490083bb7510fed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable/wal/scan.rs:365-374 | crates/astrid-storage/src/engine/durable/wal/scan.rs:432-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/wal/scan.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e7e7a2b83c2f8e1beee2cb66cfefbbf2d3b3413fa2a2075ce91daf67c90a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): crates/astrid-core/src/dirs_layout_retirement.rs:15-24 | crates/astrid-core/src/dirs_layout_retirement.rs:100-106 | crates/astrid-core/src/runtime_scratch.rs:20-29 | crates/astrid-core/src/runtime_scratch.rs:107-113 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:162-171 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:217-226 | crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs:857-866 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs:40-49 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:36-45 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/dirs_layout_retirement.rs\u0060 and \u0060crates/astrid-core/src/runtime_scratch.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_retirement.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b53389f9000573927cfc70f26b18762386689216230a454238da402a3b2625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/engine/durable/native_io.rs:58-67 | crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs:43-52 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/engine/durable/native_io.rs\u0060 and \u0060crates/astrid-storage/src/engine/durable/representations/contiguous/namespace.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 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/astrid-storage/src/engine/durable/native_io.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5353d6a466b4d6a980f18ef72ebabc729482971dec8e0d2cf1f97a8753ff676f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:136-145 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:218-227 | crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs:41-50 \u2014 before extracting anything, compare \u0060crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs\u0060 and \u0060crates/astrid-kernel/src/legacy_migration_barrier/legacy_tmp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"358c4211f0e50048116033e18949f3a5f0625f7ae198273d384731b55f34169c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:135-144 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:471-480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"deca132fd8e2228b4530fad0ed5b36a531a9b5efc0407b6c2b5bc5a7b35fff25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-vfs/src/workspace_cow/apfs.rs:183-192 | crates/astrid-vfs/src/workspace_cow/overlayfs.rs:252-261 \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/astrid-vfs/src/workspace_cow/apfs.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b580c00b2548e8bebbcd1bb41645cb1234569b998686dedb5389bc2a2febecd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/io.rs:300-309 | crates/astrid-capsule/src/engine/wasm/host/io.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/astrid-capsule/src/engine/wasm/host/io.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4450db5f351804a2e0b60a64ff6671af276230b140d5b72355f2e0019f7c97ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/astrid-kernel/src/lib.rs:2464-2473 | crates/astrid-kernel/src/lib.rs:2477-2486 | crates/astrid-kernel/src/lib.rs:2583-2592 \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/astrid-kernel/src/lib.rs"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"723d6581b8081d93fb3ff4d499c0b0b778240054ca8f12c02aa1c5ebb55de63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/principal_state.rs:545-553 | crates/astrid-storage/src/principal_state.rs:576-585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c39c02a43d450a15adef61caaa9e2bae94735c90676e1f8ea8fb16d6689674c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/env/legacy_import.rs:32-41 | crates/astrid-storage/src/env/legacy_import.rs:83-92 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/env/legacy_import.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"25170b3cd8dc9eee6eb48180601f08b3c81b60d7eb1d0e711307707ec8606e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-mcp/src/secure.rs:397-406 | crates/astrid-mcp/src/secure.rs:432-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-mcp/src/secure.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"232d00125e4c028d3dbbc98545f7d7653a4664f32d8df0327689c818d1ac2502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:291-300 | crates/astrid-kernel/src/pair_token/mod.rs:319-328 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc18a8cb11850d8cad09b6ce9e9d91cb7376b65121a63803f31154ebabbbc96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/principal_state/store_open.rs:355-363 | crates/astrid-storage/src/principal_state/unbound_legacy.rs:65-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/store_open.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f4e8fd545c87a26ab61d397f9b714ca589426dbd7bd5bae79617231de311f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/lib.rs:4116-4124 | crates/astrid-kernel/src/lib.rs:4295-4303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":4116}}}],"partialFingerprints":{"codehealthFindingId/v1":"213ce526143bf2d8282f5c66cc8ec9251eba16934053802adf7b4bbbb5d4d279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:277-285 | crates/astrid-kernel/src/pair_token/mod.rs:305-313 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d740469248072b62b1a0e46cbe84987774111ef0933606571a8fdbf9a0fcba58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-core/src/dirs_layout.rs:426-434 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:360-368 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:423-431 \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/astrid-core/src/dirs_layout.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"43619a8b8b176b708d5f4cc5d16405dac509938238497e8fe5ce55821f1c0242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/repl.rs:232-240 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:156-164 \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/astrid-cli/src/repl.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"03addc9ab2df5e64c4e4e1fc9dbb7a54d01eaad2616267a731f6e108d6a5be3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/invite/storage_migration.rs:16-24 | crates/astrid-kernel/src/pair_token/storage_migration.rs:17-25 \u2014 \u0060crates/astrid-kernel/src/invite/storage_migration.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/storage_migration.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 5 separate duplicated blocks between them, totalling at least 43 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcf11ca5ca118f896d4fdcc0f1752d8332684dcd0fc930a771ad7023fb34311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/show.rs:77-85 | crates/astrid-cli/src/commands/group.rs:135-140 \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/astrid-cli/src/commands/capsule/show.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e0475b67f143a83e3d9077f72032eb8b3dbf5352e4ec8baa25d06cebf4a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:320-328 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:360-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"509df66a75f5dab72a03ccf833fc69d41d2b6e4f0b00ec0703c279ea7462a101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/astrid-kernel/src/lib.rs:4096-4104 | crates/astrid-kernel/src/lib.rs:4137-4145 | crates/astrid-kernel/src/lib.rs:4239-4247 \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/astrid-kernel/src/lib.rs"},"region":{"startLine":4096}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b66d2fdc3af5853ffad20b7250d9a09c8b5f801bf584aeb79336c5cf5d5140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:149-156 | crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:233-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2351aa7b75ae94e430081a2aabb5e198764187f3afb2916801b944b572e269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-storage/src/principal_state/native_io.rs:719-727 | crates/astrid-storage/src/principal_state/staging/legacy.rs:512-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/astrid-storage/src/principal_state/native_io.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ba315ea43f56003cc2c5d12483ac4331c57f42ac9f388e1493957b5ed3da29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-core/src/platform_fs.rs:461-469 | crates/astrid-core/src/platform_fs.rs:612-620 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86f5eb84db67c69808ddb9fa744e59a2a7f745d39511132e90f966aee26ddcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/astrid-cli/src/repl.rs:233-241 | crates/astrid-core/src/dirs_layout.rs:346-353 | crates/astrid-kernel/src/principal_home_migration/unbound.rs:157-165 \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/astrid-cli/src/repl.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce664c6ba37f4c133fbcb6971f15cda021fda9f1cf62586cc034b8c22198def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:179-186 | crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs:203-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/fs/resolve.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba5b2d28ad37cd56d8ce4208aaa860150eb26cf05916ef34a13299dfa0abfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli/src/commands/ps.rs:93-101 | crates/astrid-cli/src/commands/secret.rs:366-374 \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/astrid-cli/src/commands/ps.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedae2b42f910ac391379d3918b4dea558e2e3669d7a137097d673fd398a950c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/group.rs:115-123 | crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs:707-715 \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/astrid-kernel/src/kernel_router/admin/group.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e925596a3187eb974aa8118bbf8a0ef91dab6e3182a87456ca1fab50b6799d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-core/src/dirs.rs:525-533 | crates/astrid-core/src/dirs_layout_records.rs:182-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda792c65c358ee7e6190800ee6b126d2dc6d2cb91538ad2e76541509ffb3089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:206-214 | crates/astrid-kernel/src/pair_token/mod.rs:220-228 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a559d4dd59c4f072610da08d2a4ebb5fd9cf0d8005d53cd81d170dd7cabc134e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:301-309 | crates/astrid-kernel/src/pair_token/mod.rs:329-337 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d33293ec084ddeea9da3ac441dc0ed9ee818ee6de257e5ea26424f61470979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-build/src/artifact.rs:317-325 | crates/astrid-build/src/artifact.rs:542-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/artifact.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b03623a8a0393643671b95c0e3f94bbb14238f39cbe772cee946e8ebfda3438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-core/src/dirs_layout_records.rs:267-275 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:424-432 \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/astrid-core/src/dirs_layout_records.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b351be181f0af55a347a4acda921f739e483f7e0b9d90ff359abc4a5ef9231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:239-247 | crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs:674-679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/host_fs.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b994fca0c538c0991db97df5411f203f46ca3f2d830ae85be22616b8af2ee5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:152-159 | crates/astrid-storage-provider-fuse/src/service.rs:211-218 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6363eafa6c02478b45e4aefa72894d7f2914f9ceb77d5a407a34b9521922f7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/nexus.rs:261-268 | crates/astrid-cli/src/tui/render.rs:1276-1281 \u2014 before extracting anything, compare \u0060crates/astrid-cli-mockup/src/ui/views/nexus.rs\u0060 and \u0060crates/astrid-cli/src/tui/render.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/views/nexus.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b03685ee1fb990b7e0f8932dc78408292910e1b5658b1dc3689438f1400043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/mod.rs:206-213 | crates/astrid-storage/src/volume/hosted/recover.rs:887-894 \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/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"177001733fec7449da192621ed8838e15be42c0ed6b439bab314ed1ef47f3d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/astrid-kernel/src/invite/storage_migration.rs:14-21 | crates/astrid-kernel/src/invite/storage_migration.rs:64-71 | crates/astrid-kernel/src/pair_token/storage_migration.rs:15-22 | crates/astrid-kernel/src/pair_token/storage_migration.rs:80-87 \u2014 \u0060crates/astrid-kernel/src/invite/storage_migration.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/storage_migration.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 5 separate duplicated blocks between them, totalling at least 43 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/astrid-kernel/src/invite/storage_migration.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d978ccdc1a1ba10966c9e578db1d4eb028849d9ea4a32ff6e21d0a3e7cd30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:154-161 | crates/astrid-kernel/src/pair_token/mod.rs:168-175 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73a848421f25a1bc5b2fbde649ca15521d2f5ed32bd17897ffdc768cbab8049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-approval/src/allowance/store.rs:333-340 | crates/astrid-approval/src/allowance/store.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-approval/src/allowance/store.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be79976baa3a9fbdc61ae60c3aab7af249455a6b210f7c144dd3990d6ccaeac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/principal_state/staging/legacy.rs:431-438 | crates/astrid-storage/src/principal_state/staging/recovery.rs:402-409 \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/astrid-storage/src/principal_state/staging/legacy.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e87e41de61d50cd1ac386267f951d7a8cfb6d9d1551e45200e24eabfb0dfb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:218-224 | crates/astrid-kernel/src/pair_token/mod.rs:232-239 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"94243f658eb1d7814ac1d45ff0a16c837d4876e6e92e208a1c103c3b371514d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-capsule/src/security/manifest_gate.rs:163-170 | crates/astrid-capsule/src/security/manifest_gate.rs:180-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/security/manifest_gate.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"53231c19c170768123c1c8256e4516b544ecfec6bb0a536be654fa9c70516959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage/src/engine/durable/representations/checkpoint.rs:111-118 | crates/astrid-storage/src/engine/durable/representations/checkpoint/native.rs:32-39 \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/astrid-storage/src/engine/durable/representations/checkpoint.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c21b80fe1c12067f096ae3afd0d83648464b302682f7977052a4a853c646ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:223-230 | crates/astrid-storage-provider-winfsp/src/win.rs:342-349 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-winfsp/src/win.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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"65faf7aacff9a3397884fccd822809377d5b9a1b847db2419b898109c4b65809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/audit_keys.rs:121-128 | crates/astrid-kernel/src/lib.rs:4432-4439 \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/astrid-kernel/src/audit_keys.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d242b1b001cc16150ee5ff9e37737c44d96959a6ba6a34f2445df75aa4120271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-core/src/platform_fs/windows/executable.rs:267-274 | crates/astrid-core/src/platform_fs/windows/private_file.rs:201-208 \u2014 before extracting anything, compare \u0060crates/astrid-core/src/platform_fs/windows/executable.rs\u0060 and \u0060crates/astrid-core/src/platform_fs/windows/private_file.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/astrid-core/src/platform_fs/windows/executable.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"30916f0b43ca85e483503ececd90d10d425418044c40e464fa8d66e1843e477f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:331-338 | crates/astrid-kernel/src/pair_token/mod.rs:359-366 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c3e73242312961ffffc3ecf68578ff6fbe0f2020c8c6b7f4414d6e4f0876f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:251-257 | crates/astrid-storage-provider-fuse/src/service.rs:329-335 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6892263e8a89ae3d728dde08c0a6730e35f34c08d1fecf5fbeda689ed5544f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/render.rs:26-32 | crates/astrid-cli-mockup/src/ui/render.rs:33-39 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/ui/render.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c466950fcc930d854c72cf635c0d4565c929d331f15eeb4b8df618bf824eb1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/kv/memory.rs:187-193 | crates/astrid-storage/src/kv/memory.rs:207-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/kv/memory.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3887bd6825af866340f94158feb799ec490328cef06f731e15d609ada4b9df1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-core/src/dirs_layout_records.rs:335-341 | crates/astrid-core/src/dirs_layout_records.rs:432-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs_layout_records.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e6c0aece5eaf270856e5bc2e8cb9eb8841fc65e6faed0a62ff7d4969287223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-capsule-install/src/storage/migration.rs:108-114 | crates/astrid-capsule-install/src/storage/migration.rs:364-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/storage/migration.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9fc7431581682a8cdf50772ee765d915ab676ad94d61231a36bde2ff219dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage-provider-fskit/src/service.rs:465-471 | crates/astrid-storage-provider-fuse/src/service.rs:186-192 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d099554d9d6b087408fddcd63ad732f7d9993215f8f37da3ecaa0352c0307bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-cli/src/commands/mcp/watch.rs:113-119 | crates/astrid-cli/src/commands/mcp/watch.rs:233-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/watch.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dd2e631364a166a8b648aaf859ebf9b2cf505311f6729cdf9bc236dbe6bbc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/engine/durable/format/mod.rs:490-496 | crates/astrid-storage/src/engine/durable/wal/replay.rs:447-453 \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/astrid-storage/src/engine/durable/format/mod.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"7955b51a216cdc0a25f32883c6e224be4268a310ef26cf6855e3ccc02160dc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/principal_state/volume_migration.rs:124-130 | crates/astrid-storage/src/principal_state/volume_migration.rs:208-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/volume_migration.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e040e6983c4a3f65aa424aa9e9a42041372b36a004d631e24805742dcfb9f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-kernel/src/invite/mod.rs:182-188 | crates/astrid-kernel/src/pair_token/mod.rs:196-202 \u2014 \u0060crates/astrid-kernel/src/invite/mod.rs\u0060 and \u0060crates/astrid-kernel/src/pair_token/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 17 separate duplicated blocks between them, totalling at least 162 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/astrid-kernel/src/invite/mod.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1f4b6f6302576925438423ba5184408f6d28f0da4ea293e6b646980e7a2738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/astrid-storage/src/principal_state.rs:303-309 | crates/astrid-storage/src/principal_state.rs:336-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc54fea0081b44a8a532e9cc8630f3a5bb175a7c035309951f8dd73aae133261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-gateway/src/routes/agent.rs:345-350 | crates/astrid-gateway/src/routes/agent.rs:351-356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/routes/agent.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"69aad5362a55f8145d1b5c1ee2e2d2d4d6b43119706038dbd496658dc00f871c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli/src/commands/capsule/local_egress.rs:202-207 | crates/astrid-core/src/session_token.rs:117-122 \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/astrid-cli/src/commands/capsule/local_egress.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"66066a0d8fd1c49487b6d646c019f6af5cf880fd02915ba3a72b557e91de8b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-gateway/src/routes/invites.rs:192-197 | crates/astrid-gateway/src/routes/principals.rs:227-232 \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/astrid-gateway/src/routes/invites.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd48ff09af30422ee6e2a23d94272c1084320afe6f82c41e4eecb1bda0cd4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/principal_state/staging/journal.rs:147-152 | crates/astrid-storage/src/principal_state/staging/journal.rs:323-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/staging/journal.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"083c0f23acdce17e6fa77b089d4366f1ec12ee3d939726cdcaf1746376897bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-gateway/src/state.rs:418-423 | crates/astrid-gateway/src/state.rs:471-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/state.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7288b3af7b06fba48f1d1461a021d9f3934b4944de18183fff1137e507858d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/principal_state/runtime_tree.rs:756-761 | crates/astrid-storage/src/principal_state/runtime_tree/key_recovery.rs:148-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c899dc400e146910f19e6c215b7d17570ba71b0f44ded8db330e411c94beee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule-install/src/authority.rs:185-190 | crates/astrid-cli/src/commands/mcp/lifecycle.rs:296-300 \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/astrid-capsule-install/src/authority.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2076386c5b2fb903071dd8352e6ab6d753e00548262e0c0dedf8b876de30ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/astrid-storage-provider-fskit/src/service.rs:226-231 | crates/astrid-storage-provider-fuse/src/service.rs:304-309 | crates/astrid-storage-provider-winfsp/src/win.rs:345-350 \u2014 before extracting anything, compare \u0060crates/astrid-storage-provider-fskit/src/service.rs\u0060 and \u0060crates/astrid-storage-provider-fuse/src/service.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ccfc8f57534411499475319e7361c5338149ddef6446d76812102228d37ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-cli-mockup/src/ui/views/command.rs:258-263 | crates/astrid-cli-mockup/src/ui/views/shield.rs:237-242 \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/astrid-cli-mockup/src/ui/views/command.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f1971f420460b80301c237a1aa36c55837a0d62d78dfa1113ab5f738144d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/engine/durable/restore.rs:255-260 | crates/astrid-storage/src/engine/durable/restore.rs:328-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/restore.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b50c05273af56ea9cc7a967ffe7a1c50cbcbfa382eec46cc0ef5e35daea3f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-gateway/src/auth.rs:104-109 | crates/astrid-gateway/src/auth.rs:134-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/auth.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de3a04313ac8b4bc13af2bad681f80fd540bcc9cdba1e6c0968eb9288713352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs:241-246 | crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs:250-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/agent_create_helpers/create.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ebe5c1dd4ba36fb9cab2b8de334a62db5e3ba0f9fb6aa290042234e49096e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:1672-1676 | crates/astrid-hooks/src/handler/wasm.rs:117-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"67af2ca19a3e854bd8b7eba665d8eb715d5897f7fb797e527f0d99da634cfe2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs:135-139 | crates/astrid-uplink/src/native/handshake.rs:112-116 \u2014 before extracting anything, compare \u0060crates/astrid-capsule/src/engine/wasm/host/net/handshake.rs\u0060 and \u0060crates/astrid-uplink/src/native/handshake.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/astrid-capsule/src/engine/wasm/host/net/handshake.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3debda122610049353193b7ae61bc91c8c466eac161cd8f2cca0553dcf6ceba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:224-228 | crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:283-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71a6543ef0e606586e49014914317601589158d98497cd71d9d43dd528473d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-gateway/src/revocations.rs:455-459 | crates/astrid-gateway/src/revocations.rs:573-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/revocations.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"65689be5d714f65fdbc2bd638c427ec4613d5710f40d40c09568ceff68e54f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-storage/src/engine/durable/compaction/facts.rs:19-23 | crates/astrid-storage/src/engine/durable/compaction/mod.rs:839-843 \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/astrid-storage/src/engine/durable/compaction/facts.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b80dfbca5aaca9dde6a0d4f3bb19a2e35105d2ad4db5e239e0bbae2803fb3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:207-211 | crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs:301-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/net/tcp_stream.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ad0d6fb130dc8893fc6a0c17e9cda7a97c1817c366f0ecf9abcd34a4b63d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-capsule/src/engine/wasm/mod.rs:100-104 | crates/astrid-mcp/src/server_process.rs:56-60 \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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e500390cd45964fc5f123f1b4328dcb4c78effc9e869b5acb75b93f5fb0357bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-gateway/src/auth.rs:110-114 | crates/astrid-gateway/src/auth.rs:140-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-gateway/src/auth.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ca90efa7ea3fa0d2d37df1e0d4ed38ee027b86832246c71cbdb60543da9754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/astrid-kernel/src/kernel_router/admin/agent_delete.rs:394-398 | crates/astrid-kernel/src/kernel_router/admin/agent_delete.rs:435-439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/agent_delete.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dac984052c7355ee6e0f99297e502657d7d3aec4ab6e19a912b37dc026d28cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/mod.rs:133-142 | crates/astrid-storage/src/volume/hosted/stream.rs:119-128 \u2014 before extracting anything, compare \u0060crates/astrid-storage/src/volume/hosted/mod.rs\u0060 and \u0060crates/astrid-storage/src/volume/hosted/stream.rs\u0060 as WHOLE FILES: this scan already matched 5 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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae7c8abc34fb78e06a431796ccb39447e1340cf63df98403420d0c99b3d0c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/astrid-storage/src/volume/hosted/recover.rs:421-426 | crates/astrid-storage/src/volume/hosted/recover.rs:785-790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"960bd4556a9a180296d277342b715e04de3870fdeff966a8f7d0233a1c9c8f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): scripts/musl_release_manifest.py:125-181 | scripts/windows_release_manifest.py:129-185 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"scripts/musl_release_manifest.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c187bec1d439a63d5dd1e6ca3343f19329cd38a5768ee41534282b3908b00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): scripts/musl_release_manifest.py:56-76 | scripts/windows_release_manifest.py:60-80 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060scripts/musl_release_manifest.py: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de50ee4ff98627a320949297093aa8bab56503cc31386cabb600c1852391bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): scripts/changelog.py:309-323 | scripts/changelog.py:328-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/changelog.py:309\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":"scripts/changelog.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb881696412731f5774a9683fe0a2768b4636feaa6465f5a522775e1d191fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/channel_metadata.py:81-90 | scripts/release_manifest.py:145-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/channel_metadata.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc817ff36b8d0994f9eeff27801109568df4aba4926f754d5cde24cdf0d1e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/musl_release_manifest.py:223-232 | scripts/windows_release_manifest.py:206-215 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060scripts/musl_release_manifest.py:233\u0060 calls \u0060set\u0060, \u0060fail\u0060 and \u0060scripts/windows_release_manifest.py:217\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":"scripts/musl_release_manifest.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0412441d624b9144959fb0a57cec99058ebb5577dbb1cfdf7529abe861d3cbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/runatal_v1_fastcdc.py:139-148 | scripts/runatal_v1_fastcdc.py:150-159 \u2014 both copies are in the same file, so extract the block 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":"scripts/runatal_v1_fastcdc.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b11ddecacdf3fc944a778a775a6d2d915e30a66ff642655678481cd0cb2668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/check_glibc.py:35-43 | scripts/check_static_elf.py:53-61 \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 \u0060scripts/check_glibc.py:35\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":"scripts/check_glibc.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"313b653b697a327f2d03e52abc1cc0f9773a78c2e6d5f194472c7a5aff3710cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): scripts/musl_release_manifest.py:316-324 | scripts/windows_release_manifest.py:294-301 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/musl_release_manifest.py:325\u0060 calls \u0060blake3_file\u0060 and \u0060scripts/windows_release_manifest.py:302\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":"scripts/musl_release_manifest.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d3d7154792c300ca0a6bbf574e7877cf31254cbc0e6c595f4c3dbead8d6235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): scripts/validate_macos_release.py:26-33 | scripts/validate_release_archive.py:47-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. 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":"scripts/validate_macos_release.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f18907460baacf12a5b7a46745615da4c6bde19e0280f12fcc5582aaf954031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/musl_release_manifest.py:306-312 | scripts/windows_release_manifest.py:284-290 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \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":"scripts/musl_release_manifest.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e328653432d20d47b059f9734838dbc46bbb8b13f340ba73f185ae0e9517473b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/runatal_v1_reader.py:121-127 | scripts/runatal_v1_sha384.py:63-69 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_reader.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1701037ade621b4388b310caac420fed12dafa1d1ecfa0e2144d7fa64b1fa85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/validate_macos_release.py:41-47 | scripts/validate_release_archive.py:58-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate_macos_release.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cc1c30f3cce93a64efe11bf6f01e5ae47f9b3a1ef00665c52de246589bf75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/release_manifest.py:289-294 | scripts/windows_release_manifest.py:202-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release_manifest.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6060506c15d5dc662f2162ef96505f2ac0f7be5ab8fb6ad7b63d5a01648ba3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/channel_metadata.py:337-342 | scripts/release_manifest.py:381-385 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/channel_metadata.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03cf638f1751788e3caad8aac782172965ced539d4d3e8778dca57ff92ed155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): scripts/channel_metadata.py:319-326 | scripts/musl_release_manifest.py:289-296 | scripts/windows_release_manifest.py:267-274 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \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":"scripts/channel_metadata.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abdf63b69bc53bd9df9103bf4137659ccbda15c5cbe79512ac5ea45a2b2f675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): scripts/musl_release_manifest.py:45-49 | scripts/oci_export_binding.py:28-32 | scripts/oci_release.py:55-59 | scripts/release_publication.py:25-29 | scripts/windows_release_manifest.py:49-53 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060pathlib.Path\u0060 in one and \u0060Path\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":"scripts/musl_release_manifest.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b2473887a97d30bd69f4bd6235b70aae716ab39db81c565e09ea66fa8b88b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): scripts/musl_release_manifest.py:256-285 | scripts/windows_release_manifest.py:234-263 \u2014 before extracting anything, compare \u0060scripts/musl_release_manifest.py\u0060 and \u0060scripts/windows_release_manifest.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \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":"scripts/musl_release_manifest.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c411a37cb9ff0b3a8ad9835dca49cfc9d55b19aca78b4755827222391bbc13db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/runatal_v1_physical.py:40-45 | scripts/runatal_v1_reader.py:89-94 \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 \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":"scripts/runatal_v1_physical.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f729ac43c28e990f869850ed04fb3aed469590b0efa6e81551e4c70ad9f8d0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/runatal_v1_reader.py:105-110 | scripts/runatal_v1_sha384.py:42-47 \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 \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":"scripts/runatal_v1_reader.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1b4e7a13f03b8986d23af4fefa815aa4d02081a1b4a366566315d99fcb56de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/astrid-workspace/src/sandbox/mod.rs:507-525 | crates/astrid-workspace/src/sandbox/mod.rs:581-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/astrid-workspace/src/sandbox/mod.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3673b9594854abdbf0a8d83299b3162ded9d1b38333601686851a9e886b5314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/astrid-cli-mockup/src/demo/player.rs:280-290 | crates/astrid-cli-mockup/src/demo/player.rs:340-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/demo/player.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"771973b525309b83aa39c4a89f09e6dbbc4f4154cc7fc4dfb87495008f21e8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/astrid-cli-mockup/src/demo/player.rs:183-191 | crates/astrid-cli-mockup/src/demo/player.rs:198-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli-mockup/src/demo/player.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85572a83191720a1b6becb24bef33cbe694df01fab51b7f26c8eda96c8ead41"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project astrid-gateway: astrid-gateway has instability 0.89 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"28772a411c4c62a87fbfd44a254e843052e83381e8d93c1552f82bfb012de66b"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project astrid-hooks: astrid-hooks has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed4b05c60ddc823b39a1f7ca36cb6a8ee578582bff0be7a2441c267b7a624d07"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project astrid-kernel: astrid-kernel has instability 0.93 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a92f84469ce2ef0f0f1c3345bb40c17a64ec891471366389f18216e5fea72a77"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-core: astrid-core: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 24 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aadeea4be17425d5a1d5b95090723a47e0b649a1eea851b598a3dc6b2ec82471"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-crypto: astrid-crypto: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 12 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bcc4aba572fa914672c8183415917e6413de2ed1217199c5fe99019cf5e1ff87"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-runtime: astrid-runtime: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"598b00eac48de9a1e75fe0b2cbe49a503abd53d56c23b10e254e4751959a9e51"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-types: astrid-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":"0529edb10a43d0a1be709aac79f29a8c4c5a85a07ac2becb80510e48ddb8e689"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-config: astrid-config: abstractness 0.00, instability 0.13, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"02aced59d809869cff849935b06bb6a9f0ad7c64eb646248157ac6b040097a52"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-workspace: astrid-workspace: abstractness 0.00, instability 0.17, distance 0.83 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b567c7bdcf2c1420aa7494cfa43edf38edfe6ab8f85e784e9c32f843ced97288"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-capsule-types: astrid-capsule-types: 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":"fbb8171d8c28ca2466c7ecc3719c38f09a36f8c6f174def82521ed40d46de518"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-storage: astrid-storage: abstractness 0.07, instability 0.14, distance 0.79 \u2014 zone of pain \u2014 concrete and depended on by 12 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23722615abae4778ddac0cf538314fb9b9cd1a95f94fa1235d460a5b01a30dca"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-telemetry: astrid-telemetry: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"acf5d2dfffd978b3aaea9fa7db24bb069bed651eeacbffe3a1892f6087970705"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: astrid-capabilities: astrid-capabilities: abstractness 0.00, instability 0.27, distance 0.73 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8eb6c8d8d470d7c960d6f169fb986108b88023d1a48fc8a91423a16291421f0f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HostState (LCOM4 16): HostState\u0027s methods fall into 16 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 16 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/astrid-capsule/src/engine/wasm/host_state.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bd5411a81ea9b74b41af1d024a8952321246012fbb5d048027f97845699b5c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ServerConfig (LCOM4 10): ServerConfig\u0027s methods fall into 10 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 10 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/astrid-mcp/src/config.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a9321c34ab81e8fe314a3888098174627b0463382488e09285b9d8388d29ce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConsentDisplay (LCOM4 7): ConsentDisplay\u0027s methods fall into 7 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 7 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/astrid-cli/src/commands/mcp/consent_display.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc1007a16c17aae2a75b781a89095f30bea83b9eeee4be950e222fd08cbb8fe"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LogConfig (LCOM4 6): LogConfig\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-telemetry/src/logging.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b802cc34bb9fd723ccec5d39c5951b5b27cd36a017214d855a1633aa4531c6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HooksConfig (LCOM4 5): HooksConfig\u0027s methods fall into 5 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 5 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/astrid-hooks/src/config.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9291f0213027e9a47fbf09c04558e0683992cf7f44a1500d302a55c83c8dc3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CapabilitiesDef (LCOM4 4): CapabilitiesDef\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/astrid-capsule-types/src/manifest/capabilities.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"015ff4d92f87fcf8bd02a8cf7a84c8fe8662cfd6b07e1d5a8d809330610992af"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GatewayState (LCOM4 4): GatewayState\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/astrid-cli/src/commands/mcp/gateway.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7275b4cddc010ad9737b86d1b77ebfc5af1037a9952cf2e2b8745cbb13f269f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalStream (LCOM4 4): LocalStream\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/astrid-core/src/local_transport/windows.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593aafaf7efbb551c1abd78f65be8fbe5dbbfe53f69168d2d59642f0ad2751d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalStream (LCOM4 4): LocalStream\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/astrid-core/src/local_transport.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7031a4f2a3c9f8827cef8f3b250e9a9179cbb138520ddf54a690047cf2f3232f"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2182.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2182.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60891deca653397e59f79e064d3905d716a10770534285062451a439a9a22781"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2186.security: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2186.security.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f311d64dfd4a1d42798f4ede831e5ec5740f64efdff0631acb5fd8aaed82c3d"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2188.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2188.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4eb8693fbd7aa1380dc5c371ec7b7b20bf2c00e487ec9a86f07a7e9d8a47552"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2191.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2191.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6918a889651f61dd658324708098ae149a73ade1d8acc27bfa454cd43c713b1b"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2194.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2194.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b76d50be2925ed380261452d55b10a7a5ce1d44f41754a6bdb83054359d00c"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2198.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2198.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb0bd87b605c112008c68face50f9fe6d574cd63202cb9b73ea0dd29b4a369"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2202.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2202.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96049a055939f5cc30ae9c2532459e5828479a52072c9828df29340cea8a341d"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2208.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2208.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45825aeeca876dadb9b314d0d975a467733e22cb2fd2f3a27b427ed7ca81a103"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2209.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2209.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60fac5c8d439979cc7e38052bf26ebd2739e277631e09f46b792b1ab9225401"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2209.security: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2209.security.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed307dde868e8b3b8defb9577768fb61d1b1d83a1238e61e07ec719d17bf396f"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2214.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2214.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afc966ea9b518c699e3565fbbbab1ed3f9e7a89d691c012ca81486a401ddcdb"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2243.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2243.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74635ef85b0c7fa3a257783deabfa40358cda92feb036f950fd0c4450e684dd5"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2287.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2287.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2785f2cbdfc9c132daf0ffcfe014b594afd291c2a4fb9173b26f2a950105fe36"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: 2319.fixed: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"changes/2319.fixed.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f69d13fb87697b36d76360ea1259c92cc6922729dbc99863fe4b262c1a8584"}},{"ruleId":"D13","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":"b7f6d9cd0e1fb00edc75eddb321c7740ea9655e75485fad9be68ab14ae0eb3b4"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"95c5193c6bfc88465d30509a0c132ec5c0ea2d0235402d6ed543561457592ddf"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/engine/wasm/mod.rs: crates/astrid-capsule/src/engine/wasm/mod.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in WasmEngine::load at line 1690. 15 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/engine/wasm/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/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d9addc03d7b5dd0a3d1a49777490f1f0ef619d7d0447168f4d637d4f26fd80"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/mod.rs: crates/astrid-kernel/src/kernel_router/mod.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in astrid_kernel::kernel_router::handle_request at line 179. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/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/astrid-kernel/src/kernel_router/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ab8a50c97aa4c683fcd0a6019613ae645bcc7150d6e774e356e12d115c2b11"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/admin/mod.rs: crates/astrid-kernel/src/kernel_router/admin/mod.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in astrid_kernel::kernel_router::admin::admin_request_method at line 559. 4 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/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/astrid-kernel/src/kernel_router/admin/mod.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a892badefa818a94fba344f9b9f419c74407fcb9b00cfcf0dcf1d4c53483950a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/lib.rs: crates/astrid-kernel/src/lib.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in astrid_kernel::preflight_legacy_audit_sources at line 4090. 20 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/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/astrid-kernel/src/lib.rs"},"region":{"startLine":4090}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f629ee9f8123214107bc3807c44c4ca1092ddac89b3577fd72c61ddc3081f41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-cli/src/dispatch.rs: crates/astrid-cli/src/dispatch.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in astrid::dispatch::dispatch_subcommand at line 133. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/dispatch.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/dispatch.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a98819ef98af117af9e32c7856629f073f62bb48cbc350f595227c0516b1dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-uplink/src/admin_client.rs: crates/astrid-uplink/src/admin_client.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in astrid_uplink::admin_client::topic_suffix at line 43. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-uplink/src/admin_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/astrid-uplink/src/admin_client.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2778f9dc34dfcd3dc0f9ae6291821e43a313a48e6af5678203dd1374934980"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/runatal_v1_reader.py: scripts/runatal_v1_reader.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in runatal_v1_reader.recover 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- scripts/runatal_v1_reader.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_reader.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b039edf6a8b6b9b86f6b1b5360c84f82d195386f7ff5f5bcb975fe6c4be85d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/engine/durable/mod.rs: crates/astrid-storage/src/engine/durable/mod.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in DurableError::fmt at line 447. 2 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/engine/durable/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/astrid-storage/src/engine/durable/mod.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"103baefd71b0b6d4f7a97633e3005961278971a6f514b5a40bb657ec212da4a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs: crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in astrid_kernel::kernel_router::admin::handlers::agent_modify_from_req at line 469. 6 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/handlers/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/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4443a348281d2dd9b010084e2cd0626151f8f83125b5d6eebe50688bfe48cffe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/content/store.rs: crates/astrid-storage/src/content/store.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PrincipalContentStore::rename_batch_replacing at line 601. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/content/store.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/content/store.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33a7d78ef01d503e1d4d064fb42b0fd0a5ebe10e75aa6ab718664236ae0d897"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule-install/src/local.rs: crates/astrid-capsule-install/src/local.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in astrid_capsule_install::local::install_from_local_path_internal at line 547. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule-install/src/local.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/local.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3faa52d1851e446e1ec8a2bc4e862b85d4ecb6298b2beae5b82e6de87915c47"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/dispatcher.rs: crates/astrid-capsule/src/dispatcher.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in astrid_capsule::dispatcher::collect_matching_interceptors at line 717. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/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/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b37a49482d2a8cd7e232210201e50281918d8c95936c422b5b69e323c168bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/engine/durable/engine.rs: crates/astrid-storage/src/engine/durable/engine.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in DurableEngine::prepare at line 613. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/engine/durable/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/astrid-storage/src/engine/durable/engine.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"87131b6640ed3d9264c9e07afa7117f7a047c593cba8013c108bfb7509f102f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/engine/wasm/host/ipc.rs: crates/astrid-capsule/src/engine/wasm/host/ipc.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in astrid_capsule::engine::wasm::host::ipc::publish_inner at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/engine/wasm/host/ipc.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/ipc.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5164e13d609fb3a90ae86ccc5b4b5bbd1e99af4d11a3ce06da808757f22b537"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-core/src/dirs.rs: crates/astrid-core/src/dirs.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AstridHome::ensure at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-core/src/dirs.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/dirs.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0a7e1123ab73dc28c1700bb949e603926a9acefbf6dfc0d15c57ae06486dca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-cli/src/tui/mod.rs: crates/astrid-cli/src/tui/mod.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in astrid::tui::handle_daemon_event 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/tui/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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6809e59a1930505561d9a550a67c32860d13b53a918d879520823baeeccf4068"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-daemon/src/lib.rs: crates/astrid-daemon/src/lib.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid_daemon::run_with_args at line 250. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-daemon/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/astrid-daemon/src/lib.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f274e09b3de64d8a7d43b80741569ebd1cb072c7f5093cecd9dcd0f58862ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/engine/wasm/host/net/mod.rs: crates/astrid-capsule/src/engine/wasm/host/net/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in HostState::bind_tcp at line 481. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/engine/wasm/host/net/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/astrid-capsule/src/engine/wasm/host/net/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc2fa3c884c177c8666751b419356abb70a12f6698a44e8d096b0221333955c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/runatal_v1_physical.py: scripts/runatal_v1_physical.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in runatal_v1_physical.validate_map at line 670. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- scripts/runatal_v1_physical.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a547545e9c46211e1657cf9ffc7a47c85ebb89634a473863006daeb118cba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/engine/wasm/host/process/mod.rs: crates/astrid-capsule/src/engine/wasm/host/process/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in HostState::spawn_persistent at line 664. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/engine/wasm/host/process/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/astrid-capsule/src/engine/wasm/host/process/mod.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27cb4cce89b7a3349632f27f7d8c30cf1fcf50aacf69cab4147137779a6e742"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-uplink/src/native/mod.rs: crates/astrid-uplink/src/native/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in astrid_uplink::native::serve_connection at line 451. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-uplink/src/native/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/astrid-uplink/src/native/mod.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a50c24b316dedf514a869c53fbfe063dcaedff386935b7060db5a4e43016023"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-uplink/src/kernel_client.rs: crates/astrid-uplink/src/kernel_client.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in astrid_uplink::kernel_client::topic_suffix 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-uplink/src/kernel_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/astrid-uplink/src/kernel_client.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba24681cb660e293ae4fc72b013ccb9205893a58e164b632acad6d7ab56d48f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-cli/src/commands/agent/mod.rs: crates/astrid-cli/src/commands/agent/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in astrid::commands::agent::run at line 272. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/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/astrid-cli/src/commands/agent/mod.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c10ca1eb8b0f86aee4b640b90e3ab5d540d9d9d46205a81af7930a02478d2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/ownership.rs: crates/astrid-storage/src/ownership.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in OwnershipSnapshot::validate at line 161. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/ownership.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/ownership.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c783253148fd0998813fdb1d6d7b019a0537b037ff63b6b58b5dfd232605f807"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/engine/wasm/host/approval.rs: crates/astrid-capsule/src/engine/wasm/host/approval.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in HostState::request_approval at line 358. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/engine/wasm/host/approval.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"77529600fab423f64152fd2831b5ace7c58dbe3afdd3ddd993dead68577a114a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/principal_state/runtime_tree.rs: crates/astrid-storage/src/principal_state/runtime_tree.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid_storage::principal_state::runtime_tree::reconcile_running_projection at line 786. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/principal_state/runtime_tree.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/runtime_tree.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef114a385f9efdc3c8f2367fba2be84cb6d52839d0b96c06d3a1e31bd6d76503"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/admin/inheritance.rs: crates/astrid-kernel/src/kernel_router/admin/inheritance.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid_kernel::kernel_router::admin::inheritance::copy_kv_namespaces at line 260. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/inheritance.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/inheritance.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6cd534819c9ea8c58d1ccc01e43e58eb8119ef7efa546ab788b713561c337c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs: crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in astrid_kernel::legacy_migration_barrier::ledger::collect_destination_proofs 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/legacy_migration_barrier/ledger.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"830bdd9d05e77d96b283182383e4563842fb0918114087534120abec22d3cd13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-cli/src/main.rs: crates/astrid-cli/src/main.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in astrid::main at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/main.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf74e617d9e0a226fa267a6f67795b0b12fca5fb3d74cd31fc5ae731f805facb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule/src/discovery.rs: crates/astrid-capsule/src/discovery.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in astrid_capsule::discovery::load_manifest 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/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/astrid-capsule/src/discovery.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aa400939e1991b7049306717eef821a2261a0c7224a940c1c108e596258328"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/engine/durable/representations/activation.rs: crates/astrid-storage/src/engine/durable/representations/activation.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in astrid_storage::engine::durable::representations::activation::append_new_reachable_map_nodes at line 133. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/engine/durable/representations/activation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/activation.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0af8c13693b8fba860b895d188c9a30b1952c85211392cb66cd895c3a39d896"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/storage_mount/filesystem.rs: crates/astrid-kernel/src/storage_mount/filesystem.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid_kernel::storage_mount::filesystem::execute_blocking at line 321. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/storage_mount/filesystem.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/storage_mount/filesystem.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcf00d2da07a7d36e09f9e07c9f59ce3a3c7feb9b622856a20645b2d342c29f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs: crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in astrid_kernel::kernel_router::admin::invite_handlers::invite_redeem at line 124. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/invite_handlers.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cf5e12b53cdf6d3a65f5947ae66f776a61cb205e775b5b1131a76ec0adee96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-capsule-install/src/storage/migration.rs: crates/astrid-capsule-install/src/storage/migration.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in astrid_capsule_install::storage::migration::migrate_native_capsules_with_report at line 92. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule-install/src/storage/migration.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/storage/migration.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92c317b5efa0448650a9a12fda55e01fcd55f4049ab57d30b9e349aa55ea3b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs: crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in astrid_kernel::kernel_router::admin::distro_handlers::self_grant at line 104. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/distro_handlers.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0a419f5447017fdedb591e5b4c13694c1e9b11cee8001b14fab145f3deb415"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-storage/src/volume/hosted/recover.rs: crates/astrid-storage/src/volume/hosted/recover.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid_storage::volume::hosted::recover::recover_from_headers at line 198. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/volume/hosted/recover.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/recover.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1046d8b7eb172f1c9eb09a11104774ef8935b0d149d88178c11223dcb0e19925"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/astrid-cli/src/commands/setup.rs: crates/astrid-cli/src/commands/setup.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in astrid::commands::setup::run_report 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/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/astrid-cli/src/commands/setup.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a2afbc4ca916f677f3b1a5063a0acbab39560f9bb0715abc22a20cd916cf15"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/daemon.rs: crates/astrid-cli/src/commands/daemon.rs changed 15 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is astrid::commands::daemon::cleanup_daemon_runtime_for_home at line 827), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): avoid repeated cleanup decoding and release start fences (#2209)\u201D; \u201Cfix(cli): detach daemon boot stderr from piped callers (#2116)\u201D; \u201Cfix(storage): tolerate Finder metadata during stop (#2109)\u201D; \u201Cfix(cli): select daemon workspace independently of client context (#2099)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/daemon.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/daemon.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e2c53dba1cca322127facb100cb45bb116d4b6466d7f1302c65c84901f8cf0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/init.rs: crates/astrid-cli/src/commands/init.rs changed 11 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is astrid::commands::init::collect_variables at line 478), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(init): preserve configured values when applying distro defaults (#1985)\u201D; \u201Cfix(cli): refresh selected authenticated Distro members (#1971)\u201D; \u201Cfix(release): preserve migration and provider setup (#1951)\u201D; \u201Cfix(runtime): handle optional credentials and clean daemon retirement (#1911)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/init.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/init.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb87b79786a9a2d55d846f2571ca6c88e4496760e888a228411224cdddefd78"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/mcp/mod.rs: crates/astrid-cli/src/commands/mcp/mod.rs changed 12 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is astrid::commands::mcp::serve at line 184), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mcp): report correlated invocation failures promptly (#2122)\u201D; \u201Cfix(cli): select daemon workspace independently of client context (#2099)\u201D; \u201Cfix(cli): keep diagnostics outside the runtime projection (#2062)\u201D; \u201Cfix(mcp): retire gateways after the final host disconnects (#1896)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/mcp/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/astrid-cli/src/commands/mcp/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a6e6f8a398a8cfcb0089d7b1fa84a9b4a1ce4ba472ad04aaf27d4f70cd76a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/engine/durable/compaction/volume.rs: crates/astrid-storage/src/engine/durable/compaction/volume.rs changed 9 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is DurableEngine::compact_volume_locked at line 23), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): make index and fallback volume recovery linear (#2184)\u201D; \u201Cfix(storage): checkpoint volume roots during compaction (#2022)\u201D; \u201Cfix(storage): reclaim obsolete representation metadata on compaction (#2020)\u201D; \u201Cfix(storage): publish volume index before reopen (#1636)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/engine/durable/compaction/volume.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/compaction/volume.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b4fb6fc339c71cfe2001e86ea6e8808dd1e6252132c3914a1cae480b136a2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/cli.rs: crates/astrid-cli/src/cli.rs changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is astrid::cli::parse_distro_capsule_name at line 613), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): select daemon workspace independently of client context (#2099)\u201D; \u201Cfix(cli): refresh selected authenticated Distro members (#1971)\u201D; \u201Cfix(capsules): purge principal KV on removal (#1955)\u201D; \u201Cfix(mcp): retire gateways after the final host disconnects (#1896)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/cli.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/cli.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c508c92c852c8c748c9c48684f759da3223e333d3bfc16649c66303aeec0e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-config/src/types.rs: crates/astrid-config/src/types.rs changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is SparkSection::is_empty at line 774), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mcp): retire gateways after the final host disconnects (#1896)\u201D; \u201Cfix(macos): make FSKit discovery and callback mounting work (#1874)\u201D; \u201Cfix(config): remove host-side model configuration (#1829)\u201D; \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-config/src/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/astrid-config/src/types.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1522e878b44a5106669c448c74c06e73c186691fb565aa79f1d44b7f064a912"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-kernel/src/kernel_router/install.rs: crates/astrid-kernel/src/kernel_router/install.rs changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is astrid_kernel::kernel_router::install::validate_install_provenance at line 380), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(kernel): preserve principal capsule configuration on grant (#2035)\u201D; \u201Cfix(init): preserve configured values when applying distro defaults (#1985)\u201D; \u201Cfix(cli): refresh selected authenticated Distro members (#1971)\u201D; \u201Cfix(runtime): apply install env once before activation (#1976)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/install.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/install.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62c4da41ec16abb7eaee6c31b5bf208cd1fd4f447d3a94812ccd0e54c8282ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/volume/hosted/mod.rs: crates/astrid-storage/src/volume/hosted/mod.rs changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is Operation::decode at line 470), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): bound dirty-commit extent-map amplification (#2017)\u201D; \u201Cfix(storage): bound hosted extent mutation scans (#1889)\u201D; \u201Cfix(storage): skip full flushes of unchanged hosted volumes (#1887)\u201D; \u201Cfix(storage): make hosted volume open millisecond-class (#1640)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/volume/hosted/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/astrid-storage/src/volume/hosted/mod.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9f273fd61a21e5fe0f2af9e04d7f706c4c3602280b1ea764c0e315af779cbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-events/src/bus.rs: crates/astrid-events/src/bus.rs changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is EventBus::publish_reserved at line 292), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(events): admit scope before retaining delivery snapshots (#2203)\u201D; \u201Cfix(ipc): report nested capsule delivery failures (#2129)\u201D; \u201Cfix(streaming): preserve bounded delivery during provider bursts (#2045)\u201D; \u201Cfix(approval): bind responses to authenticated request owners (#1939)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-events/src/bus.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-events/src/bus.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"967449690042529a4d16dfcbd42d32e88df23bd36b5606f1e4c529dd2b96d474"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/mcp/gateway.rs: crates/astrid-cli/src/commands/mcp/gateway.rs changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is astrid::commands::mcp::gateway::read_gateway_request_inner at line 880), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): select daemon workspace independently of client context (#2099)\u201D; \u201Cfix(mcp): retire gateways after the final host disconnects (#1896)\u201D; \u201Cfix(mcp): preserve connected sessions across quiet periods (#1894)\u201D; \u201Cfix(cli): fence runtime shutdown generations (#1809)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/mcp/gateway.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/mcp/gateway.rs"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"274ce2ee0d904ac1594597ef5b1a5e3d8fa2a3b8587c368cba34322949983646"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-audit/src/storage.rs: crates/astrid-audit/src/storage.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is KvAuditStorage::get_session_entries at line 877), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D; \u201Cfix(audit): freeze layout-1 source during MOVE (#1599)\u201D; \u201Cfix(audit): blind payload MOVE into native TreeKvStore (#1597)\u201D; \u201Cfix(audit): move layout-1 history with batched native ingest (#1588)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-audit/src/storage.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-audit/src/storage.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff23f31b94a88e4352c9c7430c036baf690597a561216af2855b51054cf6828d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/init_grant.rs: crates/astrid-cli/src/commands/init_grant.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is astrid::commands::init_grant::validated_grant_set_for_reuse at line 301), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): release provisioning flock when its guard ends (#2193)\u201D; \u201Cfix(init): honor explicit grants after completed batch resume (#1906)\u201D; \u201Cfix(runtime): stop with exactly astrid.volume\u201D; \u201Cfix(cli): bind signed Distro.toml apply to caller grants (#1827)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/init_grant.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/init_grant.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62eb5565de472c3883b5854ab3086be4cdf1d71970b14b394fb4f0382df3b93"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/bootstrap.rs: crates/astrid-cli/src/bootstrap.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is astrid::bootstrap::run_or_connect at line 144), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): keep diagnostics outside the runtime projection (#2062)\u201D; \u201Cfix(config): remove host-side model configuration (#1829)\u201D; \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D; \u201Cfix(kernel): admit leftover layout-1 homes without identity (#1579)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/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/astrid-cli/src/bootstrap.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c8089818bc5618d05aab1dd8404bad0b8b39be718d3c4b88330e622df6c074"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/daemon_control.rs: crates/astrid-cli/src/commands/daemon_control.rs changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is astrid::commands::daemon_control::terminate_known at line 378), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): refuse readiness waits without a live daemon (#2058)\u201D; \u201Cfix(cli): wait for acknowledged daemon finalization (#2052)\u201D; \u201Cfix(release): preserve migration and provider setup (#1951)\u201D; \u201Cfix(runtime): handle optional credentials and clean daemon retirement (#1911)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/daemon_control.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/daemon_control.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"735c0fdf0d6ba58c2120e6717c57f627931f0544e15359d5aa17827cca3d5d2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-capsule/src/lib.rs: crates/astrid-capsule/src/lib.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is astrid_capsule::test_support::validate_local_handshake at line 78), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(audit): make host-audit recording ordered and loss-accounted (#2003)\u201D; \u201Cfix(capsule): bound WASM growth and in-flight fuel (#1553)\u201D; \u201Cfix(runtime): isolate executable capsules by authority (#1487)\u201D; \u201Cfix(kernel): enumerate run-loop capsule tools via the describe fan-out (#1198) (#1382)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/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/astrid-capsule/src/lib.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d2860c67889dc32ac3cc3e4f0055c1d1ec65f87de07b8aebd4d7f36f8102e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-core/src/platform_fs.rs: crates/astrid-core/src/platform_fs.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is astrid_core::platform_fs::replace_executable_set_by_rename at line 842), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(core): use captured descriptors for macOS private-path ACL checks\u201D; \u201Cfix(storage): recover stopped-install runtime key residue (#2079)\u201D; \u201Cfix(runtime): stop with exactly astrid.volume\u201D; \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-core/src/platform_fs.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/platform_fs.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"b286d283c870625aee7fec6dd8186c7b5802f77878c05b96bc9fd0164fe99963"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/engine/durable/representations/volume.rs: crates/astrid-storage/src/engine/durable/representations/volume.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is RepresentationStore::activate_volume at line 60), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): reclaim obsolete representation metadata on compaction (#2020)\u201D; \u201Crevert: remove #1611 LooseBlob convert from main (#1614)\u201D; \u201Cfix(storage): convert LooseBlob homes into packed arena frames (#1611)\u201D; \u201Cfix(storage): stop journaling a full objects.index snapshot per file (#1601)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/engine/durable/representations/volume.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/engine/durable/representations/volume.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b33165b0ebc38f89e4d261b7c00cfb2c596ba6fc8295c136dd730453b8bfab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-capsule-install/src/authority.rs: crates/astrid-capsule-install/src/authority.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is astrid_capsule_install::authority::retire_legacy_authority_receipt at line 226), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): preserve private runtime identity lifecycle (#1866)\u201D; \u201Cfix(storage): pack durable runtime tree including wasm (#1617)\u201D; \u201Cfix(capsule): retire relocated leftover authority receipts (#1585)\u201D; \u201Cfix(install): pin approved capsule executables (#1555)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule-install/src/authority.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule-install/src/authority.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf620819255be07e9582cfba4fb12f112b937bfb2e57a61664f941952ac5c5b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/capsule/install_daemon.rs: crates/astrid-cli/src/commands/capsule/install_daemon.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is astrid::commands::capsule::install_daemon::validate_values at line 441), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): refresh selected authenticated Distro members (#1971)\u201D; \u201Cfix(runtime): apply install env once before activation (#1976)\u201D; \u201Cfix(release): preserve migration and provider setup (#1951)\u201D; \u201Cfix(capsule): skip completed principal-scoped installs before InstallCapsule (#1844)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/capsule/install_daemon.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/capsule/install_daemon.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8456b2b73660f90b7466cdfe16c2ac4598ae4247b84e1eb45e01b93b3211f068"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/daemon/projection.rs: crates/astrid-cli/src/commands/daemon/projection.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is astrid::commands::daemon::projection::retire_disconnected_projection at line 65), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): avoid repeated cleanup decoding and release start fences (#2209)\u201D; \u201Cfix(capsule): restore runtime identity before install inspection (#2071)\u201D; \u201Cfix(runtime): unify shutdown finalization and preserve capsule content (#1908)\u201D; \u201Cfix(mcp): retire gateways after the final host disconnects (#1896)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/daemon/projection.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/daemon/projection.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5e486c94cd250c32436428810a2d75bc3d4a9a827deafc62a9210d62426c01"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-config/src/loader.rs: crates/astrid-config/src/loader.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is astrid_config::loader::load_with_layout at line 65), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(config): load canonical user configuration consistently\u201D; \u201Cfix(config): remove host-side model configuration (#1829)\u201D; \u201Cfix(kernel): admit leftover layout-1 homes without identity (#1579)\u201D; \u201Cfix(runtime): isolate executable capsules by authority (#1487)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-config/src/loader.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/loader.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae57bfc8a185efdc7794f5c8addb6dec7ec828b4b14078940e4294c8bf8e4d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-types/src/ipc.rs: crates/astrid-types/src/ipc.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is IpcPayload::from_json_value at line 495), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ipc): report nested capsule delivery failures (#2129)\u201D; \u201Cfix(mcp): report correlated invocation failures promptly (#2122)\u201D; \u201Cfix(uplink): recover cancelled turns and subsequent input (#2046)\u201D; \u201Cfix(approval): bind responses to authenticated request owners (#1939)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-types/src/ipc.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-types/src/ipc.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48ae5e2df91015f447c9c9305125ceb9b62c76b5ed523276070e8802a6e1ffe"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-capsule/src/capsule.rs: crates/astrid-capsule/src/capsule.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is CompositeCapsule::load at line 309), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(capsule): retire compiled cache keys after final runtime release (#2199)\u201D; \u201Cfix(streaming): preserve bounded delivery during provider bursts (#2045)\u201D; \u201Cfix(runtime): isolate executable capsules by authority (#1487)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-capsule/src/capsule.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/capsule.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0657f4436037f61dac30ea19a154a45f9306c80f3345fa9cf3736045d8e19de8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-kernel/src/kernel_router/rate_limit.rs: crates/astrid-kernel/src/kernel_router/rate_limit.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is astrid_kernel::kernel_router::rate_limit::rate_limit_max at line 161), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(release): preserve migration and provider setup (#1951)\u201D; \u201Cfix(capsule): skip completed principal-scoped installs before InstallCapsule (#1844)\u201D; \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/rate_limit.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/rate_limit.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8050cbb097791cf42b9ffc34c8a1dfe848f6d2b42f434ddc28a85b4673f7a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/principal_state/contiguous_ingest.rs: crates/astrid-storage/src/principal_state/contiguous_ingest.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is RuntimePrincipalStore::replace_contiguous_files_removing_exact at line 82), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): stop with exactly astrid.volume\u201D; \u201Cfix(storage): pack principal home imports in arena (#1609)\u201D; \u201Cfix(storage): stop journaling a full objects.index snapshot per file (#1601)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/principal_state/contiguous_ingest.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/principal_state/contiguous_ingest.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc36dae82b36d8706b5256c788df6f77e4c706083c0ed062869ac8ae8d6b155d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/distro/lock.rs: crates/astrid-cli/src/commands/distro/lock.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is astrid::commands::distro::lock::write_lock_to_daemon at line 175), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): migrate released distro reference spelling (#2093)\u201D; \u201Cfix(capsule): skip completed principal-scoped installs before InstallCapsule (#1844)\u201D; \u201Cfix(cli): bind signed Distro.toml apply to caller grants (#1827)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/distro/lock.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/distro/lock.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da041c8e6c7656f8db3355a695822427d2130517c9282175755c0cc51a18a14"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage-provider-fskit/src/main.rs: crates/astrid-storage-provider-fskit/src/main.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is astrid_storage_provider_fskit::rollback_after_native_failure at line 355), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): retry transient busy FSKit unmounts (#2081)\u201D; \u201Cfix(macos): make FSKit discovery and callback mounting work (#1874)\u201D; \u201Cfix(macos): hide FSKit container behind CLI (#1806)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage-provider-fskit/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/astrid-storage-provider-fskit/src/main.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2ee42236e3a91e0247a1e0bc72dc2d866b5389008415bf1b9e1f65b662f29d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs: crates/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is astrid_kernel::kernel_router::admin::handlers::env_handlers::env_list at line 341), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): migrate retained principal env and secret scopes (#2090)\u201D; \u201Cfix(init): preserve configured values when applying distro defaults (#1985)\u201D; \u201Cfix(runtime): layout-2 live upgrade liveness and AOS MCP argv (#1607)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/handlers/env_handlers.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"e414037a8c33e209c3df6351f40304d0b3059231e26a00a92bb81352e0e3e928"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage-provider-fskit/src/service.rs: crates/astrid-storage-provider-fskit/src/service.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is astrid_storage_provider_fskit::service::service_loop at line 265), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): retry transient busy FSKit unmounts (#2081)\u201D; \u201Cfix(storage): confirm process projection unmount before teardown (#1969)\u201D; \u201Cfix(macos): make FSKit discovery and callback mounting work (#1874)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage-provider-fskit/src/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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"df429ce3f9e6a3aa7844765e0171d85e37fde4bc25493b903fdcf756d70a1035"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/volume/hosted/open.rs: crates/astrid-storage/src/volume/hosted/open.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is HostedFileVolume::open at line 68), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): bound dirty-commit extent-map amplification (#2017)\u201D; \u201Cfix(storage): skip full flushes of unchanged hosted volumes (#1887)\u201D; \u201Cfix(storage): make hosted volume open millisecond-class (#1640)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/volume/hosted/open.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/open.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bc8262d47bcaab4819c3afdd35fdda98d0011ee4dd2bd3adc3f06c3ad1416a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/volume/hosted/reclaim.rs: crates/astrid-storage/src/volume/hosted/reclaim.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is astrid_storage::volume::hosted::reclaim::recover_artifacts at line 58), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): bound dirty-commit extent-map amplification (#2017)\u201D; \u201Cfix(storage): skip full flushes of unchanged hosted volumes (#1887)\u201D; \u201Cfix(storage): make hosted volume open millisecond-class (#1640)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/volume/hosted/reclaim.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/reclaim.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cfcb471b59e089038d39d89a5c50be44b4b5ed23b952ddb6c0a4ac94178a6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-core/src/profile/mod.rs: crates/astrid-core/src/profile/mod.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is PrincipalProfile::default at line 483), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(approval): persist remembered command consent (#1958)\u201D; \u201Cfix(core): load existing principal profiles across unknown keys and zero CPU fuel (#1575)\u201D; \u201Cfix(capsule): bound WASM growth and in-flight fuel (#1553)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-core/src/profile/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/astrid-core/src/profile/mod.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dce7c1ae5f7a9d466028a055ba8dbeda9203c3f7ecfa7b6a87d07513190c9d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-core/src/profile/validation.rs: crates/astrid-core/src/profile/validation.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is Quotas::validate at line 57), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(approval): persist remembered command consent (#1958)\u201D; \u201Cfix(core): load existing principal profiles across unknown keys and zero CPU fuel (#1575)\u201D; \u201Cfix(capsule): bound WASM growth and in-flight fuel (#1553)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-core/src/profile/validation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-core/src/profile/validation.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f952ec9674ea0404cd9494f4b649c022d72f84ac8418eb87c6337443750429d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-storage/src/volume/hosted/stream.rs: crates/astrid-storage/src/volume/hosted/stream.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is astrid_storage::volume::hosted::stream::append_from at line 56), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(storage): skip full flushes of unchanged hosted volumes (#1887)\u201D; \u201Cfix(storage): make hosted volume open millisecond-class (#1640)\u201D; \u201Cfix(storage): hosted volume magic is ASTVOL1 (#1604)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-storage/src/volume/hosted/stream.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-storage/src/volume/hosted/stream.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab12ca2444290db0d3aa8f037679f8b5003af1e4039fb04087614e4f24e8e9d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/distro/trust.rs: crates/astrid-cli/src/commands/distro/trust.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is astrid::commands::distro::trust::verify_and_pin at line 133), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): stop with exactly astrid.volume\u201D; \u201Cfix(cli): require preinstalled Distro signing pins (#1831)\u201D; \u201Cfix(cli): pin official Unicity CE Distro identity to release keys (#1830)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/distro/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/astrid-cli/src/commands/distro/trust.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb14712080ec1227d96866b4e7af2b8cfcd14ef0669f24dbb0ae191360dd85a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/astrid-cli/src/commands/init_signed_source.rs: crates/astrid-cli/src/commands/init_signed_source.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is astrid::commands::init_signed_source::resolve_signed_capsules at line 80), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(distro): resolve relative local capsule members (#1832)\u201D; \u201Cfix(cli): require preinstalled Distro signing pins (#1831)\u201D; \u201Cfix(cli): pin official Unicity CE Distro identity to release keys (#1830)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 06:15:38 \u002B04:00\u0027 --until=\u00272026-10-27 06:15:38 \u002B04:00\u0027 --full-history --no-merges -- crates/astrid-cli/src/commands/init_signed_source.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-cli/src/commands/init_signed_source.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a65d6790e5230be4c58629234220914b2dbd8ed101e0d5628deed6e34c3dd12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: \u0060unshare(CLONE_NEWUSER | CLONE_NEWNS)\u0060 \u002B uid/gid-map setup before 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/astrid-vfs/src/workspace_cow/overlayfs.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6573a9da398b361b207d2720796ce0c1400385d19a6ea60c14d1066e14bc32c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clear ephemeral keys (e: prefix) on boot when the key \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/astrid-kernel/src/lib.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ceaca548504399c16d57c68d9eed082064f374f230edb81493689e358fe27a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: implement real agent handler when the LLM integration is more mature. \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/astrid-hooks/src/handler/agent.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"734605da35474632106b9bcd7c9f79a1e51fc621994769909c0a81f80fc509a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: implement real agent handler. For now, it returns a stub response. \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/astrid-hooks/src/handler/agent.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2214aa52b2a1864132ef717aaae6c89edcfaa8b177653db24cfcc5ff5b290635"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// interceptor events; topic enumeration through IPC is a TODO \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/astrid-gateway/src/routes/capsules.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae4278c63cd63f70c9b91b6fa4e3a0911b0a0b352e66fa0c19a3414703e2146"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: extract text from MultiPart content once TUI \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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3b16c80a3e0367d831f518536a0b2e403c3b57b616360b411b22069c820d0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(http): map TLS handshake / certificate failures to the contract\u0027s \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/astrid-capsule/src/engine/wasm/host/http/backend.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a14e6af63a6941465df6a50ad7c1c3a0fc12fed0f3a2920e3316dc9092eb13f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(http@1.1.0): streaming request body \u2014 follow-up. The streaming \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/astrid-capsule/src/engine/wasm/host/http/mod.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b01def1ea129cd14ea27ee5e354e6edb28ffdd47f402973ee9d719f77441851"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(http@1.1.0): surface HTTP trailers \u2014 follow-up. reqwest does not \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/astrid-capsule/src/engine/wasm/host/http/mod.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b897ac8c86d1f63e2cecf2abfed7095ba5165a4f053f6e319ae51ecb1705e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(http@1.1.0): streaming request body \u2014 follow-up. \u0060http_upload_start\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/astrid-capsule/src/engine/wasm/host/http/mod.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b5db16840b174ca07f034566323d1ed77eec5365a5beac9bfc2361f5e79b80"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 5 of 33 project(s) overshoot their size bounds, lowering Project Cohesion to 7.0/10. The most over is \u0060crates/astrid-storage\u0060 (87410 LoC, 445 module-visible types across 39 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb9c6227b838cdfcde6f6a3992d960a9d2e10c0df3e02509e985784099925389"},"properties":{"commitSha":"c9cbdb8a240bd416718bea5ce7fc68a1e4b2ed69"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"227081434fea9a46cdf7aba91c148f116ea9f4ca061db16285d12ff42a0b1bf3"},"properties":{"commitSha":"c9cbdb8a240bd416718bea5ce7fc68a1e4b2ed69"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"338407871e9c53d2625a5754ccc8f84f16e799149817c1d1e310aef9e6213485"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2af69a68d663e09bbfa050b8c4cbdadfced954337205de429d55d8c7506f97a6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"57841fb3a31c16a59285ce5ed7b557dd7d4e4ffe0170a3cb4d778a051bbc48eb"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"1254920ff37895ea7a7ad23a3287241ef53ae8ed0e49fcb88bd618a50915ee76"},"properties":{"dependency":{"package":"registry","version":"1.3.0","advisory":"RUSTSEC-2025-0026","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":"77d4d5d4357ce0a5ade8f6f76c84914f1a2c80f9fe7358d9854254b760de650a"},"properties":{"dependency":{"package":"zvariant","version":"4.2.0","advisory":"RUSTSEC-2026-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f6329e2b29fe1ee1dd724766af980b151618490b720201bbdc1839704210c3e"},"properties":{"dependency":{"package":"zbus_names","version":"3.0.0","advisory":"RUSTSEC-2026-0371","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f67f0700e108bacf2f3dfd2008273e31f01b0ea1f2d5f9ef71c4f46ace73bbe9"},"properties":{"dependency":{"package":"zvariant_derive","version":"4.2.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.53.1","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":"ca383df8f93c1fcb449201c7c47b9fc487e55acf31a9bb60212d29fe36dde189"},"properties":{"dependency":{"package":"block-buffer","version":"0.10.4","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 tests.rs: \u0060crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs\u0060 and \u0060crates/astrid-kernel/src/kernel_router/admin/tests.rs\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006058b5bbd7\u0060 fix(cli): bind signed Distro.toml apply to caller grants (#1827); \u00600da5b382\u0060 fix(kernel): preserve device attenuation across authority views (#1238) (at that commit the file was still \u0060crates/astrid-kernel/src/kernel_router/admin/handlers.rs\u0060); \u0060cb2a988a\u0060 feat(cli): grant installed distro capsules to the target principal (#\u2026 (at that commit the file was still \u0060crates/astrid-kernel/src/kernel_router/admin/handlers.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/kernel_router/admin/handlers/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cad3cf287ecd412c2727c54324becbe7c13907fc7bea09e70b4cfd2b80889c3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: capsule.rs \u2194 manifest_gate.rs: \u0060crates/astrid-capsule/src/capsule.rs\u0060 and \u0060crates/astrid-capsule/src/security/manifest_gate.rs\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006067303316\u0060 fix(capsule): retire compiled cache keys after final runtime release \u2026; \u0060e1cfc0ac\u0060 feat(manifest): Cargo-shaped Capsule.toml schema with [publish] / [su\u2026; \u006060d0ae3b\u0060 refactor: remove [[llm_provider]] from kernel manifest (#610) (at that commit the file was still \u0060crates/astrid-capsule/src/security.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/capsule.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7b554b7ce08012f588f9187ba3cb1ccb40688565612088b221ec2cc70a705a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: registry.rs \u2194 manifest_gate.rs: \u0060crates/astrid-capsule/src/registry.rs\u0060 and \u0060crates/astrid-capsule/src/security/manifest_gate.rs\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060e1cfc0ac\u0060 feat(manifest): Cargo-shaped Capsule.toml schema with [publish] / [su\u2026; \u006060d0ae3b\u0060 refactor: remove [[llm_provider]] from kernel manifest (#610) (at that commit the file was still \u0060crates/astrid-capsule/src/security.rs\u0060); \u006067351d24\u0060 refactor: remove ToolDef, CronDef, and dead cron host functions (#593) (at that commit the file was still \u0060crates/astrid-capsule/src/security.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44b7b3bf4f9544434cbd9cc4c9ccfc1c812b2708ed221378bd8ea7975e83cba"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.95: rust-toolchain.toml declares Rust 1.95 as this project\u0027s toolchain file, and Rust 1.95, superseded by 1.96 on 2026-05-28 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-28 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde701f9c40b0b8cb202babf3f8d8da48dda44162595030f1b0a8f7d57710684"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: DeferredResolutionStore.load_from_store: \u0060DeferredResolutionStore.load_from_store\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/repository). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-approval/src/deferred.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5599de53623cec569ab16009c8553f671d4d98ef59e0a9158e31b691f38db4d"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: CapabilityStore.read_persistent_token_any_principal: \u0060CapabilityStore.read_persistent_token_any_principal\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/repository). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capabilities/src/store.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"446abdf8e0e78e54d0602acb3f9c8b62c2c144217df6204355e5092bf1500b13"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: WasmHandler.new: \u0060WasmHandler.new\u0060 is an event/message handler that blocks the executor on a synchronous wait (\u0060block_on\u0060/\u0060blocking_recv\u0060/\u0060thread::sleep\u0060/a blocking \u0060recv()\u0060) \u2014 it stalls the handler and serialises throughput, and on an async runtime can starve the reactor. Either move the awaited work off the handler (\u0060tokio::spawn\u0060/\u0060Handle::current().spawn\u0060, if the result isn\u0027t needed inline) or make the handler itself \u0060async\u0060 so it can \u0060.await\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-hooks/src/handler/wasm.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aec96897c100bbb37afafe765d5e007eb3fedd62d08f45d53f52bf3f4e9470b"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: WasmHandler.build_host_state: \u0060WasmHandler.build_host_state\u0060 is an event/message handler that blocks the executor on a synchronous wait (\u0060block_on\u0060/\u0060blocking_recv\u0060/\u0060thread::sleep\u0060/a blocking \u0060recv()\u0060) \u2014 it stalls the handler and serialises throughput, and on an async runtime can starve the reactor. Either move the awaited work off the handler (\u0060tokio::spawn\u0060/\u0060Handle::current().spawn\u0060, if the result isn\u0027t needed inline) or make the handler itself \u0060async\u0060 so it can \u0060.await\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-hooks/src/handler/wasm.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e080f75c2c3f265733960548e4b0713f179ad3523e92275e83bf0096c517101"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 22/27 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060crates/astrid-emit\u0060, \u0060crates/astrid-storage-chunker-evidence\u0060, \u0060crates/astrid-storage-provider-fskit\u0060, \u0060crates/astrid-storage-provider-fuse\u0060, \u0060crates/astrid-storage-provider-winfsp\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022-nightly.\u0022 in version and nightly_commit is None\u0060 appears character-identically in 3 files \u2014 scripts/musl_release_manifest.py, scripts/release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd792b3081fec37c67be970b554459246375f4d5336483dd2e689887f1577c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060archive_path.is_symlink() or not archive_path.is_file()\u0060 appears character-identically in 2 files \u2014 scripts/validate_macos_release.py, scripts/validate_release_archive.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate_macos_release.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d10aa7fa9c25a4b9aa9742c1d6254d6a16f198550abc81457ef945f120633d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.verify_artifacts or args.require_bundles\u0060 appears character-identically in 3 files \u2014 scripts/musl_release_manifest.py, scripts/release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"3036995192ff37959e1ead633392f87d2469d4636cd5c429a600abf4d450db5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060directory.is_dir() and not directory.is_symlink()\u0060 appears character-identically in 2 files \u2014 scripts/release_draft_recovery.py, scripts/release_publication.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release_draft_recovery.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b08210370b2f92a838dd72bc61d7bf21e36faa6ca136bb8081c95cab11327e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry[\u0022asset\u0022] != asset or entry[\u0022sigstore-bundle\u0022] != f\u0022{asset}.sigstore.json\u0022\u0060 appears character-identically in 3 files \u2014 scripts/musl_release_manifest.py, scripts/release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2decda914f0f68042ad0d7f8fddfba91c3866b6214f00bdb81ead51167919d36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(size, int) and not isinstance(size, bool) and size \u003E 0\u0060 appears character-identically in 2 files \u2014 scripts/oci_export_binding.py, scripts/oci_release.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/oci_export_binding.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc97057c77183d9720e8a7c359bef1d3c7b9842b3f3d570025b3e341016c768e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060legacy_manifest_blake3 is None or legacy[\u0022metadata-blake3\u0022] != legacy_manifest_blake3\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abcdf462acc516bbeb5b665e2394ec519a7427256e2a9297c5d88acd97b1525"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060member.isdir() and member.name.endswith(\u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/oci_export_binding.py, scripts/oci_release.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/oci_export_binding.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f65458f4ce2c996532f1261a524bf556242ec94eea96510f624a8eb6f22ae2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nightly_commit is not None and nightly_commit != data[\u0022source-commit\u0022]\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a0e87f8c4f3e920efcefa8e73084d52bd816b15726666fdbde5cfc85db4857"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not algorithm or not construction or not length\u0060 appears character-identically in 4 files \u2014 scripts/runatal_v1_physical.py, scripts/runatal_v1_reader.py, scripts/runatal_v1_sha384.py, scripts/runatal_v1_sketch.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_physical.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e81733cc4a3f5ccf6f8aa27ff32e8db28fd3708bcaa347051d4b461c723faaf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not bundle.is_file() or bundle.is_symlink()\u0060 appears character-identically in 3 files \u2014 scripts/musl_release_manifest.py, scripts/release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2dfd1a48ab77035259a802d3e12bbce0a8ea34bfa8ae72162866710923072b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(data[\u0022source-commit\u0022], str) or release_manifest.COMMIT.fullmatch(data[\u0022source-commit\u0022]) is None\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c60f3aafcb63913de6ccc7bd1eea097b1805e24fd456028b39301506c861d1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(entry, dict) or set(entry) != release_manifest.TARGET_KEYS\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb6a498647cb19bb9c99d70362a2c0b4ab0ff83862d088c81441aceccb82c94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(legacy, dict) or set(legacy) != LEGACY_RELEASE_KEYS\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4d7e4f69805d259b98dc077814bf2d753203a0aca7bed6530147263c0ba5bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(legacy.get(\u0022metadata-blake3\u0022), str) or release_manifest.HEX_64.fullmatch(legacy[\u0022metadata-blake3\u0022]) is None\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c1b3f2d339883e75269c7d541ca212be261058b9c82c6b082035c576170ff3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(value, str) or release_manifest.HEX_64.fullmatch(value) is None\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e58cdb7ee8101cb13e6a1ca0016cb66d44b33c1641fe0df9bbde9be36abed5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not path.is_file() or path.is_symlink() or path.stat().st_size != entry[\u0022size\u0022]\u0060 appears character-identically in 3 files \u2014 scripts/musl_release_manifest.py, scripts/release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad520dfb937903da38d6241fb07bcb6dc22223097e8629d35599eb64d1b310"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.is_symlink() or not stat.S_ISREG(path.lstat().st_mode)\u0060 appears character-identically in 2 files \u2014 scripts/release_draft_recovery.py, scripts/release_publication.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release_draft_recovery.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d6ea11121bc53483637e2e3f2a4f5ad4d24d1102ac594eb3a462282c6dfb74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060set(blake3) != expected_all or set(sha256) != expected_all\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b745da8a4da283ada12213aee728197fc6801f4591c9329ae23efbd0c0b3c84b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target[:2] != (1, 1) or len(target[2]) != 32\u0060 appears character-identically in 2 files \u2014 scripts/runatal_v1_reader.py, scripts/runatal_v1_sha384.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_reader.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49f545693b468a8c82eb196b2cfba030d87a237d2d58c484fce2512dd8480c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type(data[\u0022schema-version\u0022]) is not int or data[\u0022schema-version\u0022] != 1 or data[\u0022kind\u0022] != KIND or data[\u0022product\u0022] != release_manifest.PRODUC\u2026\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8360920b961701670ab93cb18f7f15f5110e138fcc50f6690512f60f08a9d30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type(entry[\u0022size\u0022]) is not int or entry[\u0022size\u0022] \u003C= 0\u0060 appears character-identically in 2 files \u2014 scripts/musl_release_manifest.py, scripts/windows_release_manifest.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/musl_release_manifest.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a56c33cb7e7798abc7711a6c957538ca05eb6ef304de0d54520c72ffff012b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!entry_type.is_dir() \u0026\u0026 !entry_type.is_file()\u0060 appears character-identically in 2 files \u2014 crates/astrid-capsule-install/src/source_digest.rs, crates/astrid-capsule-install/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/astrid-capsule-install/src/source_digest.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"62655f1115ed36fb18f020b9297e608ff0432ab209bdd228d6da53ca2f9c6010"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!id.is_nil() \u0026\u0026 id.simple().to_string() == value\u0060 appears character-identically in 2 files \u2014 crates/astrid-types/src/ipc/delivery_failure.rs, crates/astrid-types/src/ipc/request_failure.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/astrid-types/src/ipc/delivery_failure.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e571f7f1367a6706e28fc5b01470d1371788bf398e2bd73f271399020e892d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!lease.resource_path.is_absolute() || !lease.callback_path.is_absolute()\u0060 appears character-identically in 2 files \u2014 crates/astrid-storage-provider-fskit/src/service.rs, crates/astrid-storage-provider-fuse/src/service.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/astrid-storage-provider-fskit/src/service.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"551de82fdd6e8e9f0e6cae965c08dff107c82b1fb4bc3f698beba19a98bdf305"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060check_commits\u0060 is public, takes a document from its caller (line 38) and hands it to \u0060_flatten_commits\u0060, which calls itself at line 25 (\u0060_flatten_commits\u0060) with a piece of \u0060payload\u0060 \u2014 and nowhere in \u0060_flatten_commits\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_flatten_commits\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check_dco.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6931d31de60e8a5b2bd802155100cc2bdcaa94da8fd64a98d6fec221697964b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\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: \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/astrid-workspace/src/worktree.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d222179895363e0e9a623867726292a945a55261a6f85fcdde8daa89abdef0a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 85 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-workspace/src/worktree.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"60625685048a91dc4333a3cce3821eb96d595392061a069e4ce2ba02dd846714"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\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: \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/astrid-workspace/src/worktree.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5d09cfc99cdc5925447d9e77624223c68ad842325613400bed2da87a181560"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\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: \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/astrid-workspace/src/worktree.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe4fb1b32ee4cb2f12b20a5c6c2c2541364554163acdd4c877225764705cc68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 139 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-workspace/src/worktree.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91ade35eafebda71fb3079499fde80d57ff0db13c45782981c7112dbe8fe45e"}},{"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/astrid-workspace/src/worktree.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee47e1b310c99a66b84fef374a8d6a4e94079747445bd3d268688ab703d1956"}},{"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/astrid-workspace/src/worktree.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"822b73ae2bbd97dab8ded82e6156b6567c8db0fe80e934ed35dd8147c26e0a7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-workspace/src/worktree.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fd4a2c8ed5df6ccfd36e384b6425680bfc6cc58b895159c385ddc8a7d25433"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\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: \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/astrid-vfs/src/boundary.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"076937350d762445a50713ab7662813ac7b2b654ce686edb58ac708547a1ef32"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 104 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-vfs/src/host.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6676a100fccad2716661eea6a45d112858903a43e027ca03bab004e0eec0c85f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 3153 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-kernel/src/lib.rs"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b323551fb04170ed9ec7d89bf1bcb6ef7eb3e0aa2c2fdeb6c6ad4e7fc15b6a0"}},{"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/astrid-config/src/merge/enforce.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4af08b9ef3bb7a9eeec64cb42b90897cc90073146e335e097866aee62b7799"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 41 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/enforce.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fb628918608e3ba79ae2ebc4e1dc0d6f3bea522e5212a128277f203d08be90"}},{"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/astrid-config/src/merge/enforce.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8e0911358063a7a31a1b5f5ce1e3b7a73d99a710f909e95ac771e1d9e874fe"}},{"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/astrid-config/src/merge/enforce.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"532b883a3ee73048b743d3c84ad211e4149e17c085f94234f67ac72bbfa49365"}},{"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/astrid-config/src/merge/enforce.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edc2eaa227debb5cb11d07e67f3aa7731cdb1189c6bdef920b3091ac278ef38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 141 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/enforce.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e95ad4529b05bf3d3909bc5025d2e00bd080b2d657d82026e05876929b6f7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 160 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/enforce.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c57c356d1d3fa28a0e5fc0b9a67fa356f179dff538c0554af659fcc613d823"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\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: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/enforce.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde4184d99ebf0d57a75097abc05e79d990b1d463335abdbf45c245f590b43ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 24 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/path.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cdf741b93e0141cc79050b91a3e357d669ea19c91fb1758569158a75bbd909"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 44 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/servers.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d53fec99c1f3dd0c32e4255a5d91cd77fd78687b1d8c2f445f36f48390e84c1"}},{"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/astrid-config/src/merge/servers.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe015a1554f087b04f163deb720440ccfc3ae0e299d3c7c564291fd82e9d278b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 71 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-config/src/merge/servers.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"df42a2d6d0312adcf0c22fbb32e9858af3ea0d091da4fca3025d3c4193cf26a6"}},{"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/astrid-config/src/merge/servers.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaf4f97c387decc317fbbdd4d5671458d9058694e82ebf0771b41e5e23736f0"}},{"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/astrid-cli/src/tui/mod.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19491d281b17bb44616c83b2b75e5e9d9020c8d96cc11b116ced0bbfad450f1"}},{"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/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58830ff178f6a5cd0fc37e17a275318cd0e0aa6a73485c02406c34c4503560c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 647 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd21327805715f406c3e500dbaa0b2620896fd4a8c83d5647315e60285b6448"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 660 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/dispatcher.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c371a969a5d5f4f2636e7ef7bdffafc82bdc6996f5053c2b40194321dbe83a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 158 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-capsule/src/engine/mcp.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1e12518e069dbb4c5f284c047a8c6084b6771907712526551b3d9a5b131e19"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4357 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4357}}}],"partialFingerprints":{"codehealthFindingId/v1":"6964c5493943025139b9f678fd3fccab83f83058d53e0a9786832fcf27f769da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4389 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa923e4efe47b6f0d3e6ecf9fec42b8049774b3abe16a7c923cdcce01526179"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4415 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-capsule/src/engine/wasm/mod.rs"},"region":{"startLine":4415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5eae3e7a3e05550f65f4f9cb2a40eb453e0b1aeab85bd3a9985c5c38953898c"}},{"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/astrid-capsule/src/engine/wasm/host/approval.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3877ce55a563a4e9a01272b4ca3ed906252cb782e328e228d4c4c923451d04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 132 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-capsule/src/engine/wasm/host/sys.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c2fa28425bf3963db64e2455d6697192a00127a113b9502b68ac33254b597"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\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: \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/astrid-capsule/src/engine/wasm/host/sys.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"917ca689af0ca8867cb91c68ef0606682b64b3f1822f2c032d5d1b0c04f46dd3"}},{"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/astrid-capsule/src/engine/wasm/host/sys.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8d1ccd26eab10be75cfcc8149a4a127f0cb542053158801ccc9d76fe66e337"}},{"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/astrid-capsule/src/engine/wasm/host/sys.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dadee3f29232628db49f142ce956516903fa84f10fa424f2863d966a2b04d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\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: \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/astrid-capsule/src/engine/wasm/host/sys.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2565b1b4b066d57132ad11a0a8082a004ad5ab0ddaea0c01623342c439f636b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 372 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-capabilities/src/store.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"42efe0cf4cab7acef23212992c8bf99c8d2514f1852b7ddd6693f98fc97ddb77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 561 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-capabilities/src/store.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4da4fb2976e6cf004a99dc13a8fcfded0e5a72ce580e082e6b7e7b46d7d0912"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 76 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/archiver.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f615cb250a83eda8310e68b394a7c8890af60d3b012130f3982201bd472ed9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 167 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/archiver.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"218a530f2d0f2fedc56ac93eaa3382b40cf181ff65fb298f48e32b7cfc7515a4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\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: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/archiver.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a53fb0fae911cfefd80bc2b3de086a5fbd7da38d88ee027013d0a80c98c35"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 38 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/build.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"296472405cf49f31bf982d1e63c3e346fcc5f53b8899ec981e2cc5720b604aa8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 14 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/mcp.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7cc4742a159f18019f216f38e09e82260e56d6f9edff5aa79af623afe3f48f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 107 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/mcp.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca9c3b79cf30f7a1a645dbb2e972ce5b64e5c8cefbb2606fc1df0800e9ef910"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\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: \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/astrid-build/src/rust.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bb205794917542c8750076b44f611f89df77d5e15bb2ee284630e7acca1ebb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 95 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/rust.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbb6595bc52264f78c6b54f282021e6cb0d21c95d9a96f6a1d92427054dda22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 840 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be 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/astrid-build/src/rust.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bdaf4d9d345e17b326f9dbb597b7e9dc49a52400fbb111b3530c453f4db5e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 893 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-build/src/rust.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"d532481c939b4b947876cb2da3a60d97c73bd7bf8aaf6892a6b1fad6885acb04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 311 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-approval/src/manager.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f80d02d75139843a4d5191c28ceb531e6f885c851bc351a504b3cad8f0b804a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 379 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/astrid-approval/src/manager.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b532f49eb61535bcc0618eb94c8feb15e01bb4efd0cba18a085e4778ad7918c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060ed25519_verify\u0060 returns \u0060False\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/runatal_v1_sha384.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"460a59b5254843110f4ac9fd171f9048d33e88e82a0922bafedca81a9753fe52"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_pending\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/astrid-approval/src/deferred.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ff009fb53fa61da1fef5b22e674d845f31171429b0bd53563e31396f5e3e9c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060cleanup_old\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/astrid-approval/src/deferred.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dea7a03ce290b26a0cfb80de5249161559f3c091bd6f3c57071da4dda465c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060to_debug_string\u0060 turns every \u0060Err\u0060 into \u0060\u0022error resource not found\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/astrid-capsule/src/engine/wasm/host/io.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8748f9f61b838d87e1a262476aaa79137eab714831704858be3cb0b2c41801"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060validate_imports_with_layout\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/astrid-capsule-install/src/manifest_check.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f085cc5af9c88c3ab2ad82cbe7be45baf9d39bc9fef0ccfe39056d0c13c0ca9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060validate_imports_in_workspace\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/astrid-capsule-install/src/manifest_check.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8683647d145b5742c229ec30d207ad2b84ad92c0edd5b05d9b951c9afa8e2a24"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_options_response\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/astrid-cli/src/commands/capsule/model_discovery.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d65a9f943cf81d97b905d43e3813bcced74cf1394368f69336d82ca24bccbb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060resource_hosts\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/astrid-cli/src/commands/mcp/http/oauth.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79e413f6f537892e0b5f33332fce5f607935570b86cca7215a43aed6ddeee86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060api_base\u0060 turns every \u0060Err\u0060 into \u0060\u0022https://api.github.com\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/astrid-cli/src/commands/self_update/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1299484f59bc2da70854990995e7789ef15dc08361acae86a5e5e07968cb08d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060enumerate_profile_principals\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/astrid-kernel/src/lib.rs"},"region":{"startLine":2726}}}],"partialFingerprints":{"codehealthFindingId/v1":"83693b43de8cbf1c66749ce56fbb827fef7aec01dcca0569a5cd0959b827b3ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060ensure_logical_capacity\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/astrid-storage/src/resident_cache.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8077feead6a59181ee51a6e6e85835e0fab429369b90f4ced4f9b0c95ee134b1"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060err_msg.contains(\u0022agent is disabled\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060err_msg.contains(\u0022agent is disabled\u0022)\u0060 also satisfies \u0060err_msg.contains(\u0022disabled\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/astrid-kernel/src/kernel_router/admin/enforcement_tests.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"de152302e014be0040d74a83140e024c0f50c9f40a9d16b5185fc7dd8d4198d0"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060err.contains(\u0022outside the authenticating device\u0027s scope\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060err.contains(\u0022outside the authenticating device\u0027s scope\u0022)\u0060 also satisfies \u0060err.contains(\u0022device\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/astrid-kernel/src/kernel_router/admin/enforcement_tests.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"88780fefec5cf6e48c1084fc4486c3f12a9b3803bee3d6da537e51dae8fcd6eb"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":21,"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."]}]}