{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01: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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED3","name":"Event naming","shortDescription":{"text":"Event naming"},"helpUri":"https://codehealth.canine.dev/dimensions/ED3"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"App::handle_backend_event (cyclomatic 421): App::handle_backend_event has cyclomatic complexity 421 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef9608a1aa4fc6f1fac6a21f4f65fed84774cbb3cd01a4c15c810a5d167dec8"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_command (cyclomatic 124): App::handle_command has cyclomatic complexity 124 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"815517b8037c6f9fc0044895fac13fde765e3670dbcb352ad45aa141019af900"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::client::sse::parse_system_event (cyclomatic 118): osa_tui::client::sse::parse_system_event has cyclomatic complexity 118 (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":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"150fa00efaadb77ac8c46b59830d4eb096db49d47aeefb18e3bc085a57430009"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::render::markdown::parse_inline (cyclomatic 97): osa_tui::render::markdown::parse_inline has cyclomatic complexity 97 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ae513394907e1f4f9c4952fe89e0b7f659b5ab58e249f3b55a65b933b313e6"}},{"ruleId":"D1","level":"warning","message":{"text":"Agents::draw_tree (cyclomatic 91): Agents::draw_tree has cyclomatic complexity 91 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69616abc7c04cdc74ead13e9481265edc5cf3ec62cd4fac5b972f609f2b25e9"}},{"ruleId":"D1","level":"warning","message":{"text":"InputComponent::handle_event (cyclomatic 83): InputComponent::handle_event has cyclomatic complexity 83 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f279d0b3bc48f164b10e6e7f6553045ce331e6b05048c7e3fc701b3e907cfb8"}},{"ruleId":"D1","level":"warning","message":{"text":"App::run (cyclomatic 67): App::run has cyclomatic complexity 67 (threshold 15). Of this number, 65 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e5803b1b1fb3e3a3397239b23bd83a53c0887e532a036509d725c97b66762b"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyMap.Map (cyclomatic 64): KeyMap.Map has cyclomatic complexity 64 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/windows/ScreenShare/DesktopInput.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69d30df39c821b0aee9af979a514f5db571401f850741c18f0fb34b478ed3da"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusBar::draw (cyclomatic 64): StatusBar::draw has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6547b08d9fc24c361066ade5d839c5398097457b4a5f7d5ab92e2ca21ef26a69"}},{"ruleId":"D1","level":"warning","message":{"text":"InputComponent::draw (cyclomatic 63): InputComponent::draw has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8a236c9bdf6db940934436c06aa30cc41b44982c56b31b830fbd2113db2075"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::render::markdown::render_markdown (cyclomatic 63): osa_tui::render::markdown::render_markdown has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"38923d8d02fda50091fe8181170d870e9d06bfae17e87b67ddc4edeabf3ff35d"}},{"ruleId":"D1","level":"warning","message":{"text":"App::draw (cyclomatic 61): App::draw has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"6918175a1123fc7bf737529c0c62e2461d177dc65ec0e7b1535403cd6b89a647"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::client::sse::parse_sse_event (cyclomatic 61): osa_tui::client::sse::parse_sse_event has cyclomatic complexity 61 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d36015b17fb325d44ca19381e35b8ad644582ca1fe13a7851fc9aff4c9314a"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_key (cyclomatic 54): App::handle_key has cyclomatic complexity 54 (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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9400307f8c0f97dda99c5a749aa9632cd316177f44fdb5041aebe78a07253d"}},{"ruleId":"D1","level":"warning","message":{"text":"Activity::draw (cyclomatic 52): Activity::draw has cyclomatic complexity 52 (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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f8b41d82cd1c86dd3a2939e4477e6735e553296602e13401cbc4513047932f"}},{"ruleId":"D1","level":"warning","message":{"text":"Orchestrator.run_fresh_subagent (cyclomatic 40): Orchestrator.run_fresh_subagent has cyclomatic complexity 40 (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":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f7b7493b63746d25cc26ff37d8794c9d3ddb641aed2fdb6eeb5256a032c0d3"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.build_config (cyclomatic 38): Handler.build_config has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8859b2823671123e2ceba484088dc59a579bc4b56b4108e20ebe8da96474c0"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::render::markdown_stream::inline_preview (cyclomatic 35): osa_tui::render::markdown_stream::inline_preview has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown_stream.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"55125747a421172b0a9cc027d09f59c5d88cbe84fe4aaea465736e87c3f9876b"}},{"ruleId":"D1","level":"warning","message":{"text":"Onboarding.build_health_check_request (cyclomatic 34): Onboarding.build_health_check_request has cyclomatic complexity 34 (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":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae6eaf0519781ba5b24aafdfd57ea8b547137bf0205745602930c36f93ad8f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Agents::draw_dashboard (cyclomatic 34): Agents::draw_dashboard 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":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3925e8386c4773829c029179b752a120e9fd36179731ec28886f823b550dc19"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactLoop.handle_result (cyclomatic 32): ReactLoop.handle_result has cyclomatic complexity 32 (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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff91b178039d8a8d15768b38f0445ef06760d256e885c24beaa9b5b5bee10db"}},{"ruleId":"D1","level":"warning","message":{"text":"App::dispatch_action (cyclomatic 29): App::dispatch_action 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":"priv/rust/tui/src/app/keymap_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c177939d14531cde5b40c00bd4c4310dea002bd5acaf1d2914a68e93bca7e2"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::render::markdown::wrap_spans_inner (cyclomatic 28): osa_tui::render::markdown::wrap_spans_inner has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c17559a8f109f84a05797325a37ac8d41e507acd5908da9c14f58865108598"}},{"ruleId":"D1","level":"warning","message":{"text":"Onboarding.apply_env_vars (cyclomatic 27): Onboarding.apply_env_vars has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2603}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b66eff543687715a81522170fc4b553ae5412dcd1318a59bc813c3d8d84ebc"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_processing_key (cyclomatic 26): App::handle_processing_key has cyclomatic complexity 26 (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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"540b496517c9ed75af4a26a40abeeef48b913be00030f512f83754a004bae45f"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMClient.llm_chat_stream (cyclomatic 25): LLMClient.llm_chat_stream 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":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7768293f1519e9c460446455064a84a84792d08e48b6070c41c443753290ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactLoop.do_iteration (cyclomatic 25): ReactLoop.do_iteration 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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c054afc56ac29ec41fe983876f8bbc502cd5c547f46261602098e7190f5aebb9"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_idle_key (cyclomatic 25): App::handle_idle_key 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13cfbb9ad71d22e5513220d47b85001923c892b7231ef9ff89aa08e0eb45a0"}},{"ruleId":"D1","level":"warning","message":{"text":"SurveyDialog::handle_key_option_list (cyclomatic 25): SurveyDialog::handle_key_option_list 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":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd7aab9c0995bf0812cbaacd71c295240639e683f457eb0aa5a409dea89205b"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::config::keybindings::parse_keystroke (cyclomatic 25): osa_tui::config::keybindings::parse_keystroke has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/config/keybindings.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"012f6fa20cba611bed5e89add66393a4b45d1ca31db504fe63471b613e370dd0"}},{"ruleId":"D1","level":"warning","message":{"text":"Lifetime.start (cyclomatic 24): Lifetime.start 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":"native/macos/ScreenShare/Sources/ScreenShare/Lifetime.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47e9bd9d38afbe72cedfe6ce16bb71be689254a75d5f42db75a621c408049f0"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_agent_response (cyclomatic 24): App::handle_agent_response 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":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b62733f3c9f76415450373a3ab95155e8efd17d0287c6be9e69793a35968b55"}},{"ruleId":"D1","level":"warning","message":{"text":"Permissions::draw_inline (cyclomatic 24): Permissions::draw_inline 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":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7a9ff12b74364344359861244a3d40be5c12cb401b95cd8523345eeaeb497d"}},{"ruleId":"D1","level":"warning","message":{"text":"Commands.models_info (cyclomatic 23): Commands.models_info 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0ced0fa367a23a92a457355771952b32c706b2d78e3e7057ef7c775463fcd5"}},{"ruleId":"D1","level":"warning","message":{"text":"Anthropic.format_messages (cyclomatic 23): Anthropic.format_messages has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"79390251f494fd531021ed17fefa764866900a011491182e9a474fd9b0803819"}},{"ruleId":"D1","level":"warning","message":{"text":"Permissions::handle_key (cyclomatic 23): Permissions::handle_key has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"aead5c8ae6eec06c27b2a21d4c999107390e806a14cbfcf629ef9edbc43a8a67"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolKind::noun (cyclomatic 23): ToolKind::noun 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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c578c31ec2b058443f04e9f1dbe7acb4a9f31bd3f51be3c873e128f1162db63a"}},{"ruleId":"D1","level":"warning","message":{"text":"VMHelper.main (cyclomatic 22): VMHelper.main 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":"native/macos/OpenComputersVM/Sources/Main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edb73a1212994042c21e80f1b94d33b7670b4fd4cb7bfa9596bf2acca06a0fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Completions::draw_in (cyclomatic 22): Completions::draw_in 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":"priv/rust/tui/src/components/input/completions.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ed73d3c2ab64195f913887663ca551b99b374b3e2d2233f7c42123d2250b36"}},{"ruleId":"D1","level":"warning","message":{"text":"SurveyDialog::draw_inline (cyclomatic 22): SurveyDialog::draw_inline 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":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b0402c2002dbe3c0b01b553ac388bb16eb168eacf5fe084037f29a7b05822d"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::render::markdown::render_table (cyclomatic 22): osa_tui::render::markdown::render_table has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41657adfccb5bbe555ec4ef9dfede797b0ed61f411341843af40105013f0b3f"}},{"ruleId":"D1","level":"warning","message":{"text":"Loop.init (cyclomatic 21): Loop.init has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc49793c0a3de5505596fafdde580e0834a83eb4dc79191d8a3c56eb5c3609e0"}},{"ruleId":"D1","level":"warning","message":{"text":"Commands.cmd_goal (cyclomatic 21): Commands.cmd_goal has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"77eb89e3882d7dc9cf3aa76458f5102155d6cc745de28ee509c8fc4c8413c617"}},{"ruleId":"D1","level":"warning","message":{"text":"Ollama.cloud_stream_loop (cyclomatic 21): Ollama.cloud_stream_loop has cyclomatic complexity 21 (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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3532beef3b4deeeccd2a4077d0dda856a4e135b4b3d870e3a900e4752c9e1cb1"}},{"ruleId":"D1","level":"warning","message":{"text":"MacOS.perform_element (cyclomatic 21): MacOS.perform_element has cyclomatic complexity 21 (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":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cf00fbe5f218d3c3964e5175c01803836635d88a97f74fd90f2140bf7cb845"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.pointer (cyclomatic 21): main.swift.pointer 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":"native/macos/AccessibilityHelper/main.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71045812e253f50ed07fe879dcc6a3ae5df888d2cfdfc256fa73e623392644b"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopInput.pointer (cyclomatic 21): DesktopInput.pointer 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":"native/macos/ScreenShare/Sources/ScreenShare/DesktopInput.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b85f0487ea1751c50399481320d3ff44edf4a9650b4b89a75fcd1375c9d3a70"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionBrowser::draw (cyclomatic 21): SessionBrowser::draw 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":"priv/rust/tui/src/dialogs/sessions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae850a9290dc6d0d391e00db23c8aee8f9cf00a482d28f92c4393533b8e5f0da"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSearchRenderer::render (cyclomatic 21): WebSearchRenderer::render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/web.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"80174dc87e58ae111b12fd295cf2530569006b651bb8b4be9a6d4bb3cea9803d"}},{"ruleId":"D1","level":"warning","message":{"text":"Onboarding.model_list (cyclomatic 20): Onboarding.model_list has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed05720f6e6c01542f7640904cdce3e8d613a8e039a2c68791a9944269a3f89c"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.parse (cyclomatic 20): Config.parse 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":"native/macos/ScreenShare/Sources/ScreenShare/Config.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0972630bc8cd02a409595d7a6e9a186101dccbee29161ae2c007b5dfeee35776"}},{"ruleId":"D1","level":"warning","message":{"text":"Cli::parse_from (cyclomatic 20): Cli::parse_from has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/config/cli.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a40adcefc02f7455e797f6efb9d87876abb96762c4dbef373ba78fc96844ea"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxPicker::draw (cyclomatic 20): SandboxPicker::draw 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":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"13492789407561fe0a3b47b1f1ca6f7cb96fd5d5fbdf897174d2944bb8a18f62"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsBrowser::draw (cyclomatic 20): SkillsBrowser::draw 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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"46381ed51da9e2632f3709c5470b78f3bb4cb2bf6a61bd9165eba32c22e5cc3a"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::components::chat::wrap_count::rows_for_line (cyclomatic 20): osa_tui::components::chat::wrap_count::rows_for_line 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":"priv/rust/tui/src/components/chat/wrap_count.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e7de07cf73d02c07fc6d467917d6341228f0994871dd9c5e9b036265e5d0ca"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopInput.Pointer (cyclomatic 19): DesktopInput.Pointer 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":"native/windows/ScreenShare/DesktopInput.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0aea12e3db2082947814564e11b0cc4b9aa2dedc7bfa9d06da0dc85865cf92"}},{"ruleId":"D1","level":"warning","message":{"text":"Orchestrator.do_run_background (cyclomatic 19): Orchestrator.do_run_background has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0521bbf21cafaf5c32872105ea777de751e4ba1af3bc36a2011391bdb50dfab"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_voice_event (cyclomatic 19): App::handle_voice_event 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"723f6f4019f7b11e7352aa89f751c032d32fd58e40fecb2b7f3bb8eb91d89b3e"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::app::settle_guard::common_prefix_modulo_whitespace (cyclomatic 19): osa_tui::app::settle_guard::common_prefix_modulo_whitespace has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/settle_guard.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdefa955636f8feb6a90b25dbfa8756ac1c97f65e74dba7a66ab25d5fc58e576"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::view::onboarding_flow::completed_step_summary (cyclomatic 19): osa_tui::view::onboarding_flow::completed_step_summary 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":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"802ebf8fa0261561c1208d92be72e6d0e43ca0fd76cd9ab092f6c319fa3b4f2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Commands.cmd_resume (cyclomatic 18): Commands.cmd_resume 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4253}}}],"partialFingerprints":{"codehealthFindingId/v1":"865a49aa430349bc8bb391c8910537efbcaaae5ea2dae4d0953d0b186479352d"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalModels.overview (cyclomatic 18): LocalModels.overview has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d39692546e58d2a4a18da0a93e8557c3ebdf0d29883603a453248d5446cb234"}},{"ruleId":"D1","level":"warning","message":{"text":"Observability.current_reasoning (cyclomatic 18): Observability.current_reasoning 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":"lib/optimal_system_agent/observability.ex"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d16c715067abc1635f93910172347f4db49618b027b941534e092344ad65a4"}},{"ruleId":"D1","level":"warning","message":{"text":"App::update (cyclomatic 18): App::update 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aba824c610d0cb1f21a778aa75cd84b23383d55ca1634c20e7b8eceb2a2ae75"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_agents_dashboard_key (cyclomatic 18): App::handle_agents_dashboard_key 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2649ff9dfc7b5bc00f445aaa92599279927a436bd389c1d7a201664237168f"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_tick (cyclomatic 18): App::handle_tick 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fccb8e15237bd35ea7c7ab02ecca8a1667e5ef2333dfa1ef7ce59d966832c76"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionPanel::build_lines (cyclomatic 18): CompletionPanel::build_lines 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":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"741d889e0a152cc44c708f6e47530b5f634d2c5f6d5700124320a54787fc02f6"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPicker::draw_local_detail (cyclomatic 18): ModelPicker::draw_local_detail 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":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c93e859fb35b6f6aefcbc0d73265da513055bbf8bb8e3963a93848db5b1d54"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPicker::handle_providers_key (cyclomatic 18): ModelPicker::handle_providers_key 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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d130de7f55ded0115284a359aea988b982ed3afa81fdaa1201a839d31a81b6"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPicker::draw_key_entry (cyclomatic 18): ModelPicker::draw_key_entry 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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ccc9b48fc0640b1a022d96868f98263e31257463747945560adbdf8f458d45"}},{"ruleId":"D1","level":"warning","message":{"text":"RfbConnection.RunAsync (cyclomatic 17): RfbConnection.RunAsync 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":"native/windows/ScreenShare/RfbConnection.cs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"861d1c2746ef7259103f5cc4544dedeb9367770dc95967f3cd920f57717cb581"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionGrant.accept (cyclomatic 17): SessionGrant.accept has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/session_grant.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffbc0744f52a06471c2b947d835e491e6e8cc5e2a31adf7043e5d773ab10e0b"}},{"ruleId":"D1","level":"warning","message":{"text":"Ollama.process_ndjson_line (cyclomatic 17): Ollama.process_ndjson_line 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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e89758397cbaaa03392d6c05b3d15bc0e3fa137b26b793f231fa98e856047b7"}},{"ruleId":"D1","level":"warning","message":{"text":"SseClient::connect_once (cyclomatic 17): SseClient::connect_once 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":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf6fed1844d47367cb562db90890f5356b2ec518685e490b5032914dc093d26"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar::draw (cyclomatic 17): Sidebar::draw 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":"priv/rust/tui/src/components/sidebar.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"af27e3e5017ebd60ce6e8419ab12b0c81e445748f927a3f924977c591532a39a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPicker::draw_models (cyclomatic 17): ModelPicker::draw_models 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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"654cd2f6283faa8ce4bf382bdb730189a501c65649279d9bc8e518028e2492a2"}},{"ruleId":"D1","level":"warning","message":{"text":"RewindDialog::draw (cyclomatic 17): RewindDialog::draw 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":"priv/rust/tui/src/dialogs/rewind.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"992f7514d0aba510432c959f71f030c3ef6703730eac6ecaad5567342e2fb796"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolKind::verb (cyclomatic 17): ToolKind::verb 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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b19deb3bc80bdda1b6ed8d76e7c8688224515f00d5023d953918fc0443614"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::components::osc8::supports_hyperlinks_with (cyclomatic 17): osa_tui::components::osc8::supports_hyperlinks_with 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":"priv/rust/tui/src/components/osc8.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ab4bff22a1255d74edcc8afef0485f532368f4b4aae230eec3cb85ed3ec080"}},{"ruleId":"D1","level":"warning","message":{"text":"Loop.cancel (cyclomatic 16): Loop.cancel 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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7577f079a2a791958498e2fd4868c64a3d885fb87e420f43b71c0fd8b29411"}},{"ruleId":"D1","level":"warning","message":{"text":"Events.register_orchestrator_handler (cyclomatic 16): Events.register_orchestrator_handler 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":"lib/optimal_system_agent/channels/cli/events.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9394cecc86cae3f0bddfc8266e4d6650a9a023b6f32a626a28a6a3704b05df78"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillGenerator.do_generate_from_pattern (cyclomatic 16): SkillGenerator.do_generate_from_pattern has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/skill_generator.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d584eb1270db59a045309fc27d993c3023156973d2381fc99c741b39b48594d6"}},{"ruleId":"D1","level":"warning","message":{"text":"Onboarding.write_setup (cyclomatic 16): Onboarding.write_setup has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f163595ff0ae3a4802d76ec3550d523055296a05416f681308ef77d2bd7c306"}},{"ruleId":"D1","level":"warning","message":{"text":"ChainSummary.render (cyclomatic 16): ChainSummary.render 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":"lib/optimal_system_agent/security/chain_summary.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5167d52b392e6941fdd696bcdc1acf3f4618c3e37f95a81eb6cdad80902e93c"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.from_map (cyclomatic 16): Task.from_map has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/task.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3872f05d144ea521a999bd9694d8c7ea8d58b91a02110ebe0c95e3fa20f14444"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_package.verify (cyclomatic 16): verify_package.verify 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":"native/linux/ScreenShare/verify_package.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"96408cd0bec9e9ad8f62fe0870719437d2db7939c8c64f96c4053d1aaa9981a2"}},{"ruleId":"D1","level":"warning","message":{"text":"atspi_tree.walk (cyclomatic 16): atspi_tree.walk 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":"priv/scripts/atspi_tree.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdcacde2ca8ed9ab1f8243e88459da9ec64565bd621808c0adab17ff27c37c0"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnedStore.init (cyclomatic 16): OwnedStore.init has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/OpenComputersVM/Sources/OwnedStore.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d579e108d29405a9ec2ca31938be707332af1abed57d64ae98b5251424ba27a3"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_command_result (cyclomatic 16): App::handle_command_result 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":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f5c1d2258595289e16e465bb0f618b2d44776da2dc820cc05a91b6def6c5f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Activity::a11y_status (cyclomatic 16): Activity::a11y_status has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: osa_tui::components::activity::tool_display (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74c5c8b8221f10cd7b10068f50decac9443bfb184324228a5ddd10d90b6106d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionBrowser::handle_browse (cyclomatic 16): SessionBrowser::handle_browse 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":"priv/rust/tui/src/dialogs/sessions.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a95243ef44108dc8108a5142161504098543127939c7d22a247846faa5470d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ThemePicker::draw (cyclomatic 16): ThemePicker::draw 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":"priv/rust/tui/src/dialogs/theme_picker.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fd92bed38005e996cd9c51227d41379bcf3b3f0ff0f23713afe115771ca48b"}},{"ruleId":"D1","level":"warning","message":{"text":"osa_tui::tools::collapse::classify_shell_command (cyclomatic 16): osa_tui::tools::collapse::classify_shell_command 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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d28f00d02fac3274f6147572e3e3ff9bf526af87af47646de1e2fcf81d069b"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_backend_event (cognitive 629): App::handle_backend_event has cognitive complexity 629 (threshold 15). Drivers by points: if/else 210 (452 pts), match/switch 70 (154 pts), boolean chains 15, loops 3 (8 pts) (nesting depth added 331). 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":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"00622fc660acc870a898cb2feb8449b4e51e9536e5204f5f423ea2925261a496"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::parse_inline (cognitive 341): osa_tui::render::markdown::parse_inline has cognitive complexity 341 (threshold 15). Drivers by points: if/else 78 (257 pts), loops 14 (53 pts), boolean chains 16, match/switch 4 (15 pts) (nesting depth added 229). 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"73da20d95ca87bdbd82724391e3a3fa3ab025cda07ff51f8ce227f0814b02255"}},{"ruleId":"D2","level":"warning","message":{"text":"Agents::draw_tree (cognitive 210): Agents::draw_tree has cognitive complexity 210 (threshold 15). Drivers by points: if/else 72 (143 pts), match/switch 11 (45 pts), loops 6 (13 pts), boolean chains 9 (nesting depth added 112). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c252dd31e65bef084d757d8c281678b178eb1ba103ec47037492094755a77eb"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::render_markdown (cognitive 163): osa_tui::render::markdown::render_markdown has cognitive complexity 163 (threshold 15). Drivers by points: if/else 56 (135 pts), loops 7 (21 pts), boolean chains 7 (nesting depth added 93). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b2d6f5028bf775775cbe428d68895b10b7165598b2c2564c72148f5ec8615c"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_command (cognitive 146): App::handle_command has cognitive complexity 146 (threshold 15). Drivers by points: if/else 76 (118 pts), match/switch 9 (16 pts), boolean chains 6, loops 2 (6 pts) (nesting depth added 53). 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":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ff0a6aea91df165cfc6d2e2d378b759c2ef819eb43208ddadb5f50abf828d5"}},{"ruleId":"D2","level":"warning","message":{"text":"App::run (cognitive 145): App::run has cognitive complexity 145 (threshold 15). Drivers by points: if/else 44 (98 pts), match/switch 5 (17 pts), boolean chains 15, loops 6 (15 pts) (nesting depth added 75). Of this number, 139 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4ccb9ceed0f2d35d37158def484d787e6c4b4ee3e59d9fc7a521c42f979f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"App::draw (cognitive 139): App::draw has cognitive complexity 139 (threshold 15). Drivers by points: if/else 33 (130 pts), match/switch 3 (9 pts) (nesting depth added 103). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"272a80a72b13988e82b1a7d64d74477ea1d0873b1022e67f1e63ec37e3279328"}},{"ruleId":"D2","level":"warning","message":{"text":"InputComponent::draw (cognitive 131): InputComponent::draw has cognitive complexity 131 (threshold 15). Drivers by points: if/else 72 (116 pts), boolean chains 9, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a5f8e9e4f593888f15f78c1b81d5756faff435a2ed54ce475596a3665cbe9a"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusBar::draw (cognitive 120): StatusBar::draw has cognitive complexity 120 (threshold 15). Drivers by points: if/else 80 (118 pts), match/switch 1 (2 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":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"55186ebe785fa01b435950bca530780a45cbca90bdea23cf90a902b0f1310276"}},{"ruleId":"D2","level":"warning","message":{"text":"InputComponent::handle_event (cognitive 107): InputComponent::handle_event has cognitive complexity 107 (threshold 15). Drivers by points: if/else 30 (79 pts), boolean chains 15, match/switch 5 (13 pts) (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a7c7f449c361ba758e13fda8363e4264a811f573ed88f3b2b7caf7bb026828"}},{"ruleId":"D2","level":"warning","message":{"text":"Activity::draw (cognitive 82): Activity::draw has cognitive complexity 82 (threshold 15). Drivers by points: if/else 51 (64 pts), boolean chains 8, match/switch 4 (8 pts), loops 1 (2 pts) (nesting depth added 18). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c5c4a87aab7cfd64bb65b725793a9432dd8b6b761bca27482350fb6eb59e37"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::client::sse::parse_system_event (cognitive 78): osa_tui::client::sse::parse_system_event has cognitive complexity 78 (threshold 15). Drivers by points: match/switch 40 (45 pts), if/else 20 (31 pts), boolean chains 2 (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own 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":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd6f5af4e109e6d150f1fecc6b2799f05487472ee17c5897963e07aa9237b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Agents::draw_dashboard (cognitive 71): Agents::draw_dashboard has cognitive complexity 71 (threshold 15). Drivers by points: if/else 35 (59 pts), loops 3 (5 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"6554fd6a1b012fd2f9f792b475f28ac2b4825605f60074f36001f8bd226325b4"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::wrap_spans_inner (cognitive 64): osa_tui::render::markdown::wrap_spans_inner has cognitive complexity 64 (threshold 15). Drivers by points: if/else 16 (42 pts), loops 8 (18 pts), boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5edb95da3c237a7f22c0e56ea04f6ec4393d2f90a5adfefd359add1b7771c9"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown_stream::inline_preview (cognitive 61): osa_tui::render::markdown_stream::inline_preview has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (42 pts), loops 5 (11 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown_stream.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8013abc4c5090408de24dee2724322bbfbb25e8ec299a53111533767f3bb99f"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_tick (cognitive 53): App::handle_tick has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (52 pts), boolean chains 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"44861c2186843dc59a7415df1cd0b06bf69fa5fff868e421e029efc77213e9f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsBrowser::draw (cognitive 53): SkillsBrowser::draw has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (45 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbbfc70515ca5d623e666885ad607a01ba52815e887b8d6104696413b36fd7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Permissions::draw_inline (cognitive 52): Permissions::draw_inline has cognitive complexity 52 (threshold 15). Drivers by points: if/else 25 (42 pts), loops 3 (7 pts), match/switch 1 (2 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":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba296fd1d097653d85c471409ef48d778bf7161afc77e3f60e54829c2e8c873"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchRenderer::render (cognitive 48): WebSearchRenderer::render has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (41 pts), loops 3 (6 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":"priv/rust/tui/src/tools/web.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb1a4f1152381b94f52c782a71e7650ca590111e48935090012db1640352602"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.models_info (cognitive 47): Commands.models_info has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 20). 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"96df3cabf65f18a12a09a0d634ad4dfe5b28e6939edcaafae2e28d55cd2b4d95"}},{"ruleId":"D2","level":"warning","message":{"text":"Orchestrator.run_fresh_subagent (cognitive 46): Orchestrator.run_fresh_subagent has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 14, match/switch 7 (10 pts), error handling 4 (6 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":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"743c3b6857b18355abf2f32b2b6d31563e3399e2e1d55551a22913c4aea364a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Onboarding.build_health_check_request (cognitive 44): Onboarding.build_health_check_request has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 19, match/switch 5 (15 pts), if/else 7 (10 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"594d907b12c85727cf48b8a50acbd2be04cf5df850a9fb8f067b25d2bab200d0"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMClient.llm_chat_stream (cognitive 38): LLMClient.llm_chat_stream has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (24 pts), match/switch 4 (6 pts), boolean chains 5, error handling 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":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"88603ebeeaf74a40036a000f385734be8623899d19be232b0070da45cf470b37"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxPicker::draw (cognitive 38): SandboxPicker::draw has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1a51f21126a1144f307ee022e0120934f784392cad33206b8302a1b021aa02"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::client::sse::parse_sse_event (cognitive 38): osa_tui::client::sse::parse_sse_event has cognitive complexity 38 (threshold 15). Drivers by points: match/switch 27 (30 pts), if/else 4 (8 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e361aec42f1f01038d46e64977ee48b6e675c44caf5f97bdaba0d6ecadf401"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.build_config (cognitive 37): Handler.build_config has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 30, if/else 5, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"735cab7067f44a00a659223cf8fe533c6c029fc9722fb0e8aea3aea2da07c6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_agent_response (cognitive 37): App::handle_agent_response has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 3, match/switch 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":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"42481892b1be0ff7254a01f4aa04dbef49a8aab6a78b2fe4c25f7b9ee43cd7b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactLoop.do_iteration (cognitive 36): ReactLoop.do_iteration has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (21 pts), match/switch 6 (8 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae526d73add3e2fbda6a38ee12fab9a0ddf3bf76320e907a2d48115d2fdcde2"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.cmd_resume (cognitive 36): Commands.cmd_resume has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (7 pts), error handling 2 (6 pts), boolean chains 5 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4253}}}],"partialFingerprints":{"codehealthFindingId/v1":"946620fb9ca1b6eb9785ed62ee0c39c7c4d82d1e1bf742e74ac64dbce248b650"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_command_result (cognitive 36): App::handle_command_result has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (33 pts), match/switch 2 (3 pts) (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e70aad69369bd83754d6cfe4e219fd0899c5562b51d4c5ab6a8187ee5f8cc4b"}},{"ruleId":"D2","level":"warning","message":{"text":"SurveyDialog::handle_key_option_list (cognitive 36): SurveyDialog::handle_key_option_list has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 1, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e32eed1f97c88abc69ab5330474d2e85580b7fac0f89b2a0482919fd71b3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar::draw (cognitive 35): Sidebar::draw has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/sidebar.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a650de57b9cef29201caef45cac3122d6467e827fe8512f3428434e7cccc6ec"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksPanel::draw (cognitive 35): TasksPanel::draw has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/tasks_panel.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ed95aea9cdccc85442d17f11c51cbe1c34324f7f08ff6eadf2af05f9acb3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::draw_local_catalog (cognitive 34): ModelPicker::draw_local_catalog has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (27 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eda9f69aaa3b558d5de39e6577954f47ced595184711dc19388027760aceab3"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPicker::draw (cognitive 34): PersonaPicker::draw has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 2, 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":"priv/rust/tui/src/dialogs/persona_picker.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64b8d5938737e05968e90499e8fd04fe35a82680dec658b20c7ba2d173ff9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionBrowser::draw (cognitive 34): SessionBrowser::draw has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (26 pts), match/switch 5 (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":"priv/rust/tui/src/dialogs/sessions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c99b785526ed2dc6b8817b9678808e926cbe923f7eefb30c3274a5c80fb7d09"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolKind::noun (cognitive 34): ToolKind::noun has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22 (33 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0304484da9075d77d947eb89d6cbd81f53afdadc1977f1265d37611658884b"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::dialogs::transcript_viewer::wrap_plain (cognitive 34): osa_tui::dialogs::transcript_viewer::wrap_plain has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/transcript_viewer.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"06023c7621948cf38aef35077969284b5c44de84bec63b223e624857faa5a1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"VMHelper.main (cognitive 33): VMHelper.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 12, error handling 2 (4 pts), loops 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":"native/macos/OpenComputersVM/Sources/Main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4870ce2a8e016bd441c7e66be8eb8f92a52c3d1499886352853782b48b786d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.parse (cognitive 33): Config.parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/ScreenShare/Sources/ScreenShare/Config.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2167a08108d71f80ee6526eeb390eb7d55ff6a28513de711101e73e27995655"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionPanel::build_lines (cognitive 33): CompletionPanel::build_lines has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 6 (14 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"108b2afe68c2d0c654805d7da639d7a3213382093965cc3a117ef8a5af52ddfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::draw_local_detail (cognitive 33): ModelPicker::draw_local_detail has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (30 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":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"561361239d7bd54c5ad68ed36ddf31ab336404de912bc6549fb0a61fffbe7adf"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::draw_models (cognitive 33): ModelPicker::draw_models has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f79ae95232f40e9e77b51743a3ff4f8507d0a6438181c647c62218c974f4b5"}},{"ruleId":"D2","level":"warning","message":{"text":"RewindDialog::draw (cognitive 33): RewindDialog::draw has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (28 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/rewind.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c83dbfdf72d40b84aa436d5e2fd91ec26248cae86f72367365f799dba6f856"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::app::settle_guard::common_prefix_modulo_whitespace (cognitive 33): osa_tui::app::settle_guard::common_prefix_modulo_whitespace has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (8 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 14). Of this number, 26 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/settle_guard.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"75623534d5b16a6500fccdeaca40f063007c77bac3002c32d7ec8c569a24d027"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactLoop.handle_result (cognitive 32): ReactLoop.handle_result has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (25 pts), match/switch 2 (5 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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":2719}}}],"partialFingerprints":{"codehealthFindingId/v1":"becd7eb963d09840b36753a64dbbb3955ab8fc960a016ccc8b71e33814ddffab"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_idle_key (cognitive 32): App::handle_idle_key has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 4, 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"7634857dbf1c340ca4d9b79b8f41744bc5cf5565d2b9f1f416331fe906bbba97"}},{"ruleId":"D2","level":"warning","message":{"text":"SseClient::connect_once (cognitive 32): SseClient::connect_once has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea34eb60f218978442c0bf7d0d2fa4453aba7ddba5099d74bc204d46a8f7d36a"}},{"ruleId":"D2","level":"warning","message":{"text":"Completions::draw_in (cognitive 32): Completions::draw_in has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 7, 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":"priv/rust/tui/src/components/input/completions.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fd61b4e3f7b82ec86c372d50351155190d08c0ae13653c296aa772c40392bb"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::cells::render_lines (cognitive 32): osa_tui::render::cells::render_lines has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/cells.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"049cb06fef8af28859787aeeac61d7556a4f0c266cec849dce1fbacc7fb23ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"Onboarding.apply_env_vars (cognitive 31): Onboarding.apply_env_vars has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 3, 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":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca73931c8e9cb000a8fc6767ee27b9cd651d50d7c38e9dedc05ee6afea64a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"SurveyDialog::draw_inline (cognitive 31): SurveyDialog::draw_inline has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 6, 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":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5b7c9867d1e83f622f8ccef0ee850b4bd620b65280ef4ea5f5d847c0a5d436"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::components::chat::wrap_count::rows_for_line (cognitive 31): osa_tui::components::chat::wrap_count::rows_for_line has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, 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":"priv/rust/tui/src/components/chat/wrap_count.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb53d88de9d7f40558fc4b20ed02b36bc891dfd9ad3c03ddfaf28bdab7d299aa"}},{"ruleId":"D2","level":"warning","message":{"text":"App::dispatch_event (cognitive 30): App::dispatch_event has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 1 (4 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":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b27a31d8df2add5e0c05fc28e418667118cc7e2d59bf7cc9c7efcc164abda7"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsBrowser::draw (cognitive 30): ToolsBrowser::draw has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/tools_browser.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5849f702e1c9ac0b867245e049b95a83abec7f52b4aa885523192dc2ad6a4ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeFixPr.apply_and_open (cognitive 29): CodeFixPr.apply_and_open has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), match/switch 3 (8 pts), boolean chains 3 (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":"lib/optimal_system_agent/security/code_fix_pr.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa546b9c5149092c517f8c07182753beb7f2ab158452bd8da5697acf8a8e824b"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_onboarding_key (cognitive 29): App::handle_onboarding_key has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 3 (12 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2f22e5775e8e40ba5520b591f4d602a5d84435cf582b07343778ac4e81e6ac"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_key (cognitive 29): App::handle_key has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 5 (9 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed98c60ebf228207f0eac0d41ea5e16a726c4e28972669677b5f21477f74e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"McpApprovalDialog::draw (cognitive 29): McpApprovalDialog::draw has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 3 (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":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cd9aeb0b54a18f07e4c86f2b0de6be3297e37f6751c054bbeb9aedc47b400e"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryBrowser::draw (cognitive 29): MemoryBrowser::draw has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76ff028d004f904c1f683f71e1770c846278dc906b3e28676a0574a9e1c943c"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::view::onboarding_flow::completed_step_summary (cognitive 29): osa_tui::view::onboarding_flow::completed_step_summary has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 2 (3 pts), boolean chains 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":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b7845e70c04731cd87c06af1166a95b0ed9fab3ef6cea73b73a5c33b083370"}},{"ruleId":"D2","level":"warning","message":{"text":"ProactiveCompaction.compact (cognitive 28): ProactiveCompaction.compact has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 5 (12 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f20c96f13790a5f783f1820d55c2d554a3f56e5914d8f5421d7cdd2af07879a"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::components::input::strip_ansi (cognitive 28): osa_tui::components::input::strip_ansi has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":3389}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b14d336e158ff72362a6d28fce8902a2bec0c77492f26e082e57cbe7ab00390"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::render_table (cognitive 28): osa_tui::render::markdown::render_table has cognitive complexity 28 (threshold 15). Drivers by points: loops 9 (15 pts), if/else 9 (11 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea15f8394c98ff9afeb5c92da11b21da65529b6f03234a9ef84085f2b2ea2e4"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::strip_escapes (cognitive 28): osa_tui::render::markdown::strip_escapes has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98eb8588e27c2469471bcb599b1fd9b42691550cf0b857142b26756dbebed00"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnTrace.format (cognitive 27): TurnTrace.format has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (25 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/turn_trace.ex"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fd914b594139ccefa97bd5b76a89d3ccda4bb6d3b5ee0534478c8217301796"}},{"ruleId":"D2","level":"warning","message":{"text":"Lifetime.start (cognitive 27): Lifetime.start has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 9, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/ScreenShare/Sources/ScreenShare/Lifetime.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b729d5ca5530b29e653b7ed73ad741763c3971f4173ae08aecb4b460e5c7aa"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_voice_event (cognitive 27): App::handle_voice_event has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 2, 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eefc4a892724b5a245b19c81eecbbcac8b4d868a0af606b85322ccb1b79ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelsPanel::draw (cognitive 27): ChannelsPanel::draw has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1489103c576163a3caf5c1b9d98588bb22a22d8ca1ea618a474b9e7e6f70fa9"}},{"ruleId":"D2","level":"warning","message":{"text":"ThemePicker::draw (cognitive 27): ThemePicker::draw has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/theme_picker.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e68412fc7579376c26b9b250d871aa10b39ade730c272670d6a86b9946b0c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRenderer::render (cognitive 27): AgentRenderer::render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/agent.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b1f37a57b92b89aa6f6e654759603b8c218fe21c74905d0e6a745312e71a3c"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::wrap_text (cognitive 27): osa_tui::render::markdown::wrap_text has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d91ea5cc8c4b0dd5955b3f81379e4080456e8253ef08455c23bf1bfe9dc8b76"}},{"ruleId":"D2","level":"warning","message":{"text":"Compactor.run_pipeline (cognitive 26): Compactor.run_pipeline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 4 (9 pts), error handling 3 (4 pts) (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"8114c1a59c5cd49556fe204c782e374fcc2718c2cf4a24a49889b6c85d69429f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodebaseExplore.explore (cognitive 26): CodebaseExplore.explore has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (26 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":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"26693ee418a2f729b13c2628f4db6df278efa897c270a366083761d1df9562f0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.pointer (cognitive 26): main.swift.pointer has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (6 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/AccessibilityHelper/main.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c722b5ee292f4b2eee7c719aab3b1b67ff3f7e1083d4351cb9495fdc670a58f5"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_processing_key (cognitive 26): App::handle_processing_key has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, match/switch 3 (5 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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"36530aba9b8c5228da5408ffeae25e9215ca79aaae2e222ecf206dc55602ee6c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::draw_key_entry (cognitive 26): ModelPicker::draw_key_entry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 5 (7 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcf74c3a8285714e02ab42cc8a1212b6fdf011f6a5b054e40802ec9a0cd6802"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::client::error_text::strip_request_ids (cognitive 26): osa_tui::client::error_text::strip_request_ids has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 3 (7 pts), boolean chains 6 (nesting depth added 12). 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":"priv/rust/tui/src/client/error_text.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c25361c268139280824066a4517d266e446adb3a4a4d6e0de4a1d1a958abc0a"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopInput.Pointer (cognitive 25): DesktopInput.Pointer has cognitive complexity 25 (threshold 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":"native/windows/ScreenShare/DesktopInput.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa707ffd4ca42c5bce944bec088444936cb3886ae5d941edc0d5436460bad64a"}},{"ruleId":"D2","level":"warning","message":{"text":"Heartbeat.run_heartbeat_tasks (cognitive 25): Heartbeat.run_heartbeat_tasks has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 3 (13 pts), if/else 7 (12 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/heartbeat.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49a2a293527dc67a7d7ecf5a0cd676e9e34eb40445ed681c241b59aa77c34ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptLoader.scan_command_dir (cognitive 25): PromptLoader.scan_command_dir has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 5 (18 pts), if/else 7 (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":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a39626faac1c2ea1f20742b91e81bb19951bf04a4a4c6e101acda46afe6cb91"}},{"ruleId":"D2","level":"warning","message":{"text":"Anthropic.format_messages (cognitive 25): Anthropic.format_messages has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 19, if/else 5, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0d73079f00f0d4095caae0af621f6e473dbac63cf4682d3d7d7191a77c81d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Playbook.advance (cognitive 25): Playbook.advance has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (11 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/playbook.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2800c9d1616c896af556280b6847f3c25abf1ec1b171b1ef459a643a216eb34"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.validate_edit (cognitive 25): Handler.validate_edit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (10 pts), boolean chains 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1054fb79b0d4d732cf7cee3d3f4af9f81f059ef085e3d4136bcfff6ac407bab2"}},{"ruleId":"D2","level":"warning","message":{"text":"App::dispatch_action (cognitive 25): App::dispatch_action has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (24 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":"priv/rust/tui/src/app/keymap_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baf8e184fafcf536ba780bbe58baee8d7fe5ebd515d7b1519724e7a35d7d20d"}},{"ruleId":"D2","level":"warning","message":{"text":"SseClient::run_with_reconnect (cognitive 25): SseClient::run_with_reconnect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b96f988c7fb4376961eb1edb34b9b230b7348b0d25ca2863036bd5ee8bf14"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::draw_providers (cognitive 25): ModelPicker::draw_providers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 2, 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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4014a95631791dcdfa385fad64a196406ed25dd9d39d4335aa79d896c7eb0e"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolKind::verb (cognitive 25): ToolKind::verb has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (24 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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bb6c6f7f34d89650f59b4fe8fdbe1fa078fd35433dea60debce9e587aae35d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriteRenderer::render (cognitive 25): FileWriteRenderer::render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (20 pts), loops 2 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"priv/rust/tui/src/tools/file.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b045df16a7aa54744f54269aa3238186070dafa89074d6c77650c286f0f647c"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::util::fuzzy::score (cognitive 25): osa_tui::util::fuzzy::score 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":"priv/rust/tui/src/util/fuzzy.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aa4b7f77d8c9083fe6516e4dd0f97fed1c200bc3d8380bf2903f5fd01ca01b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactLoop.handle_result (cognitive 24): ReactLoop.handle_result has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"539b243219b794235f824ab4893e0230235b362b96096f6d30165b18fd913783"}},{"ruleId":"D2","level":"warning","message":{"text":"Orchestrator.do_run_background (cognitive 24): Orchestrator.do_run_background has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, match/switch 3 (7 pts), if/else 5, error handling 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":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d588977443f029b8854b4e0cf60f2cef7a949f646bf826de29846875236b0f50"}},{"ruleId":"D2","level":"warning","message":{"text":"SarifReport.generate (cognitive 24): SarifReport.generate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 4 (9 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":"lib/optimal_system_agent/security/sarif_report.ex"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6835d1d9d6db8851fff62fd278636df8ce75ef4fe323de1c1f4c7f5cf0d16c88"}},{"ruleId":"D2","level":"warning","message":{"text":"Activity::a11y_status (cognitive 24): Activity::a11y_status has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"684cac1b07ff3354b10b7090ef9f82f0c4132a55dbc173040d2412702113f300"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCommandOutput::push_truncated_str (cognitive 24): LiveCommandOutput::push_truncated_str has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/live_output.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df1b3dfef892399b493ee0e5ffa57f48bce37c895d1cab0ee93d232da5c31d5"}},{"ruleId":"D2","level":"warning","message":{"text":"DoctorPanel::draw (cognitive 24): DoctorPanel::draw has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/doctor_panel.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"88517d2f5f1b67f8b07364d6f4fcbe281ac8528d184b2952bd92c463893b1ace"}},{"ruleId":"D2","level":"warning","message":{"text":"PtyPane::draw (cognitive 24): PtyPane::draw has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/pty_pane.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"600d261ba0c6a3cd21bd474240442a9b179701d68472d1baf1a493f864e76ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"Loop.init (cognitive 23): Loop.init has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (6 pts), match/switch 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8f1299cc1125a79af9ffd1593445620d7a2cbb3e0230030c5c7d9cecb3549d"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.print_goal_status (cognitive 23): Commands.print_goal_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 3 (5 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7638a711e57a023686a003782d70b90c83a7c460ee48d9b5f2e6663b9ccf2ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Onboarding.model_list (cognitive 23): Onboarding.model_list has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 5 (9 pts), boolean chains 4 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"044090669139e92664f04e8fb07eca9eaaea94c2054dcdcd1d5a9a590c0d3b05"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.start_session (cognitive 23): Controller.start_session has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (7 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/controller.ex"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6eeb8f886bdadc8d1762201ed7c93cc57d9d816a444a7d4c2ed422f4acba4f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChainSummary.render (cognitive 23): ChainSummary.render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 8 (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":"lib/optimal_system_agent/security/chain_summary.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53045eec46a4d06eff483a9e886bdac6eabd2576b80eec500cb59bf20afbe94"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopInput.pointer (cognitive 23): DesktopInput.pointer has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 5 (6 pts), loops 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":"native/macos/ScreenShare/Sources/ScreenShare/DesktopInput.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a4de26ab2a8acd61b878c3c5455afd79b7303e512fab62e8fc2834c877ecc6"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferencesRenderer::render (cognitive 23): ReferencesRenderer::render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (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":"priv/rust/tui/src/tools/references.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c17aee7e5082a2506731d377118eb77af899cd477daad2c15564ac8dc70e9da"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::components::chat::welcome::welcome_lines (cognitive 23): osa_tui::components::chat::welcome::welcome_lines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), loops 2 (5 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":"priv/rust/tui/src/components/chat/welcome.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"46936f0270c4735be31754645ee76d52a8875b1e42075d1f61d728ef342ef35f"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::tools::collapse::classify_shell_command (cognitive 23): osa_tui::tools::collapse::classify_shell_command has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 3 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"517349cf9fd40751ae210119ad0645fe596d54726bd4862b5541d3fbe5e031be"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::tools::generic::args_summary (cognitive 23): osa_tui::tools::generic::args_summary has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/generic.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b0ca04f4a6ad963408f3e224320814df0013e8bac70417b7f921daa4583525"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::view::onboarding_flow::push_channels (cognitive 23): osa_tui::view::onboarding_flow::push_channels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6048e57f74b366d2dc5f7fd7faa8500fdd584df1b66d5bb34e48476dd0fb8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"RfbConnection.RunAsync (cognitive 22): RfbConnection.RunAsync has cognitive complexity 22 (threshold 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":"native/windows/ScreenShare/RfbConnection.cs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"051ef82eb653a3b04c0b2bdd9a2bd3ada0ec05617839e2103b85aea12d4701b8"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalTracker.request_decision (cognitive 22): GoalTracker.request_decision has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ce790eec3fda6ecf64269ac8e7f8f974eab8c7926b0b860571ad1c923fa09b"}},{"ruleId":"D2","level":"warning","message":{"text":"CronEngine.parse_single (cognitive 22): CronEngine.parse_single has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/cron_engine.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f434a6ea31f1267b61df8a5b2154b959d74b23e163d44cfa4d6397d4876d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Application.start (cognitive 22): Application.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 2 (6 pts), boolean chains 4, match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/application.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ebf1fcc20f17ec051e4d86249f0d35f023a0e738859195717a33093c03d0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.loop (cognitive 22): CLI.loop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 3 (5 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli.ex"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d5486ea88d9b0cdf1b4420ffc4378eaf05eaad3b44bc74a6b7c54f6a853433"}},{"ruleId":"D2","level":"warning","message":{"text":"Fs.write (cognitive 22): Fs.write has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (5 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc329aab5b7ec8a0c56343011fa43cc4e264fa0db4ab731ce74ecaf5b053d69"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompat.do_finalize_sse_stream (cognitive 22): OpenAICompat.do_finalize_sse_stream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a742ebc31e60ed233921ea5c1d4cfe650c63f550f3921684c1a60e43fc13528"}},{"ruleId":"D2","level":"warning","message":{"text":"RetryClassifier.parse_http_date (cognitive 22): RetryClassifier.parse_http_date has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/retry_classifier.ex"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cb97853afa8b7df87ab6c3b52e63719650bb958402b7ebacfab76c7e55f7d7"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_screen_capture_wayland::rfb::serve (cognitive 22): osa_screen_capture_wayland::rfb::serve has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 3 (7 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 12). 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":"native/linux/ScreenShare/src/rfb.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbaf981cad272b56fcc1f0beee69e6e34f5a64cfe3b95fb8ca954af47b15062"}},{"ruleId":"D2","level":"warning","message":{"text":"Message::height_uncached (cognitive 22): Message::height_uncached has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22ea59f92975dcfaf88fb0daec6e1b8e0fc1240de258f66ee90905cf98d3ded"}},{"ruleId":"D2","level":"warning","message":{"text":"Picker::draw (cognitive 22): Picker::draw has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 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":"priv/rust/tui/src/dialogs/picker.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bccb31eea431459e97f71919b3d66c643dc5ef55a9feef08e6bddfe262b142f"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::app::event_loop::replay_scrollback (cognitive 22): osa_tui::app::event_loop::replay_scrollback has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (4 pts), match/switch 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba311f198331a41930cdc142a163426c1e7d07196f8ba2bd2a7fae532653b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.cmd_goal (cognitive 21): Commands.cmd_goal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 3 (6 pts), boolean chains 5 (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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5a993dc883ee0c05dc19c6843ac637c49b68e5d947176e720350f7995bfc99"}},{"ruleId":"D2","level":"warning","message":{"text":"Orchestrator.resume_subagent (cognitive 21): Orchestrator.resume_subagent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (8 pts), boolean chains 3 (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":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f690cc7e6802f2f692c88a3103305e246f53b70e0c3d04bb8fd028ad6bd5cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"CodebaseExplore.detect_patterns (cognitive 21): CodebaseExplore.detect_patterns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, 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":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea3ac2b1bc0575621d1671b0b4ef9bab950612a0f072406efc7b7063b40cb30"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::allocate_col_widths (cognitive 21): osa_tui::render::markdown::allocate_col_widths has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (5 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"395fca2779cf41e6865c7917660afef39d1bb2c061df0749e78ba2e72cb6be0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Loop.cancel (cognitive 20): Loop.cancel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, error handling 4, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dc3245b6b029c7591a457b76e63f74c18287a5d95f7307e83db10caa74c8cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.models_install (cognitive 20): Commands.models_install has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2c9b0081b7c4ac9d09eb0efaa3ea4475d1d82ac3eaf66fe1fda99724b8221e"}},{"ruleId":"D2","level":"warning","message":{"text":"Ollama.process_ndjson_line (cognitive 20): Ollama.process_ndjson_line has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, match/switch 3 (5 pts) (nesting depth added 4). 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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dbcef3cbe1eba9c787e5645778541ca42dc73727a28449ad7d76b148364160"}},{"ruleId":"D2","level":"warning","message":{"text":"atspi_tree.walk (cognitive 20): atspi_tree.walk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 8, error handling 1, 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":"priv/scripts/atspi_tree.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdeee011d60567b10fcfce0bbf9db48cf8ad32ee0661d50e21643a7ec1e3fcd"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_health_result (cognitive 20): App::handle_health_result has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba67ca88caf4ff602ab79797e80c93c3e71462143c4c8c07101fca66d0412023"}},{"ruleId":"D2","level":"warning","message":{"text":"Activity::wrapped_details_lines (cognitive 20): Activity::wrapped_details_lines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9b518d85779808ea575df1a8998abbc38a504713758346b210f5646a1e1cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"InputComponent::top_level_candidates (cognitive 20): InputComponent::top_level_candidates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e3c7cdf542903a10d8a441753236b8bca183c4db6ef16d0f073f834938849e"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEditor::draw (cognitive 20): ConfigEditor::draw has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0962bd455390723d4d0d532348f7378b715f0cc59b6a3e0c3d00c56e9b04e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePicker::draw (cognitive 20): FilePicker::draw has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe0b7b18a906ab982381cee433e9b222104854280e0e4cb7833368b2741ac5"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::components::osc8::supports_hyperlinks_with (cognitive 20): osa_tui::components::osc8::supports_hyperlinks_with has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2 (3 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":"priv/rust/tui/src/components/osc8.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73b9ea447c709ef7e6fc79e949857a5e79ddfbeda68316e1b1b1d8c3f419246"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::diff::overlay_syntax_fg (cognitive 20): osa_tui::render::diff::overlay_syntax_fg has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (6 pts), match/switch 2 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/diff.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f45eb156fbe6893f6160c40f7a3f335a62c136ebee2652ca7fecbb56889daf3"}},{"ruleId":"D2","level":"warning","message":{"text":"Handlers.read_before_write (cognitive 19): Handlers.read_before_write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (5 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/handlers.ex"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"064526a59497b39950080b6f14516fe731488f12d3c265b3dc11f3400c9f68d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer.print_banner (cognitive 19): Renderer.print_banner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), error handling 7, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e6be45a7c476c185a41a4986ce6c4d983faa64c80084e5d56ad0e33df88a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"CiScan.run (cognitive 19): CiScan.run has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (13 pts), if/else 5, boolean chains 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/ci_scan.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e99e95ba72a78e2384f1a2718a3a03054e03f914164fe6400a3fa5a9ed0943"}},{"ruleId":"D2","level":"warning","message":{"text":"FileState.read_status (cognitive 19): FileState.read_status has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 5 (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":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3864c6ebbfa70257e85544a5da7cbaf1ad89975a79b4c441db48426fc476fd"}},{"ruleId":"D2","level":"warning","message":{"text":"App::draw_inline (cognitive 19): App::draw_inline has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5f68c84d602e4c38f57bcd408ae662090120d8d93fb4ea654365569769c377"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptViewer::handle_mouse (cognitive 19): TranscriptViewer::handle_mouse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/transcript_viewer.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c949493696be3546a588345440ce8708f21574ea1d8c6fece44976eddf2e98"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::diff::render_diff_body (cognitive 19): osa_tui::render::diff::render_diff_body has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (9 pts), match/switch 2 (7 pts), if/else 2 (3 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/diff.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56624cb86c0b64467291b3dfaf577c562d9217edc33c6fa491701ba841ebb1f"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::latex::replace_macros (cognitive 19): osa_tui::render::latex::replace_macros has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 3 (7 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":"priv/rust/tui/src/render/latex.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eba1babcb3d2d5fe38b1a1f8926414616f03c7ca22b6647ee3ef7443e8ff3ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.build (cognitive 18): Context.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, boolean chains 6, match/switch 4 (5 pts) (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"963260dcffec3bbdac6e87c24c3e2aacee1170861ff62fed6026537c7340e272"}},{"ruleId":"D2","level":"warning","message":{"text":"Onboarding.write_setup (cognitive 18): Onboarding.write_setup has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 4). 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":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"450536c42564ee4cc999710a0c248a25c08fcc9d257551b246675067245c760e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompat.parse_http_date (cognitive 18): OpenAICompat.parse_http_date has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa69a33415c33b1b00bd9ae8ab415298bbaf5b9d3b5b76f77f45926afbe9db4"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnDeduplication.check_dependency (cognitive 18): VulnDeduplication.check_dependency has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/vuln_deduplication.ex"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a3dc2bcde2e0d58b35d66aefa6d6ad17738380f307c3c4e04ea0ec78fdf321"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.execute_direct_unguarded (cognitive 18): Registry.execute_direct_unguarded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Registry.execute_unguarded) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce007d9ddfad182ce4ceef2194f3605f76ed723ab4dff490d8b68cd9821faad7"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.execute_unguarded (cognitive 18): Registry.execute_unguarded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Registry.execute_direct_unguarded) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"2083be7b8e9d86ff19764fbc3248db78d1269b47efe2853ece93c76de29bad54"}},{"ruleId":"D2","level":"warning","message":{"text":"App::measure_bands (cognitive 18): App::measure_bands has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"256566dd83c3a6fedf7a4999212dfc7cb9cff08e4989097fe757441d13f15e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"Cli::parse_from (cognitive 18): Cli::parse_from has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/config/cli.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"096f21a143fe68bfabdc3e0f313cc69f89246c3cfeba68d6fa58304cdd6c7329"}},{"ruleId":"D2","level":"warning","message":{"text":"Keybindings::apply_user (cognitive 18): Keybindings::apply_user has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/config/keybindings.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a62b391f0963b11f4172d0c30c81c78a60a6a248440da3fd711808dd19bd5da"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandPalette::draw (cognitive 18): CommandPalette::draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 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":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77c6bfe2ef7ba8f0db866079c80535bc80b112cfd1bf00ae4697197a4a2bcf4"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionsManager::draw (cognitive 18): PermissionsManager::draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/permissions_manager.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fb3dbe9c4eb2c68c18b19dd12e0e785beebb06c28a3820d792d454efddcb12"}},{"ruleId":"D2","level":"warning","message":{"text":"McpRenderer::render (cognitive 18): McpRenderer::render has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 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, 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":"priv/rust/tui/src/tools/mcp.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0ad4443ac9b91784acb0e6d71afce746aa790902c90af9ebab89f0e271f0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::dialogs::context_breakdown::draw (cognitive 18): osa_tui::dialogs::context_breakdown::draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/context_breakdown.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e5f497f156448a82e74778b57c23cba8d61d3ae532c2cc27b7c38d9608951"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown::cell_break_points (cognitive 18): osa_tui::render::markdown::cell_break_points has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"f692cc8cd563dc6b6c8932af72a91323ba0d3e92f1cc6bfb8ae9cc593b7cd155"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Parse (cognitive 17): Config.Parse has cognitive complexity 17 (threshold 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":"native/windows/ScreenShare/Config.cs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"727f816afdd20a3e6e938559e23547c6354af613ef7ebea0fa86ff416fe41731"}},{"ruleId":"D2","level":"warning","message":{"text":"Bench.bench (cognitive 17): Bench.bench has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.bench.ex"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a211733a461493614019b137dbb120051c1c25d2940334097bd21e7c8a44a97d"}},{"ruleId":"D2","level":"warning","message":{"text":"RunStore.rehydrate_file (cognitive 17): RunStore.rehydrate_file has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 4 (6 pts), boolean chains 4 (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":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cf7e46076fbd4c7c2e0874f386822a24e7d9e50f465dc34c6233a732d1dc85"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.process_input (cognitive 17): CLI.process_input has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (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":"lib/optimal_system_agent/channels/cli.ex"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50c524a5d1808677e4116befead31ef9e8ca85a38b308deab891571280ea9ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Update.set_update_enabled (cognitive 17): Update.set_update_enabled has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a911a8132ac126a3dc8e25687039bbff6585eb985d9fdb275206457f106d64b9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalModels.overview (cognitive 17): LocalModels.overview has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, match/switch 4, if/else 2. 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":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8910b1b25ac3a6dd2e1ae9e05e810a1b8395417345c1df056333cbe812f5f3a3"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.reweave_links (cognitive 17): Store.reweave_links has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 4 (6 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7d81400401fd1a54e24fe18a8f36d373c3d2d51ad6227945ddbe94bbb5f6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionGrant.accept (cognitive 17): SessionGrant.accept has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/session_grant.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8740c8908fbbb642eb5a3b63763a0552b433962ef9c33020e663afaf8b0757d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Desktop.start_session (cognitive 17): Desktop.start_session has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf80f3f003db851a1a2e0025c53a32e5cdf412cb45e7653da5d001fec3ce2dd"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoClassifier.json_verdict (cognitive 17): AutoClassifier.json_verdict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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":"lib/optimal_system_agent/permissions/auto_classifier.ex"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6786cf7eaa23da08fc42af86de0f0ddf2b5384f47739b421d17f1594856d725"}},{"ruleId":"D2","level":"warning","message":{"text":"Ollama.cloud_stream_loop (cognitive 17): Ollama.cloud_stream_loop has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), match/switch 1 (nesting depth added 2). 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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"181dfef84412b9fc60d26b15bc9674991ddb60275e7d14aa43b885d9cff5c1a3"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompat.do_chat (cognitive 17): OpenAICompat.do_chat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (5 pts), boolean chains 2, error handling 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":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82f42873a1f707c6454d3308692d94ef96a1ebcfda5b50f98accf24beef2599"}},{"ruleId":"D2","level":"warning","message":{"text":"DefenseLab.execute (cognitive 17): DefenseLab.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (6 pts), error handling 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":"lib/optimal_system_agent/security/defense_lab.ex"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5df16fc3290189b0ba52e91f53252c6ca25d25a9465167f3b8a97c8ab5c5504"}},{"ruleId":"D2","level":"warning","message":{"text":"FuzzyMatcher.block_anchor (cognitive 17): FuzzyMatcher.block_anchor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8be00bc596f44c0e10d234dc7fc5c84022d7c63594f369b73c5816021788e70"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.read_with_range_inner (cognitive 17): Handler.read_with_range_inner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fb6090bae7174e0b2ec1262d1529036de9395b7f013f277e0eceb166d77a84"}},{"ruleId":"D2","level":"warning","message":{"text":"FileRead.read_with_range (cognitive 17): FileRead.read_with_range has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 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":"lib/optimal_system_agent/tools/builtins/file_read.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb61eca0f6507acaeb65bf5fa5a4bdcd92ca91eb947ac5c976fa5cf26efc2df3"}},{"ruleId":"D2","level":"warning","message":{"text":"FileState.held_lines (cognitive 17): FileState.held_lines has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbaa79f85752b5e9a5eb6fd6d9514b9f0da67e5ead86031b7c6b09a45ea84fc"}},{"ruleId":"D2","level":"warning","message":{"text":"App::sync_chrome (cognitive 17): App::sync_chrome has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b848ec93ff21cae16bdcbe28cdfbbd3a327dc0b55b2511df1c268a08087ceb"}},{"ruleId":"D2","level":"warning","message":{"text":"ThinkingBox::draw (cognitive 17): ThinkingBox::draw has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/thinking_box.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b298f3a13ce1583255fadb7d8ce7205be083eb3a614fc49f95894190c67d087"}},{"ruleId":"D2","level":"warning","message":{"text":"InputComponent::delete_char (cognitive 17): InputComponent::delete_char has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5 (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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d852a03ff98e8fc8ce29a3c2b4a66ab69a037297384e5fa17cc286df5fc145"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingWizard::handle_step_channels (cognitive 17): OnboardingWizard::handle_step_channels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb54a0623696eaa092abdea7a4aaef6158b7c0bbba9ea483028defbe3d46bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"PtyPane::spawn (cognitive 17): PtyPane::spawn has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 2 (5 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/pty_pane.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b753d243b1dbbacbbce4a31a7f59e3e2c18d4259e1f69e5d99e2b35b253a122"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticsRenderer::render (cognitive 17): DiagnosticsRenderer::render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/diagnostics.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01edcee0ab1bf4ce3115e65a50bfe8d54bcdfd899a976a87b6833ab072bcdcc"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::app::self_update::run_osa_update (cognitive 17): osa_tui::app::self_update::run_osa_update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/self_update.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5474f38c6e1b8fe27fc4729660946508b6679c76b161ac1f891ad18d61a3d58b"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::components::input::mentions::parse_mentions (cognitive 17): osa_tui::components::input::mentions::parse_mentions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 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":"priv/rust/tui/src/components/input/mentions.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b137d7d437f8b52b1bb10b8afa44f13896661a99e68c0ddf90120d17d6903b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::tools::collapse::hook_bracket (cognitive 17): osa_tui::tools::collapse::hook_bracket has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"32973434cc731c016ab21834a6b3c267b58eb0f9dd6abf49e974a451f3d4f159"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::tools::web::parse_markdown_hits (cognitive 17): osa_tui::tools::web::parse_markdown_hits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 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":"priv/rust/tui/src/tools/web.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0285fc990ae586fde4106cd3c0cd754447b055a18b286ac2c24cadcb6798bba9"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolExecutor.maybe_ask (cognitive 16): ToolExecutor.maybe_ask has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 5, boolean chains 2 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae257a96b6c85275db3cf5762fb92b9a80dd30ce4bc9d7014add6b44b4ec5da"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.cmd_permissions (cognitive 16): Commands.cmd_permissions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (3 pts) (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4481}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d0a5ec700d9aa923f299603f555275577a517abef039ffea65dd622b63855"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.mcp_add (cognitive 16): Commands.mcp_add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4966}}}],"partialFingerprints":{"codehealthFindingId/v1":"03efee93f516b8e08a13e7e2deaccf28aedf274e6428fa23f908206d738ffc88"}},{"ruleId":"D2","level":"warning","message":{"text":"Commands.cmd_map (cognitive 16): Commands.cmd_map has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, match/switch 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":5298}}}],"partialFingerprints":{"codehealthFindingId/v1":"89610290699d835cc39e157c0728f5238e881f2f16ec1eaa183f7a68160109d0"}},{"ruleId":"D2","level":"warning","message":{"text":"DataRoutes.handle_list_models (cognitive 16): DataRoutes.handle_list_models has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (8 pts), match/switch 2 (4 pts), boolean chains 2, if/else 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":"lib/optimal_system_agent/channels/http/api/data_routes.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ca3d28fda1760ebc5eae84bf1751180e7539055b726093d2d6c94b466bf179"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillGenerator.do_generate_from_pattern (cognitive 16): SkillGenerator.do_generate_from_pattern has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 3, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/skill_generator.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"172e1cdf0c4a1a2b1beca5957e74d83a4300295ac5cc805bc61a66bdffb5772d"}},{"ruleId":"D2","level":"warning","message":{"text":"Observability.current_reasoning (cognitive 16): Observability.current_reasoning has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 3 (4 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/observability.ex"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce71790d167cce52a9c08d442c16a6c37b6ee63c8458a63d605da8304d1b4e09"}},{"ruleId":"D2","level":"warning","message":{"text":"Pty.open_unix_pty (cognitive 16): Pty.open_unix_pty has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), error handling 2 (4 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/pty.ex"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfe1508b5402a57f2adaeef6f0b4e80deae8cb8821a2ec46cfb373386aba708"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompat.process_delta (cognitive 16): OpenAICompat.process_delta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3, boolean chains 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24ce4ffd02121838c34310e0f31888586e0d20a5b172fac2e5ed59243ee17e1"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOS.perform_element (cognitive 16): MacOS.perform_element has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 4, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aeedb81ff7389848f9d37d49baf6ba9ec14e1df995e4b5a371b172e736f53db"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.scan (cognitive 16): Handler.scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de5e6ae53c2f0c840591212647579a8b5e5636248afefb0ed216d44f9abfd56"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_package.verify (cognitive 16): verify_package.verify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/linux/ScreenShare/verify_package.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc88ab1bc296699b1b6ae13b2e369e4c6e5f93c68f7228252205d371cd9488c9"}},{"ruleId":"D2","level":"warning","message":{"text":"OwnedStore.init (cognitive 16): OwnedStore.init has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/OpenComputersVM/Sources/OwnedStore.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f23518ff8285db4b577f9c685fe3f4f74bd1a4277986094bf9731737e3681c"}},{"ruleId":"D2","level":"warning","message":{"text":"VirtualMachines.handle (cognitive 16): VirtualMachines.handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), error handling 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":"native/macos/OpenComputersVM/Sources/VirtualMachines.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927af86fa8be8d0b6a2cae905d60a23a0aedc97edd91128ff50d27b87484601"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat::draw_live (cognitive 16): Chat::draw_live has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/mod.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"86358f1a9def9cff2569eaddc8e6faed5bfba0f60a53a6c3594fe3d51d2dd965"}},{"ruleId":"D2","level":"warning","message":{"text":"InputComponent::walk_dir (cognitive 16): InputComponent::walk_dir has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff02bddf7aaf061d3af9506363a433cb3ced75dcf173532bb1a6ce65e4b425b5"}},{"ruleId":"D2","level":"warning","message":{"text":"KeybindingsViewer::draw (cognitive 16): KeybindingsViewer::draw has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/keybindings_viewer.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d27c5a02f83c5c6c7923d9a3aa0594e6e8a6caa9da2da2d18f84301c9f27183"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPicker::handle_local_detail_key (cognitive 16): ModelPicker::handle_local_detail_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3598a411a2fd788abf1c4a2a937951ad563f4cf069d52e8fd77e28bbb75774fd"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingWizard::draw_step_provider (cognitive 16): OnboardingWizard::draw_step_provider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56c15003ebcbabaf9fef9985a203f7fe7bb61ef536566a93bb1293ed51c4dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingWizard::draw_step_channels (cognitive 16): OnboardingWizard::draw_step_channels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43bac4ba4b85643cc4b947e4fa76fe2aac5500c20573a7c62c342e3479365b9"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingWizard::draw_step_confirm (cognitive 16): OnboardingWizard::draw_step_confirm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebd868e1eb89b04b57ba7a66eec253f932ace77c615f8a103f6fe0344150f59"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningSelector::draw (cognitive 16): ReasoningSelector::draw has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/reasoning.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec9ee42e7ae643451fe312f95afc3ce1f78207ea3d91bba96e1c6e3d87e5d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsBrowser::ordered (cognitive 16): SkillsBrowser::ordered has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d764aed84d33653b8ad9b4da672f3707a35054c0ecc9871b47c148b21b4314"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsBrowser::ordered (cognitive 16): ToolsBrowser::ordered has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (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":"priv/rust/tui/src/dialogs/tools_browser.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"36634a7710471abdcde7169d44a60a64abf1ee22865f01edc06f79d53a11e780"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::colors::detect_color_level (cognitive 16): osa_tui::render::colors::detect_color_level has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/colors.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5706656743338a851c5aa9304f915287b04386e9a06239e31502c669f3b8a4"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::render::markdown_stream::find_frozen_boundary (cognitive 16): osa_tui::render::markdown_stream::find_frozen_boundary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown_stream.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1680fd06652a4f04590190d30c08e086398c258eac99ca618b43f4431f1c1b97"}},{"ruleId":"D2","level":"warning","message":{"text":"osa_tui::view::onboarding_flow::push_model_select (cognitive 16): osa_tui::view::onboarding_flow::push_model_select has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5797eb97263a938eb62e239107c2033ee8d0d14e58efc76106a0c4d6bf1331a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_backend_event: MethodTooLong \u2014 handle_backend_event runs 2271 significant 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 2171 over it, 22.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":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"27746b7c0e30d0c4c6d52c9489316bb29909914bac2e7b2361911fc807c9cb59"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::client::sse::parse_system_event: FunctionTooLong \u2014 osa_tui::client::sse::parse_system_event runs 1034 significant 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 934 over it, 10.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3723e6485e40851a4a90b178fafbe7c5db802cf066ce7bbea389e3bdbcfef54a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/commands.ex: FileTooLong \u2014 3896 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 212 functions. The bar is 500 significant lines; this is 3396 over it, 7.79\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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68d94c5476a32b02d311184737ee26eda0e4556ca1d88f78f304f4f9da54492"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 226 methods, declared across 10 files: app/handle_actions.rs (68), app/handle_dialogs.rs (54), app/update.rs (31), app/mod.rs (25), \u002B6 more file(s). The bar is 30 methods; this is 196 over it, 7.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. 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":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad6118065b4d07c9d848a573f9471ad97065a5704be4ef1b7e1192f5f8a8202"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/handle_backend.rs: FileTooLong \u2014 2441 significant 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 96% of them inside a single declaration: App (2 blocks, 8-4148). The bar is 500 significant lines; this is 1941 over it, 4.88\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":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f34fdfc5a32c19e755d2238dc3bef2ecb9abdbef12beef019ae191b0799db27"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::client::sse::parse_sse_event: FunctionTooLong \u2014 osa_tui::client::sse::parse_sse_event runs 481 significant 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 381 over it, 4.81\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":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5813898669c5f725aa8349e890f311fb2cffb81a3c95fc81f7e09c2875e1b206"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 136 stored fields beside 226 methods. The bar is 30 stored fields; this is 106 over it, 4.53\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":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fa7a2725c4014e3eb3b5397e079829d84dc3f646b8835405c182d06341d58b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/react_loop.ex: FileTooLong \u2014 2170 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 84 functions. The bar is 500 significant lines; this is 1670 over it, 4.34\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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3fffc793a57a91b095bcf76efcbc5c0ffe0b9555864cb6f08eae5bf0df99ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimal_system_agent/orchestrator.ex: FileTooLong \u2014 2130 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 102 functions. The bar is 500 significant lines; this is 1630 over it, 4.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":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76876d7d6467f70862eb11c829cec2061b1a67230a38b8eba35a0aae3f723c6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InputComponent: ClassTooLong \u2014 1701 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 103 methods, 3 blocks, lines 82-3155. The bar is 400 significant lines; this is 1301 over it, 4.25\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"277e4855ff009979ed9638dfe1e33f797583b340611ad6170d4f1d863d620146"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_command: MethodTooLong \u2014 handle_command runs 419 significant 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 319 over it, 4.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":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"91831ed6c106194cbca2d9a69b2f78ed4681f950ea58bce6b61c881effe08d12"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimal_system_agent/onboarding.ex: FileTooLong \u2014 2030 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 104 functions. The bar is 500 significant lines; this is 1530 over it, 4.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":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14df486800fc999d7af2d210e9b6f0249bcd0897604f179fee425b7eb91f224e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Agents.draw_tree: MethodTooLong \u2014 draw_tree runs 404 significant 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 304 over it, 4.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca3aa217a39f8aab7e6130736a6d075a968bcee3313cb123986e8dfbef6db52"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatusBar.draw: MethodTooLong \u2014 draw runs 398 significant 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 298 over it, 3.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e0b3624f97bb21cf26384641e36983672495726ec5b4b53a96275ce3df0a10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: input/mod.rs: FileTooLong \u2014 1896 significant 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 90% of them inside a single declaration: InputComponent (3 blocks, 82-3155). The bar is 500 significant lines; this is 1396 over it, 3.79\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abaeb82ea9382bd991e068b5fd926f996357790836b485d7c9142e603b1ff04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ApiClient: TooManyMethods \u2014 109 methods. The bar is 30 methods; this is 79 over it, 3.63\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":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a231cadd7ff1155fc03f579b10d3849cec11739ee5dec71b88370fc313918923"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InputComponent: TooManyMethods \u2014 103 methods. The bar is 30 methods; this is 73 over it, 3.43\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4eb11d598988e95278850d34d730932c27c55e3d661ccdeae2f5c8bb82c31c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/sse.rs: FileTooLong \u2014 1713 significant 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 1213 over it, 3.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72938d3b6e8adfda9347307c36291932ad2800d05d03fbfc2a92d5acef321ab7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelPicker: ClassTooLong \u2014 1363 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 94 methods, 2 blocks, lines 239-2543. The bar is 400 significant lines; this is 963 over it, 3.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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a84d6571a45e4c0b903562f831e2a3faf0f5c72b7760064f20ba58557c2c98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/loop.ex: FileTooLong \u2014 1698 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 99 functions. The bar is 500 significant lines; this is 1198 over it, 3.40\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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7531e0712136e974bf6f332f61723f2023101f3eaaa9de123e4007b06c55305"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::render::markdown::parse_inline: FunctionTooLong \u2014 osa_tui::render::markdown::parse_inline runs 315 significant 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 215 over it, 3.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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4310bddaadc347113cfc5cef12b5d24a06ab38196b51f4ca28d01fb6f886ef9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelPicker: TooManyMethods \u2014 94 methods, declared across 2 files: dialogs/model_picker.rs (69), model_picker/local.rs (25). The bar is 30 methods; this is 64 over it, 3.13\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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf060c0acb1ff9f339cb5f6106c4173cc186165170f5b0d2591e7cfa850cf0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dialogs/model_picker.rs: FileTooLong \u2014 1534 significant 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: ModelPicker (2 blocks, 239-2543). The bar is 500 significant lines; this is 1034 over it, 3.07\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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cecd6df19c5020455d747fc2006c684db8387d1a2b2257a41c45a3c70fd86e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnboardingWizard: ClassTooLong \u2014 1177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 70 methods, 2 blocks, lines 92-1918. The bar is 400 significant lines; this is 777 over it, 2.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":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8be91f20693630f69185a10273c120b0055e022a3898ac714c89bc5f511894"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/handle_actions.rs: FileTooLong \u2014 1459 significant 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 87% of them inside a single declaration: App (2 blocks, 10-3779). The bar is 500 significant lines; this is 959 over it, 2.92\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":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"446cdbb4472d4347b64971eaff5635ccdec1d107361b162ea01007b83ea93c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/registry.ex: FileTooLong \u2014 1415 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 114 functions. The bar is 500 significant lines; this is 915 over it, 2.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f511bbe72597355c53a16a2b83e97c7f4342dce8937688c2cf32cbd3e9f9a331"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/goal_verifier.ex: FileTooLong \u2014 1409 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 102 functions. The bar is 500 significant lines; this is 909 over it, 2.82\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6265d425cee40f2e3c2aebcccd40b14e45d380ef6b20f64bb840966b8b1afeaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/compactor.ex: FileTooLong \u2014 1407 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 94 functions. The bar is 500 significant lines; this is 907 over it, 2.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e135c2657c0a19dbf088194c30cdf036884de20fc72cd90b99166aa8f2284b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: render/markdown.rs: FileTooLong \u2014 1399 significant 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 46 free functions. The bar is 500 significant lines; this is 899 over it, 2.80\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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc6fd0085443e21a26cb10eeace8a06fb8692133cc34aa784be5b4814935d2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.run: MethodTooLong \u2014 run runs 270 significant 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 170 over it, 2.70\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":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"574c6250b87b62f08d1c90a7caeb50fcbcbd084afe3ca5eff36b9aea91e32aa8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Activity: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0509004f49625b423a8b15b6b2dc556371a102a5fc53971bcc5aa368db501"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Activity.draw: MethodTooLong \u2014 draw runs 264 significant 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 164 over it, 2.64\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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65cdb040ed556e3979e1448825c38d8d7c473bb283a3d7670fd0b4d46908f7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/event_loop.rs: FileTooLong \u2014 1295 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 795 over it, 2.59\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":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4b816f79deecbc4fc5f228aa52cccb118c9be3d35ebcbe45f6296ff1091234"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_compat.ex: FileTooLong \u2014 1288 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 93 functions. The bar is 500 significant lines; this is 788 over it, 2.58\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":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"985ee013c6fad176e55830e448e8fd6b2ccbb201cc95b286b246bb5cb55c17d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/activity.rs: FileTooLong \u2014 1235 significant 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 77% of them inside a single declaration: Activity (3 blocks, 514-2799). The bar is 500 significant lines; this is 735 over it, 2.47\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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7f3718b35a9b5cb20e5703617a2a8d967dbeec4ac0a3c204fb260dbda59b50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dialogs/onboarding.rs: FileTooLong \u2014 1234 significant 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 95% of them inside a single declaration: OnboardingWizard (2 blocks, 92-1918). The bar is 500 significant lines; this is 734 over it, 2.47\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":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"602dd361afe0c6c2621d4db8499490746385f2bcc239b76ed7a4413666e6bf11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InputComponent.draw: MethodTooLong \u2014 draw runs 246 significant 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 146 over it, 2.46\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a8e8d7e9ad8e17eb825352af70e8efc39d31e09a36c392f02f66c329002147"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/tool_executor.ex: FileTooLong \u2014 1227 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 75 functions. The bar is 500 significant lines; this is 727 over it, 2.45\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":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2be62517a82b1c4489fca7a9a3ba103f5b4c2806e173cbf15919492cca405b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/context.ex: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 84 functions. The bar is 500 significant lines; this is 704 over it, 2.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2bda1c93791c297dc71c2975984aa6015ac0d9bd9dc972ad8b4013cdf70bc7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Agents: TooManyMethods \u2014 72 methods, declared across 2 files: agents/mod.rs (69), agents/render.rs (3). The bar is 30 methods; this is 42 over it, 2.40\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":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a0fe1982f94472500e2cc3726cceddef1b8832fce847ff47e1399149818460"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Activity: ClassTooLong \u2014 957 significant 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, 3 blocks, lines 514-2799. The bar is 400 significant lines; this is 557 over it, 2.39\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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"951cce47b2c58efd542f156b19b23ae05fb2d1404d0c7227235132ce73b447ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InputComponent.handle_event: MethodTooLong \u2014 handle_event runs 237 significant 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 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"8004d9193ac4a05ca8b6efa724e408e9baf32ca2a3d67e22ecf7401316f6ae46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OnboardingWizard: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\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":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"01256663ad9d1018c7a61c2578f620b2eeeefbff64169a733300fce9e7777ca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::render::markdown::render_markdown: FunctionTooLong \u2014 osa_tui::render::markdown::render_markdown runs 231 significant 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 131 over it, 2.31\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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a64345442ac903e83fd653481e238b37a99406da7dd54e82fd4b07f6e106f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/goal_tracker.ex: FileTooLong \u2014 1139 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 95 functions. The bar is 500 significant lines; this is 639 over it, 2.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":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cd0c778f9887a973d4078966f21fda9903138e31ae31a2d3d0a5dd607060e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/anthropic.ex: FileTooLong \u2014 1125 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 69 functions. The bar is 500 significant lines; this is 625 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3c4918cf534c64e9d3f717d181d12c74daa69ef8fe3965595edd429cc8068a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatusBar: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\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":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"682cb864cb48dc8978f192f743fa466cec2bdf68dc306d06859d831fb6e7ed38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/session_routes.ex: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 586 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/session_routes.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"761d585e3f54d296252ce20c29cf9da75f07412e953d7355519731e954de338e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ApiClient: ClassTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 109 methods, 3 blocks, lines 89-2050. The bar is 400 significant lines; this is 428 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ca68ef538b000f35f2dd34e4302b19f08b79c14f31c9730b1b5572dc41b48a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/ollama.ex: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 72 functions. The bar is 500 significant lines; this is 514 over it, 2.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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9595f33000f1bc37cc9c9f5c7954e30627156dea81bd154a780fb77f2ab6a53f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/status_bar.rs: FileTooLong \u2014 995 significant 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 77% of them inside a single declaration: StatusBar (3 blocks, 510-1982). The bar is 500 significant lines; this is 495 over it, 1.99\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":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8552feeecc3b08d66843a9096f7bcdc2faa7bd259dd58088fa7912cc04b2c57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Agents.draw_dashboard: MethodTooLong \u2014 draw_dashboard runs 193 significant 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 93 over it, 1.93\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":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"32591ff8d3fa2cd347c626b47572a0ccabc52a216f4af58779bb0d55bd9b9c47"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatusBar: ClassTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 66 methods, 3 blocks, lines 510-1982. The bar is 400 significant lines; this is 364 over it, 1.91\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":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f1d12d9dface946bf0fdbb8adffc304823e5a8c6c889bae1d5dc1b0259fb65"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.new: MethodTooLong \u2014 new runs 190 significant 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 90 over it, 1.90\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":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88aeb6ffa340223fea5c1767d6aa188f54a8ee9049040da71ad75039dad59c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/run_store.ex: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 76 functions. The bar is 500 significant lines; this is 435 over it, 1.87\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":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b98e48005b79772757370ca5b45c6a5b2df7a679ae264a119dea1ff238d5545"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/session_persistence.ex: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 82 functions. The bar is 500 significant lines; this is 427 over it, 1.85\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf8ec2e3c6c133a28548cd8b82b0789a57932fbcaf48141e24a285eb9ee4888"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/handle_dialogs.rs: FileTooLong \u2014 903 significant 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 99% of them inside a single declaration: App (19-1480). The bar is 500 significant lines; this is 403 over it, 1.81\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":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad7a23b5046313fc547c58321b1794a76adceadbc8287b89026cc5786663e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Settings: TooManyFunctions \u2014 54 functions. The bar is 30 functions; this is 24 over it, 1.80\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb8c9f3f5216087e2ee8c539eae3b0c8e8adbcf490c9f9c5f9ece13794b0e69"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/types.rs: FileTooLong \u2014 891 significant 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 391 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/types.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5f4f3e5d550ce00554ddeb10a235293df16a3ee77ec96db985fc83c146eeee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Activity: TooManyFields \u2014 53 stored fields beside 80 methods. The bar is 30 stored fields; this is 23 over it, 1.77\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":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"73967a126a01c8a5ba9a414af889059beb36a58a1ae2d7f15f63f05425af2095"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Agents: ClassTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 72 methods, 4 blocks, lines 27-1661. The bar is 400 significant lines; this is 305 over it, 1.76\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":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cec206b6208c1e116e0039f0e3c4df3c8e6030c5fbc23946ba048de45b37718"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/update.rs: FileTooLong \u2014 868 significant 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 94% of them inside a single declaration: App (117-1742). The bar is 500 significant lines; this is 368 over it, 1.74\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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51e6524db585ac70c136de6a0833b4b2e033210e9f78d20288e18b508f40932"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/http.rs: FileTooLong \u2014 859 significant 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 96% of them inside a single declaration: ApiClient (3 blocks, 89-2050). The bar is 500 significant lines; this is 359 over it, 1.72\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":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee692ddbf14194b7726a56876d87ce2b34c978c1e4d7969867baffbce2be9a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agents/mod.rs: FileTooLong \u2014 856 significant 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: Agents (4 blocks, 27-1661). The bar is 500 significant lines; this is 356 over it, 1.71\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":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b2307fc7ba2e7cad313810f68539e141d8620bc1f5a5e1ba38326125119431"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillsBrowser.draw: MethodTooLong \u2014 draw runs 170 significant 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 70 over it, 1.70\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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4efee324a5bf981791a63aba18681c8f32abf0de8189666b9fa2cd46d91052"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Chat: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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":"priv/rust/tui/src/components/chat/mod.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7479bfcc2aad41aa8baa551878ce5f82858f70c0f9b9b05cb3a16965bc27244"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: doctor/inspection.ex: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 59 functions. The bar is 500 significant lines; this is 301 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fb4daf0346eb3026f5ff07838d45ef209b8ae688b3b1205a52ec7857f4f481"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: StatusBar: TooManyFields \u2014 48 stored fields beside 66 methods. The bar is 30 stored fields; this is 18 over it, 1.60\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":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85a6ee40157218addaf510406a758dbcc379f190e96d031c8b72303c00beaab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PermissionsManager.draw: MethodTooLong \u2014 draw runs 159 significant 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 59 over it, 1.59\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":"priv/rust/tui/src/dialogs/permissions_manager.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03c6a2dc53854fa8354a071a5559c819bc254a8abc0bcf41b9ea491cb8f66d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Handler: TooManyFunctions \u2014 47 functions. The bar is 30 functions; this is 17 over it, 1.57\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"120ca28d3d64b3f7480a2eeaea510b0833dae69ccfe29506a5b903d8ec38c1a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agents/render.rs: FileTooLong \u2014 780 significant 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 77% of them inside a single declaration: Agents (17-1195). The bar is 500 significant lines; this is 280 over it, 1.56\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":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9790758ce523fc6e37a7589cee3f2c31fc5147030fe9a2cc4be0213c21b23f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/llm_client.ex: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 48 functions. 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":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"600159277b0cd73cca1c1c44807af560e411741674b3c500e42b513c2b078620"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/fleet.ex: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 64 functions. The bar is 500 significant lines; this is 274 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":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6e3fe086cde577d45c87859455742ac9c9fc1c19303da7cfd2d1609bc885dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/mod.rs: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 79% of them inside a single declaration: App (2 blocks, 104-1524). The bar is 500 significant lines; this is 273 over it, 1.55\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":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5b621798313808f9113fcc811622eed1fbc0e610917e6b78f2fed552329ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: memory/store.ex: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 57 functions. The bar is 500 significant lines; this is 266 over it, 1.53\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":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e328609a3b5f2a7b2b8d617718c07c8a2e2a19ed6857a3d195bf5c8960d1aaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaPicker.draw: MethodTooLong \u2014 draw runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/persona_picker.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cebe03b20e699800feb36623281d48661e08c36a966b3af9ab9ddb83c775838"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/registry.ex: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 59 functions. The bar is 500 significant lines; this is 263 over it, 1.53\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":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7e0aba27019191f5f6cd3da02e7448583ecbdb62a502106e129bcf1608ae52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view/onboarding_flow.rs: FileTooLong \u2014 761 significant 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 261 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b29422288e7e8258f4ac9504ad4205d04b52c8d938ff8ef8b5b8c664107cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 226 methods, 2 blocks, lines 104-1524. The bar is 400 significant lines; this is 208 over it, 1.52\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":"priv/rust/tui/src/app/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacaf2c7de7ec797a91db24fc5816f89f2e9d7bcc0a5f7634128bab358329346"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: miosa/shims.ex: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/miosa/shims.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808eba11c1aeadabacf890b29ef3ad8fd981156bcc33bbe7215b795c9986f51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channels/http.ex: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 253 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51495603c0b84a564752951ddee792c94c75ff51e78904a23831750dbbd282db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Tasks: TooManyFunctions \u2014 45 functions. The bar is 30 functions; this is 15 over it, 1.50\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eeae305fcce5f7076e79adc264b125bc782508ed87a5d30ee42678922e00bea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Soul: TooManyFunctions \u2014 45 functions. The bar is 30 functions; this is 15 over it, 1.50\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eb83ce1b8a1d4f2c1f37952df8a83715506b2bf5dfe40fc007917d1917553e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DoctorPanel.draw: MethodTooLong \u2014 draw runs 150 significant 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 50 over it, 1.50\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":"priv/rust/tui/src/dialogs/doctor_panel.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e067dd680a6bdc0d92c51676c939136dde8293c77c0b217099cf2d8c967b55e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolsBrowser.draw: MethodTooLong \u2014 draw runs 150 significant 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 50 over it, 1.50\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":"priv/rust/tui/src/dialogs/tools_browser.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee84a6242d8a4c8be546c34f25b1919efb0742d8ffc5f16673bda28dea3d7118"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MemoryBrowser.draw: MethodTooLong \u2014 draw runs 147 significant 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 47 over it, 1.47\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":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ac3f2dea76c36bf4edb9ddb1d2d6f095f18d44a343f982171bd721f9df020e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/line_editor.ex: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 51 functions. 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":"lib/optimal_system_agent/channels/cli/line_editor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db246e78f3f20f69ab65a471ca38ce7d6766dc94d88723fa126793a9a575cc53"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SandboxPicker.draw: MethodTooLong \u2014 draw runs 145 significant 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 45 over it, 1.45\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":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"98165dfae826b372a46b91d4a5fb822b187403f3a499b01b1a8c7b13039705f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ConfigFile: TooManyFunctions \u2014 43 functions. The bar is 30 functions; this is 13 over it, 1.43\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config_file.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc33584ea6d45601071b6a3714012021f6af03a0807ad9d3e0c868e4845fdabd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapters/macos.ex: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 70 functions. The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d478598cd11f73ac62b1f771175127126a9ed432bff9a7400b68838bc9b87c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_key: MethodTooLong \u2014 handle_key runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60621a0a8899ab2390191ec71fbc9d43b5cea03c39ab92b3d4b662a67f041c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionBrowser.draw: MethodTooLong \u2014 draw runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sessions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccacaf731f512f6c49205c1cc5932a105c79c41d5a4d01ed66f52ac42fcf04b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: CacheAttribution: TooManyFunctions \u2014 42 functions. The bar is 30 functions; this is 12 over it, 1.40\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b5e8b1dbf2de458003071b27e6cde561ff785098912c876673bdf0d38cd735"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: LinuxX11: TooManyFunctions \u2014 42 functions. The bar is 30 functions; this is 12 over it, 1.40\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa161e396e959fd122360e983f8bc96e52fe4a9c745e308477b620bcba34f776"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimal_system_agent/permissions.ex: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 71 functions. The bar is 500 significant lines; this is 198 over it, 1.40\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":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2becca11e92f40f819f7c537b7cfd91b12fdf16b61aafa8024cfed214da1caa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/tool_routes.ex: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 33 functions. The bar is 500 significant lines; this is 197 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":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077859fe724ddbb1bf0c80c191451a32978abe30c55581c64a0974a94cce8f03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/headless.ex: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 65 functions. 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":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0656ffcfc44d2a47f8f3f16fb8c6a178d3dcb94c686973664fd3044e41b88e83"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TasksPanel.draw: MethodTooLong \u2014 draw 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":"priv/rust/tui/src/dialogs/tasks_panel.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e2625546d90366f3f7c23e94e483ed1ec01840a70d245e1716511e6ab89e37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/commands.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), about 86% of them inside a single declaration: App (127-1195). The bar is 500 significant lines; this is 186 over it, 1.37\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":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c108ad4c56e7df456bf225ef8a8050587eca364313e1acb39df5f27a82abfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::dialogs::context_breakdown::draw: FunctionTooLong \u2014 osa_tui::dialogs::context_breakdown::draw runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/context_breakdown.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a172a39a387ef4938870bdfd4ee00976c6f103bda7953fc3c9f32d240f6b49d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InputComponent: TooManyFields \u2014 41 stored fields beside 103 methods. The bar is 30 stored fields; this is 11 over it, 1.37\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb5462f1e6a4ec224094cde7cc1a594f46feefb34bb042acde8283aae8edfee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: SkillLoader: TooManyFunctions \u2014 41 functions. The bar is 30 functions; this is 11 over it, 1.37\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry/skill_loader.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"972016c9001996f34348fb435d9f92e097d1f727fa8802e8f7fad2762597a929"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/proactive_compaction.ex: FileTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 48 functions. The bar is 500 significant lines; this is 181 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":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff5f790c086599915f3a1f7ff6c57728b71919ac79707477eb3be1681491baf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builtins/security_intel.ex: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 57 functions. The bar is 500 significant lines; this is 174 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":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac119d535987b07f58efa06503fdbf51813c2d18e025af2266af512a655a4f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/scheduler.ex: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 59 functions. The bar is 500 significant lines; this is 171 over it, 1.34\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":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8cd05c382cc93ede5941f38dee9996448ea0a8ef8fdfd5887e0c2607091c92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Doctor: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04faf883518f1474a6f3e58c98b9b40f9eb3b71002fff8219bfea3249c06d7a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Miosa: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/miosa.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df16ef501dbdd3ba4e65125a8fc0ea3ec905e77baaac106cd11c1c093e702dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::components::chat::welcome::welcome_lines: FunctionTooLong \u2014 osa_tui::components::chat::welcome::welcome_lines runs 132 significant 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 32 over it, 1.32\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":"priv/rust/tui/src/components/chat/welcome.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee87fa80d9dcd88a569b10aafa9a7f861ebdad14149adc5d9c5e1ec380a8144"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::dialogs::status_dashboard::draw: FunctionTooLong \u2014 osa_tui::dialogs::status_dashboard::draw runs 132 significant 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 32 over it, 1.32\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":"priv/rust/tui/src/dialogs/status_dashboard.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd2191f362f52c1b63c686e17c6c84fcf1c1766008360f749b04b0cfdb27ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dialogs/transcript_viewer.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":"priv/rust/tui/src/dialogs/transcript_viewer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c97130a893184d7dab15d2ad40bceb41a0bcbe866d1c02a0039ab27824aebd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Permissions.draw_inline: MethodTooLong \u2014 draw_inline runs 131 significant 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 31 over it, 1.31\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":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfa70dedac17006fc80257137ccbdaaa8482982b210032cfaede442d6723b40"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Pricing: TooManyFunctions \u2014 39 functions. The bar is 30 functions; this is 9 over it, 1.30\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03e2ed6d53834222b73db47c357f7e3934e76ce224b7a0035fa577fd95b33f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Reminders: TooManyFunctions \u2014 39 functions. The bar is 30 functions; this is 9 over it, 1.30\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f346615f5253d181831e3614f7e3edbf867dda81b8598b7bb967400f56da38cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: OpenAIResponses: TooManyFunctions \u2014 39 functions. The bar is 30 functions; this is 9 over it, 1.30\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_responses.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a13af697858d70a9e69ff5f8febd233829c92e18dafabf56ed1b2b442b03689"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/catalog.ex: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 67 functions. The bar is 500 significant lines; this is 148 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9760db3df384e95ddec3caecddf5d8cada9e77f9de4af7143fc9fca5c07c5f85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.draw: MethodTooLong \u2014 draw runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"0449e60dd1dc41b063405fc866de3f8310aa217dbcc1e9119af786cac26059ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelPicker.draw_providers: MethodTooLong \u2014 draw_providers 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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d694f7f424c69bcfd50f10c312e772382c158d8066afcab51ed6be59c4cda7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell_execute/handler.ex: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 52 functions. The bar is 500 significant lines; this is 139 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"102587deef576f89b691ad6c12509788bb318cb1e0485afee5b88c3d6b6259a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Checkpoint: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a947c97bb8ab6c402b679bdc08ea3208292348ff4b0806e3f82bd835156b53e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ToolOrchestrator: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_orchestrator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafaec72f8c59b6c100de1cc69a6b876831b3e2823cabb8f907c692a804de44e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Dream: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/dream.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"221198195fbe47671d76b1e334318aaa64a8d3755dad1f732c7df61a1919efe5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: RepoMap: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"718fc7e58040d466112dcae02139a9ab2340200fb40c284c2fd99852655a190b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Topology: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4780faa491efe57ff5d7a152937c75d44a260b796a16e00188e0a14dabfa82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ablation/runner.ex: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 35 functions. The bar is 500 significant lines; this is 131 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":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b61b81b286e0ce1fbea9f43bbbd2509c38bd04fe9e5af8bc04fa5cd2dc8ae8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/collapse.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":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab73f4624253ffa08292e56563d54ba808b7283282b190890392078bbc8c9f71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/accounting.ex: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 55 functions. The bar is 500 significant lines; this is 128 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":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ca3231464fbba250536c3cd2ac7496993a7a30dfb027afd7ec9f9c5afada6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loop/verification_evidence.ex: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 128 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":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"749744bc97fc6cb3b4489daf7491f765a560aa2956d8f7d3fefadeb7fe94a49a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/message.rs: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 60% of them inside a single declaration: Message (2 blocks, 125-806). The bar is 500 significant lines; this is 124 over it, 1.25\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":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79872ecabf40f18597fbcd6ea1074bb11d2719b17e9ba03f925379cbc8f4cd1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChannelsPanel.draw: MethodTooLong \u2014 draw 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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a25f25514dec4b86c87f0a5e4e3d2faa30f82188f1c20d3d2f048e00c42577"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/workflow.ex: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 40 functions. The bar is 500 significant lines; this is 118 over it, 1.24\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":"lib/optimal_system_agent/agent/workflow.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca9096240ae58fcf88704e3c978d2655cc03c0efe916ade945ba3bbb1a57a03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model_picker/local.rs: FileTooLong \u2014 617 significant 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: ModelPicker (34-887). The bar is 500 significant lines; this is 117 over it, 1.23\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":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbee23a19a4f0d800b901ea7730eec839c0322f4cbc68c9906061e461c3f478"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Session: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/pty/session.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21a36971e269d083f2acc0859ca14a52a2ba52d311be78ed0981aeae3f922e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SurveyDialog.draw_inline: MethodTooLong \u2014 draw_inline runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e3a3e0e2b059e52fdb7e49da47a3d73241c0ce039ac4f4d857e8bdf972a707"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThemePicker.draw: MethodTooLong \u2014 draw runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/theme_picker.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b452597583c8fb18226a1be2aedb2b22e4fd0bb4edbe92fe05374a656dfcbada"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/handlers.ex: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"lib/optimal_system_agent/agent/hooks/handlers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e957c58dd95d88632214ae678f20bc7b038f3d065ad92760c6411a5427637de9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SurveyDialog: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 24 methods, 2 blocks, lines 262-996. The bar is 400 significant lines; this is 89 over it, 1.22\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":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"43339e55d3d5602a141ee121d414c96eaf3ae2820281425072e9640b7fbd83b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dialogs/survey.rs: FileTooLong \u2014 610 significant 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 80% of them inside a single declaration: SurveyDialog (2 blocks, 262-996). The bar is 500 significant lines; this is 110 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":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee9d61ba49e6863f9a0508946f4bc8c4929ad2587067a6d4c4724ff0207e1c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetricsDashboard.draw: MethodTooLong \u2014 draw runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/metrics_dashboard.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"de29728dea0fe307f00d5d2580e2d651595a8a53473eb9ae1b3910fc34680584"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: CopilotCli: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/copilot_cli.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3023002c6a931f9cf82350132487817f9fed31f38a53ff0eadeac1672bdb00"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Google: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/google.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c990b1822d139cb6ad22c1681619fd5984863073bc90a08139ff1a8ed44376dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_screen_capture_wayland::rfb::serve: FunctionTooLong \u2014 osa_screen_capture_wayland::rfb::serve 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":"native/linux/ScreenShare/src/rfb.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6e73160e524c281b2e0c3f747a7db7b479ea29f082173a0397e9fc4e18f426"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.can_transition_to: MethodTooLong \u2014 can_transition_to 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":"priv/rust/tui/src/app/state.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58bf39c0d4b9c1d14d5f02cb90e4f993010a2c49f83b983572b068f220640ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelPicker.draw_local_detail: MethodTooLong \u2014 draw_local_detail 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":"priv/rust/tui/src/dialogs/model_picker/local.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"851b9d077c88920787385fceaccd99101288115909b35c74f0afcfabfd712355"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Client: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/remote/client.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3dae2c0e5eb929182e0aae2898defcaddb86af9a4978b4d6df4ea5e446ddd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: CallChainAnalyzer: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/call_chain_analyzer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3717061de9356bf8f3bb44bc4f1fbfab167193aacf7526d208c1918b26d93f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeybindingsViewer.draw: MethodTooLong \u2014 draw runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/keybindings_viewer.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"465d1b2811d67608f18e9ea747540f070b61af99c804b2fb5e295b5f898e6e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: delegate/handler.ex: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 43 functions. The bar is 500 significant lines; this is 75 over it, 1.15\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":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46286481133866d02cbd608dc55527d02064c22fe72a5c2648cdd81559cea85"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BackendEvent: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods. The bar is 400 significant lines; this is 56 over it, 1.14\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":"priv/rust/tui/src/event/backend.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0b4d7ac5b5ca85ea077c015d66470e308f75cc490bb5a42531bcd0195c73bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: VerificationGate: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_gate.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f8ca3501b48ec0685e48d416e93c43c124f0fe0d14537cd2c753698aeb07d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Tier: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tier.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a2dd72cec415716b6967238b9bb88b2b907b13c87f8a4100bdaeab0ddac5f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: TurnTrace: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/turn_trace.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16687c0c0dbbbfae0d6b6c9d6d3e56beb56e26ac087a5715c4dbb02398b44c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: OpenAICodex: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/openai_codex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7e25b9496fbf7e7fcd15378ab6843bac8b745f41a1d4437b088cde153346dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Server: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b280b1fb61d09105583689405b4e87fa8841d8797ec8604e1d7b485cb862c47e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ServerSession: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/server_session.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25125f52695f84b84d9209e364883c4f397ac160e5e8e34673255cdb0b8384cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Loader: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b696e7a051d3528fce6429db0f5b2e5d8238f767e8bc0eb14d5dd3bbf8ac71a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Manager: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/manager.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea5e3b7ccef25989457dff085f9cb584b38c3e6134c2bc9d7fa9f45b7a7036e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Chat: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 50 methods, 3 blocks, lines 48-991. The bar is 400 significant lines; this is 46 over it, 1.12\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":"priv/rust/tui/src/components/chat/mod.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70e33a1ffa988a9fbfb2709e15b20657c84372f175c15c901eac8a944b98af9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: direct/container.ex: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b85bb009876a03c186dbb021fa7cb018dcf3c654868e9fc6f03eba926f88deb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Completions.draw_in: MethodTooLong \u2014 draw_in runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/completions.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdaec51279639c2e9c28a0f0dff63a490a6992a2eab5cf125402c2bd2c5b5c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: osa_tui::render::markdown::render_table: FunctionTooLong \u2014 osa_tui::render::markdown::render_table runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24ebe2936b3513d5f05a9f41be376caa663a94a97801dd1fa082c8e9f35e14e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/setup.ex: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 33 functions. 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":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0396cc0dc71df368560e439edca0873126ba61a60a50b2f8722189bc87883a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: security/surface_map.ex: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 54 functions. The bar is 500 significant lines; this is 52 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":"lib/optimal_system_agent/security/surface_map.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599711b2fe5a639637afaf72421bb35a9e23ce98806e7defd19b898d1cd684a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ModelPicker: TooManyFields \u2014 33 stored fields beside 94 methods. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ca5ab4e18927053c84e0a00eef945f796cf3919ebd70f58b7b1f236c02e69"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: StepSnapshot: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/step_snapshot.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44e0a9cb2f2980a48050dd8c7acab037b7e18584be29ed25b0de3f1078f0f90"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: SessionManager: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_manager.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"885d2e2029e2314c5eb6ee2b67fb693197f3648860c8ba75842dd2f8a4222247"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Curator: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/curator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc054a3624e27cc806d8e0e7bd4936d0d5af64bbb1b19f08db6723c168815db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Windows: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d437bb4de458ad71f6ceae6a9e5cb474b55f6e94218531c120f0675baeefe3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Parser: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/parser.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fa09e87cb905e6c33ad8d3ca01bda82c6cec451789b3e6a49079fc1c3168da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_agent_response: MethodTooLong \u2014 handle_agent_response runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe27b534b3ca1d32e6d13bb9dc350d3b7c6bef8438348053afead9f9f062fa14"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/task_queue.ex: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2608c27a9c62831d47e2bfcdc4c7647c6d1e736b5e9fd2ef663c8df13cf8759b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Guardrails: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/guardrails.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f938f37fc7208a7a4c719493f0348cfe8e213c1a7edaf35ef54ce32a78d5b3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: MessageHandler: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/message_handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"928cda0d9f0e4fd7f7f38bac31d97fcdac4e8f0b37c984b0e733f879612c9fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Workflow: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40796dafd6e9eddfb391a3372c05c7df05ccc7523b21a38c28cf88eb1206867a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Stdio: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3499c7b8d8da5a4aa8bf75235f881eb5458d7aa26b4c4b18e8df7b1b99d8944c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: WgMesh: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa20660b2f91a27abce4e53f7a27980b487fa58e626a0b4eaee6f30eae5edfe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ExploitOracle: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/exploit_oracle.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2f16fcc5eb4e659e06226502a01a3e5a8353753346a7803377a3427dfb278d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Oob: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/oob.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dff082dd50373ada28e2191cb714ca14374f3119eab5608d7a799c76a0e8bc6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Screen: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/pty/screen.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dd64618fbf85ac8e3cb6319030ff13106d1ca1abb55a390979bbd650909925"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Handler: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9b94d94211d337252883f5a8ec9c365d4659f00605989560fe24e4f5b73bee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Trust: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f065fc6b78ceae8a795154d2aa7ccb942b810fdffde72ca10b69884bd66f6a4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilePicker.draw: MethodTooLong \u2014 draw runs 106 significant 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 6 over it, 1.06\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":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"99524efec7673155f9107d4736e969a970547f4ec0adee783872b3194d968507"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RewindDialog.draw: MethodTooLong \u2014 draw runs 106 significant 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 6 over it, 1.06\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":"priv/rust/tui/src/dialogs/rewind.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28e02cb0dfb0dd6f1037fef830cde4a26c522888de1cb0acc23c4db9f8b9509"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/tracker.ex: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 33 functions. The bar is 500 significant lines; this is 28 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":"lib/optimal_system_agent/agent/tasks/tracker.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0cc0fca59d43006ce6dadbb117e72dc0b720e1348a6d942a75b26ed2975803"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/bedrock.ex: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 27 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":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b22c216ad3ad8f248a56284c9fe543e4d5e9ad74b86d2b9bab720de0b9dac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/claude_cli.ex: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 53 functions. The bar is 500 significant lines; this is 22 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f16b518a577414bbb0a2479111a5ee1920d9e9782ab6c066f1c5e4123fcb44"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeLogin: ClassTooLong \u2014 414 significant 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 84-717. The bar is 400 significant lines; this is 14 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":"priv/rust/tui/src/dialogs/claude_login.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5bad926c5c7b8c4d8305037eaef7c1e898609372d134b2b849a9c1ded4032"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Wizard: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce1135117442cf29487c5b3b893996327ee902e7bb5d0da9fee89329d3da130"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ExploitGenerator: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/exploit_generator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"790b85ad3c0b612cc6cd108bc7734c73a1bed15a1f79f584bc1a53808a3fa619"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: LoginSession: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/login_session.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c219a0c917754d31cd3f36e6c64d5e6659932a9298732746aa2dfe1d96638b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: FuzzyMatcher: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50407d4d4427118df279dd01a10317429050cbb2beb1250c7abf07feb4afc80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ThemeColors: TooManyFields \u2014 31 stored fields. 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":"priv/rust/tui/src/style/mod.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdf2504bb00d6f64f5b7030f4e37fef7e032bea7d272f50a90ab27e817a535e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/image_budget.ex: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 45 functions. The bar is 500 significant lines; this is 16 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":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f32eb046e54f056e84eee37ecca1a72b9b8a7895432d1d2995d18f80cef282"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandPalette.draw: MethodTooLong \u2014 draw 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":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b98278b1f499cb013a6df6c84b5b9404b7847b6533649fc1731ad9070f2b70c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Picker.draw: MethodTooLong \u2014 draw 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":"priv/rust/tui/src/dialogs/picker.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7822464fa2e58187e204e4ae28a7e403be2660db2a7d8d297214bb8ccfbd5a24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/mod.rs: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795a2a4c0bf2780350cb5e2e54da925656f4c0e8dff97f3fab6084c9572e643a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: McpServers.draw: MethodTooLong \u2014 draw runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/mcp_servers.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1da03fca106f5f51cc270cfc845849ca20b32daba3562c060cf63109dc3a400"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.dispatch_action: MethodTooLong \u2014 dispatch_action runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/keymap_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37dbd8e35aec35d5a203c470179d68606b3a47d0948eef1f20d2eadfa451822"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: McpApprovalDialog.draw: MethodTooLong \u2014 draw runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e7c8d812cabb74f4ffc7c0b80e4d7e5f1b5f4f64131205c0803f4bc7bafb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): priv/rust/tui/src/app/event_loop.rs:2946-3081 | priv/rust/tui/src/app/event_loop.rs:3130-3210 \u2014 These two members are variants of one another: 60 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":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"68386215390e1e8a4413d6d1b772a9206527397f182e320870f7d181d09396fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:47-148 | lib/optimal_system_agent/tools/builtins/security_intel.ex:84-239 \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":"lib/optimal_system_agent/tools/builtins/computer_use/tool.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4292cb9b6901a466d9b8a1832fa30072ff13215ce282319fc97773a490b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (25 shared lines): priv/rust/tui/src/voice/transcribe.rs:547-589 | priv/rust/tui/src/voice/transcribe.rs:611-653 \u2014 These two members are variants of one another: 25 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":"priv/rust/tui/src/voice/transcribe.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1590c820b817f351627944877905dd3530100a239329d7b92761e4c23511a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): priv/rust/tui/src/render/latex.rs:307-372 | priv/rust/tui/src/render/latex.rs:374-411 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/latex.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba44be85b61a54557ffe8e43b123249afaf889f7eba6e7c24112e9fe6400f75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/agent/safety/model_classifier.ex:169-187 | lib/optimal_system_agent/permissions/auto_classifier.ex:227-245 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7b17ab4b10c13a6115c174f09f5fc2fc4ce6f526ab713570c8db5cdb66ee31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/optimal_system_agent/tools/builtins/knowledge.ex:21-51 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:38-69 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/knowledge.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"632899d59a6a0a0f12f5eebd52adbaf1790c7183422fd09e7a6eb78f9c1f3276"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/channels_panel.rs:127-297 | priv/rust/tui/src/dialogs/context_breakdown.rs:128-322 | priv/rust/tui/src/dialogs/cost_dashboard.rs:227-308 | priv/rust/tui/src/dialogs/doctor_panel.rs:183-384 | priv/rust/tui/src/dialogs/hooks_viewer.rs:154-268 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:99-261 | priv/rust/tui/src/dialogs/mcp_approval.rs:153-284 | priv/rust/tui/src/dialogs/mcp_servers.rs:116-254 | priv/rust/tui/src/dialogs/memory_browser.rs:153-331 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:168-333 | priv/rust/tui/src/dialogs/permissions_manager.rs:195-407 | priv/rust/tui/src/dialogs/persona_picker.rs:179-384 | priv/rust/tui/src/dialogs/sandbox_picker.rs:116-318 | priv/rust/tui/src/dialogs/skills_browser.rs:251-483 | priv/rust/tui/src/dialogs/status_dashboard.rs:92-278 | priv/rust/tui/src/dialogs/tasks_panel.rs:206-391 | priv/rust/tui/src/dialogs/theme_picker.rs:96-264 | priv/rust/tui/src/dialogs/tools_browser.rs:227-429 | priv/rust/tui/src/dialogs/trust.rs:69-194 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8785dbcb545967e4a94c66e6a8f6dfd0b8b3c3ee9681f47cfe52442e085beccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (18 members, 50\u002B identical tokens): priv/rust/tui/src/components/completion_panel.rs:291-379 | priv/rust/tui/src/dialogs/channels_panel.rs:127-297 | priv/rust/tui/src/dialogs/context_breakdown.rs:128-322 | priv/rust/tui/src/dialogs/cost_dashboard.rs:227-308 | priv/rust/tui/src/dialogs/doctor_panel.rs:183-384 | priv/rust/tui/src/dialogs/hooks_viewer.rs:154-268 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:99-261 | priv/rust/tui/src/dialogs/mcp_servers.rs:116-254 | priv/rust/tui/src/dialogs/memory_browser.rs:153-331 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:168-333 | priv/rust/tui/src/dialogs/permissions_manager.rs:195-407 | priv/rust/tui/src/dialogs/persona_picker.rs:179-384 | priv/rust/tui/src/dialogs/sandbox_picker.rs:116-318 | priv/rust/tui/src/dialogs/skills_browser.rs:251-483 | priv/rust/tui/src/dialogs/status_dashboard.rs:92-278 | priv/rust/tui/src/dialogs/tasks_panel.rs:206-391 | priv/rust/tui/src/dialogs/theme_picker.rs:96-264 | priv/rust/tui/src/dialogs/tools_browser.rs:227-429 \u2014 These 18 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"882ae8d3606b7b78f9b99c926e19af146d9613e8764c4e2dba3895e4b02bd8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/channels_panel.rs:127-297 | priv/rust/tui/src/dialogs/cost_dashboard.rs:227-308 | priv/rust/tui/src/dialogs/doctor_panel.rs:183-384 | priv/rust/tui/src/dialogs/hooks_viewer.rs:154-268 | priv/rust/tui/src/dialogs/mcp_servers.rs:116-254 | priv/rust/tui/src/dialogs/memory_browser.rs:153-331 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:168-333 | priv/rust/tui/src/dialogs/onboarding.rs:1038-1120 | priv/rust/tui/src/dialogs/permissions_manager.rs:195-407 | priv/rust/tui/src/dialogs/persona_picker.rs:179-384 | priv/rust/tui/src/dialogs/reasoning.rs:149-251 | priv/rust/tui/src/dialogs/skills_browser.rs:251-483 | priv/rust/tui/src/dialogs/tasks_panel.rs:206-391 | priv/rust/tui/src/dialogs/tools_browser.rs:227-429 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18b956cdcc6614604642f48c132c6f9c9808867cc0ffe5703e7e44dc6f98eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/config_editor.rs:337-470 | priv/rust/tui/src/dialogs/file_picker.rs:233-388 | priv/rust/tui/src/dialogs/mcp_approval.rs:153-284 | priv/rust/tui/src/dialogs/model_picker.rs:1487-1552 | priv/rust/tui/src/dialogs/onboarding.rs:1038-1120 | priv/rust/tui/src/dialogs/overdrive_confirm.rs:53-126 | priv/rust/tui/src/dialogs/plan_review.rs:115-193 | priv/rust/tui/src/dialogs/quit_confirm.rs:85-159 | priv/rust/tui/src/dialogs/reasoning.rs:149-251 | priv/rust/tui/src/dialogs/rewind.rs:133-287 | priv/rust/tui/src/dialogs/sessions.rs:248-451 | priv/rust/tui/src/dialogs/trust.rs:69-194 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"06abef93231138ebb0429ea616ac41233fc2b716a0e1ef632a10225b84467219"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/channels_panel.rs:86-125 | priv/rust/tui/src/dialogs/doctor_panel.rs:128-181 | priv/rust/tui/src/dialogs/hooks_viewer.rs:113-152 | priv/rust/tui/src/dialogs/memory_browser.rs:77-140 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:127-166 | priv/rust/tui/src/dialogs/permissions_manager.rs:129-193 | priv/rust/tui/src/dialogs/persona_picker.rs:107-177 | priv/rust/tui/src/dialogs/skills_browser.rs:170-235 | priv/rust/tui/src/dialogs/tasks_panel.rs:144-183 | priv/rust/tui/src/dialogs/tools_browser.rs:160-225 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d89a61ce93cc1b4241b5404d0dd9bba1390c67b21e8cfd4172cf5e775652c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/config_editor.rs:337-470 | priv/rust/tui/src/dialogs/file_picker.rs:233-388 | priv/rust/tui/src/dialogs/model_picker.rs:1605-1810 | priv/rust/tui/src/dialogs/model_picker.rs:1952-1987 | priv/rust/tui/src/dialogs/model_picker.rs:1989-2119 | priv/rust/tui/src/dialogs/reasoning.rs:149-251 | priv/rust/tui/src/dialogs/rewind.rs:133-287 | priv/rust/tui/src/dialogs/sessions.rs:248-451 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5b22b9bece590cf770f9cfdb28f6fa18f083c997bccf341191a263ee2e593c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:82-98 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:61-77 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:53-69 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:63-79 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:40-56 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:45-61 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:71-87 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7459c31d8f4f8bd49ddc1e383fc37b80d9635266be8046cd0687dbe54878ec3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): priv/rust/tui/src/dialogs/command_palette.rs:136-304 | priv/rust/tui/src/dialogs/file_picker.rs:233-388 | priv/rust/tui/src/dialogs/model_picker.rs:1487-1552 | priv/rust/tui/src/dialogs/picker.rs:144-302 | priv/rust/tui/src/dialogs/reasoning.rs:149-251 | priv/rust/tui/src/dialogs/rewind.rs:133-287 \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":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"45abab688e1ff3a5dd549dfa1588ae88c693700a8c4add92b791f6d37d9d094e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): canopy/backend/lib/canopy_web/controllers/goal_controller.ex:29-39 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:23-33 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:42-52 | canopy/backend/lib/canopy_web/controllers/template_controller.ex:20-31 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:26-36 \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":"canopy/backend/lib/canopy_web/controllers/goal_controller.ex"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"202d82bb59e7a0f2750bc61b3264c3bfc734067c2a46bb5b37dd483ef4599913"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/optimal_system_agent/auth/providers/copilot.ex:313-328 | lib/optimal_system_agent/auth/providers/minimax.ex:338-352 | lib/optimal_system_agent/auth/providers/openai_codex.ex:463-478 | lib/optimal_system_agent/auth/providers/qwen.ex:295-310 | lib/optimal_system_agent/auth/providers/xai.ex:238-254 \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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86df9eed8d7d0f131b327eadb568664cfd4087a1427f6914e43fca20623196e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/optimal_system_agent/tools/builtins/file_read.ex:35-49 | lib/optimal_system_agent/tools/builtins/find_skill.ex:46-64 | lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex:46-77 | lib/optimal_system_agent/tools/builtins/send_user_file/tool.ex:39-56 | lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:61-123 \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":"lib/optimal_system_agent/tools/builtins/file_read.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e574c410ce4ff433897e4581d73e9fca0f9c7fd20e83fba3f4dbe20203b4052"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/optimal_system_agent/agent/tasks/workflow.ex:228-252 | lib/optimal_system_agent/agent/tasks/workflow.ex:483-512 | lib/optimal_system_agent/agent/workflow.ex:359-383 | lib/optimal_system_agent/agent/workflow.ex:591-624 \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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b6baafa3fb60500e559dfc28e1a09f8a7e123cf997eda964586a6070da98cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): priv/rust/tui/src/app/commands.rs:931-951 | priv/rust/tui/src/app/commands.rs:953-973 | priv/rust/tui/src/app/commands.rs:1005-1040 | priv/rust/tui/src/app/commands.rs:1090-1110 \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":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"061392f7c2e1375e01778375e17275614e00ef77da1ceb7b1b7b0cf4cae921d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): priv/rust/tui/src/client/http.rs:1383-1392 | priv/rust/tui/src/client/http.rs:1472-1488 | priv/rust/tui/src/client/http.rs:1491-1504 | priv/rust/tui/src/client/http.rs:1507-1520 \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":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6eaa6aa9466d1a18617fd8a832e17fed376a0e7d5d0e8531ca0e2650d24c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): priv/rust/tui/src/app/update.rs:671-708 | priv/rust/tui/src/app/update.rs:737-787 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"595736d14c9ea053871b0a2010ff1213541533e84c179cc1bbc0f8da0bff1d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): priv/rust/tui/src/tools/search.rs:46-93 | priv/rust/tui/src/tools/search.rs:107-156 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/search.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb83204de14462e17a631f7406664f694d8880892528ab40cac8799f465be74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): priv/rust/tui/src/app/handle_actions.rs:1537-1592 | priv/rust/tui/src/app/handle_actions.rs:3726-3765 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd65f967989efda964514c9760f10a3e0ffb9e3e41c310f5ae5a6767ad70e41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): priv/rust/tui/src/voice/transcribe.rs:157-219 | priv/rust/tui/src/voice/transcribe.rs:288-341 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/voice/transcribe.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0145057c7ae3f7cbaf464908604effaf01e6b57c4799432b38d806a1026b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 40\u002B corresponding lines): priv/rust/tui/src/style/themes.rs:18-58 | priv/rust/tui/src/style/themes.rs:60-99 | priv/rust/tui/src/style/themes.rs:101-140 | priv/rust/tui/src/style/themes.rs:142-181 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/style/themes.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b4f93e8b5ac650594af9ddced4699f5563e8a64db5aac3d9c81206d825466a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/providers/openai_compat.ex:2353-2377 | lib/optimal_system_agent/providers/retry_classifier.ex:483-503 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dad6ded796730433fa2c2a19587885c721577dfe0caf7d458baa46c22eb6823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:254-282 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:311-340 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:344-369 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:373-402 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea0e006bd62ca58c12a5e4beb0c2bf5f6d4429d3a58d892cb6bacedc1337efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): canopy/backend/lib/canopy_web/controllers/activity_controller.ex:9-30 | canopy/backend/lib/canopy_web/controllers/audit_controller.ex:9-47 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/activity_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a35f3bc803b29d265b317dc91bcc1ad0fd20f5a6f687080577aa565f7146b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): canopy/backend/lib/canopy/adapters/bash.ex:30-76 | canopy/backend/lib/canopy/adapters/codex.ex:30-77 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/adapters/bash.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c0539d89536bebe7314a3f631be6387959ba0ba3ebafd241a30c89930fa8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): priv/rust/tui/src/dialogs/command_palette.rs:81-133 | priv/rust/tui/src/dialogs/picker.rs:85-141 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f916a8964695590b2a4ec0eab814054e034643741046852595316e2e5b8946ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:400-463 | lib/optimal_system_agent/agent/tasks/queue.ex:69-103 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"367bde4b0c84fdf110f232c810d52877612497c744a803249db847589a4f0587"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:41-105 | lib/optimal_system_agent/tools/builtins/fleet/tool.ex:61-135 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_transform/tool.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d72a93315700337e2aa95c907902c5a71cb966e5a27e079c7022f02b6fd4351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:782-818 | lib/optimal_system_agent/agent/tasks/queue.ex:396-425 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb57777fc6181ab45fe995b3d289ad850f2a90a904ea62f377a55654971d5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): canopy/backend/lib/canopy/work.ex:11-23 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:9-45 \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":"canopy/backend/lib/canopy/work.ex"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c17912893171c2c0d5988998b14141096131c4b3a3f8396c8a24845cc05e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 45\u002B corresponding lines): lib/optimal_system_agent/agent/compactor.ex:1792-1836 | lib/optimal_system_agent/agent/compactor.ex:1883-1952 | lib/optimal_system_agent/agent/compactor.ex:2187-2235 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daa7e4c66a5b41b3fb569f2b5c17542e2122224cadef39f3a28281a86e84e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): priv/rust/tui/src/app/handle_actions.rs:1298-1342 | priv/rust/tui/src/app/handle_dialogs.rs:1353-1390 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4887483ee7be5aa7b5dff0414ffe0443b56b9490d6736ada9cfca9071ad8e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): priv/rust/tui/src/client/http.rs:166-193 | priv/rust/tui/src/client/http.rs:196-226 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"254134ffcfad4ce0f7c2dc2004fc6b3c22712406984ab69753239ca9f0d43bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/tools/builtins/codebase_explore.ex:224-237 | lib/optimal_system_agent/tools/registry/search.ex:167-182 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00e3dd3ebc89d9c6888ab3866739f37e3d5286027c64045cdb84253316ec721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/optimal_system_agent/healing/orchestrator.ex:309-342 | lib/optimal_system_agent/healing/orchestrator.ex:346-387 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/healing/orchestrator.ex"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"02004b21d71bd2503791925ce32bd925b0f82f94ef620c7102f1d72060eaa5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:506-540 | lib/optimal_system_agent/agent/tasks/queue.ex:299-331 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac23bea8991dc354772481725b25d4a6f2f41322a6a1b04018179a763062dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): canopy/backend/lib/canopy/budget_enforcer.ex:154-200 | canopy/backend/lib/canopy/budget_enforcer.ex:204-247 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/budget_enforcer.ex"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb3270ca5127907f1f3e73a00804879ddff02bb3174343b1af9343186280c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/optimal_system_agent/telemetry/metrics.ex:127-152 | lib/optimal_system_agent/telemetry/metrics.ex:157-182 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/telemetry/metrics.ex"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8132bdea61a863760ed9a5622a6f6f874ac4627d21e0ce7a839717c4ea7b679"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:286-307 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:406-427 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"601f522cefcc7db86ae57a136c915bd004021fc5091f4af9b42c99db3c4c89c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lib/optimal_system_agent/agent/loop/react_loop.ex:4303-4344 | lib/optimal_system_agent/agent/loop/react_loop.ex:4353-4400 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":4303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1908b7b6a3ff27f876bcdb01523e499b9ab67ebc68d7a5a31cc1b5caaf5f103"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:142-170 | lib/optimal_system_agent/agent/workflow.ex:277-318 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4424b1c1a3baf06052172e6c445ed398e0e602c63e4bded597b49d89f0fe7386"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:289-309 | lib/optimal_system_agent/agent/workflow.ex:135-158 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"630af0783dd2ab55185c939ca91eb49349f27cb74b9329cf9d0bc47a5455eb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): priv/rust/tui/src/components/chat/mod.rs:607-642 | priv/rust/tui/src/components/chat/mod.rs:646-671 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/mod.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cc7a3333a59523d10bb6bc8790fd9a318309431b15f2303d5ef988fc7e23ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/optimal_system_agent/providers/fallback_chain.ex:335-361 | lib/optimal_system_agent/providers/fallback_chain.ex:411-445 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/fallback_chain.ex"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4abd6442b8a177c9964045673ef0c196f5c800d036551adee3c84df8d09066a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:226-259 | lib/optimal_system_agent/agent/task_tracker.ex:264-297 | lib/optimal_system_agent/agent/task_tracker.ex:302-336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15775666bf097f46840705e5bef1b6a2b7b6c512b3c56fe90a2ceddce7dc204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lib/optimal_system_agent/channels/cli/session.ex:298-335 | lib/optimal_system_agent/channels/cli/session.ex:453-490 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ae370efe602dc52b6fbc414863b3e36d4309aa7257ca3faae8e045bb72478d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:245-304 | lib/optimal_system_agent/agent/tasks/queue.ex:143-193 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5557cf42c62f14a26925ef6cbd2f7bdc192f8b8832c86d70e242b509202fd126"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): lib/optimal_system_agent/auth/providers/copilot.ex:409-467 | lib/optimal_system_agent/auth/providers/qwen.ex:386-431 | lib/optimal_system_agent/auth/providers/xai.ex:313-353 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"425cb5173a622efd2d489f7f5e377dbfd1eb7d4b100af8a7dd657fb6cd38f13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): priv/rust/tui/src/components/input/mod.rs:1557-1581 | priv/rust/tui/src/components/input/mod.rs:1584-1607 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc2d58dc59ba413e1dadfe13ba8ab931f88b219050341b0cd73ec38e845ad18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lib/optimal_system_agent/providers/cohere.ex:60-108 | lib/optimal_system_agent/providers/google.ex:152-189 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cohere.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"07914d8733bb6af4306d6154c4d0fda1ca3bdefe4683281130aa2ae2169f99bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): priv/rust/tui/src/dialogs/sandbox_picker.rs:87-114 | priv/rust/tui/src/dialogs/theme_picker.rs:72-94 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4db34e4892cc2dfed71a44255f737e46c63b502ec00825fb0c3560b2fd6be9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/optimal_system_agent/agent/tasks/tracker.ex:47-81 | lib/optimal_system_agent/agent/tasks/tracker.ex:87-118 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/tracker.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"549d169d859170ec67e56b42e3cb93a3e0f71c767c20b1d022e59d4169e6aa6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): priv/rust/tui/src/dialogs/command_palette.rs:308-331 | priv/rust/tui/src/dialogs/picker.rs:306-330 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"63af048bcd788bf0ba92d327e4c14c08bbcffcf8fb4cbe7403c506a5e882aa41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/optimal_system_agent/agent/loop/goal_tracker.ex:912-944 | lib/optimal_system_agent/agent/loop/goal_tracker.ex:970-1002 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"669b8afa565068df1af18183c5552c247beb349fb0e44da489e282bc18611ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:143-151 | lib/optimal_system_agent/agent/tasks/tracker.ex:517-525 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d005deb8aeadd329651da4420c6ea33a2bdf98c946d9cab4ed6b9ac35071158e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:115-136 | lib/optimal_system_agent/agent/workflow.ex:242-272 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9314462d68d2f6522ce25ebdea676b7ba263301093345283342730e407c745b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:668-713 | lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:730-772 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abc1403bf8fb6193b2734be11f2cbcb06755d78f4ed9ace63894214f461420f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): priv/rust/tui/src/dialogs/model_picker.rs:2547-2568 | priv/rust/tui/src/dialogs/onboarding.rs:608-631 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cd3b828f53f98dbe413b92232377ec19b1785dae01247ff7e05e290ef05bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/optimal_system_agent/agent/scheduler.ex:319-336 | lib/optimal_system_agent/agent/scheduler.ex:401-420 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3936806e63e12201d33d5d239018a5bf96a570e1b5bca4aafab0929ea988331"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): priv/rust/tui/src/app/commands.rs:1128-1148 | priv/rust/tui/src/app/commands.rs:1157-1173 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"181b61317109d7c87711ca6075cf15ba481420d75ecf729b8404ad8ff3853f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): lib/optimal_system_agent/providers/openai_compat_provider.ex:370-411 | lib/optimal_system_agent/providers/openai_compat_provider.ex:416-455 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat_provider.ex"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1211438b22eb9dde4f0ee9010f13a80dd8b49770d16383b4d42c623cde8356c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:169-201 | lib/optimal_system_agent/agent/task_queue.ex:364-395 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"588ad2759a595d207c28580b262cddb36dfb2cfce9199ea82c0b76dc41fc4aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:618-631 | lib/optimal_system_agent/agent/tasks/tracker.ex:534-548 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fb496aaf358433660b56568588b386a90561f74fae8a9b609cad47c2f6fb14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): priv/rust/tui/src/components/completion_panel.rs:264-286 | priv/rust/tui/src/dialogs/cost_dashboard.rs:204-225 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:76-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a3125fe55c67fd4170a4e6e21d1aa704e8ae553c36ea43495d9dda710514bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): canopy/backend/lib/canopy_web/controllers/memory_controller.ex:9-26 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:9-26 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/memory_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1a2557f1edabc3646a7151d9a50ee2eaa4715c0c54680c3292b7e7a9dcf9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:152-191 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:181-219 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"262ae4ffa1159ec9ddef1e85844738871a1a4dce079a3bae9d0d8a7ac12f14de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): lib/optimal_system_agent/providers/tool_call_parsers.ex:111-127 | lib/optimal_system_agent/providers/tool_call_parsers.ex:183-207 | lib/optimal_system_agent/providers/tool_call_parsers.ex:214-232 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"121b2e2b131ed9883df19daf5fcb7eac6ef001ae5c45e6279d3d93ae0d8e32fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/remote/client.ex:358-377 | lib/optimal_system_agent/remote/client.ex:389-404 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/remote/client.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e83a9e5c7f44600785946b74d2160d04bec93b9d531bbfe3839020483fca72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/agent/scheduler/persistence.ex:22-43 | lib/optimal_system_agent/agent/scheduler/persistence.ex:53-83 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/persistence.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e5f3381ced673b93e051619e051379aaf2094bcab1b38c8fc4be1e7094b253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): priv/rust/tui/src/app/event_loop.rs:1783-1808 | priv/rust/tui/src/app/event_loop.rs:1813-1837 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"047a55e5ced38b14419de21b0e27de1749262e2116071d17e31ab11dc63eb326"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/auth/device_flow.ex:333-367 | lib/optimal_system_agent/auth/providers/minimax.ex:552-573 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/device_flow.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd336de3c2ea59f9946d18f4a3072bc344c374fab8b28f96289c6cc075242dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/container.ex:742-763 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:775-802 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8958462047cdda644f798dda7f02a4ba32d61af3b1a7d84b3d07f09e2bfeb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): canopy/backend/lib/canopy_web/controllers/activity_controller.ex:47-69 | canopy/backend/lib/canopy_web/controllers/log_controller.ex:21-51 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/activity_controller.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"acefcb08769c05eda8bef552a6b0cae6baeca58969ca764646baf49f4dd73b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): priv/rust/tui/src/app/commands.rs:975-1002 | priv/rust/tui/src/app/handle_dialogs.rs:362-379 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9a1a1cc8921e80b541337f410bf827d239bd7700b90de130d37332c59b86d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex:82-105 | lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex:116-135 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e210fc9b874acce33a59615fe403851fe386bd4fb46925717361793b94643a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): lib/optimal_system_agent/channels/dingtalk.ex:145-154 | lib/optimal_system_agent/channels/feishu.ex:170-187 | lib/optimal_system_agent/channels/wecom.ex:132-142 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8395bd6dfb9c293ddeda545de7d4f9662bc62feb72da660f87b266bb738a0d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/optimal_system_agent/onboarding.ex:1287-1312 | lib/optimal_system_agent/onboarding.ex:3061-3092 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fc6626896ebc05de870ff0c9d4b1dd856715972513fac45a22ff86a7e3214a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/tools/registry.ex:369-390 | lib/optimal_system_agent/tools/registry.ex:489-508 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bea3422437d0bd5e711ead74c525837395d4c052c3f08e2aee56ae4a4e450a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/optimal_system_agent/agent/loop/verification_evidence.ex:224-247 | lib/optimal_system_agent/agent/loop/verification_evidence.ex:309-327 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"47579ecc53fe4ab798ba17c63d36c5bd4fb7848da8b546730f7bdfebb2342ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/fs.ex:103-126 | lib/optimal_system_agent/open_computers/executor/direct/fs.ex:134-164 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada8927c56fa75aeea268bf7ba79b3c8ef4b520b31659ca6c754c237dec256eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): canopy/backend/lib/canopy/costs.ex:73-95 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:102-127 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e6a71aca98cb94f15ae5cf25854ef858bdbf67bbc470caba37564edaec3597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/agent/compactor.ex:2002-2024 | lib/optimal_system_agent/agent/loop/proactive_compaction.ex:901-921 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b3484fc454ec17bd7a2b75a0f177f89ac6f8c71804ce892006f40f1c3d5b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): priv/rust/tui/src/client/http.rs:1231-1251 | priv/rust/tui/src/client/http.rs:1263-1289 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2998c4c55969ddc9533766dd1721997befd88283ef7110d178488dd1dd9ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:48-76 | lib/optimal_system_agent/agent/workflow.ex:178-208 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1544327772e400cc7211df8072bb04f678d697c0fc95d3c8e90b29665eba6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/optimal_system_agent/cli/opencomputers.ex:566-583 | lib/optimal_system_agent/open_computers/config.ex:108-125 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd9713e72dd268ba262303d2be8b6da953dbc6f60037fc65935780d8440ff5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/optimal_system_agent/decisions/graph.ex:232-257 | lib/optimal_system_agent/decisions/graph.ex:270-295 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2787c4c6dd78bc2fab93ea5013dce7dd08ebd1ce2198c97207d04d9c491360be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:1271-1302 | lib/optimal_system_agent/providers/anthropic.ex:1761-1799 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ba30febb18ae33aed9894c434983602487c9fdc7e30308c8ec4912dcde17c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/optimal_system_agent/tools/builtins/file_read.ex:116-138 | lib/optimal_system_agent/tools/builtins/file_read/handler.ex:785-811 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed8364a9f6fac3bb4669784ab02f25300857747b7300e9c1822fd3d5e29303f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): priv/rust/tui/src/components/input/mod.rs:1451-1472 | priv/rust/tui/src/components/input/mod.rs:1475-1496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0206a1a8c632810b83dc076f4e73b561fa62810f3ba04384cba85d751fae395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:367-399 | lib/optimal_system_agent/agent/tasks/tracker.ex:378-405 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"367b7f68ac3d170d4c42570c7ca17b7e42e52551d52542b50804f153334efb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/optimal_system_agent/channels/http/api/agent_routes.ex:102-136 | lib/optimal_system_agent/channels/http/api/command_center_routes.ex:495-523 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_routes.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c6d432d9a0a99d181c1bedf0cabfa09697ca507fee469df9d74d0f4136c8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/optimal_system_agent/onboarding.ex:1455-1494 | lib/optimal_system_agent/onboarding.ex:1766-1796 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5353a5af649b45d58140e7d36a713142a4b707de826ad0ae1901e388e4d7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/optimal_system_agent/agent/tasks/tracker.ex:166-194 | lib/optimal_system_agent/agent/tasks/tracker.ex:236-258 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/tracker.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6502f32a85f0a456118313b840f9316bbc41ccc50698d6ad7616e6c87a62404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/app/handle_dialogs.rs:551-564 | priv/rust/tui/src/app/handle_dialogs.rs:738-749 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"27152ac81296af52ee7b3cb6e57b92f3d89ee15f87df856ca7ebf15523bfdc63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/cli/opencomputers.ex:462-483 | lib/optimal_system_agent/cli/opencomputers.ex:487-513 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44d4d3cf8ca8fb230b3a3f3c669ea5f0a68abc590c1a289ee6341ee4e776a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/monitor/tool.ex:36-80 | lib/optimal_system_agent/tools/builtins/notebook_edit/tool.ex:51-84 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:32-65 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/monitor/tool.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9977b25d3b684578d56ca8ea93dea6ddb327bd1497fcb7d3efde6fcaac054cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lib/optimal_system_agent/tools/builtins/github.ex:28-69 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:54-95 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4a73e409b8d80ce31bf1c584e5fd178c52b842648f51a31a7a75201102a91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/workspace/topology.ex:555-573 | lib/optimal_system_agent/workspace/topology.ex:597-610 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d7082124ff76a0a5dd08dfc3a963250f2f747d331bd8818a8337e637ac6aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/agent/loop/goal_verifier.ex:784-804 | lib/optimal_system_agent/agent/loop/spot_check_auditor.ex:413-434 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2bf6fc9dcaa4b2bd9d195bc4257683385ede0395759bbb4e0fd16321d48a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/optimal_system_agent/agent/loop/tool_executor.ex:1241-1280 | lib/optimal_system_agent/permissions/ask_flow.ex:149-184 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15c6dd04be8ad48916c9167859ad6debbf12c46e85bdf9a420b480e6fecb6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:635-647 | lib/optimal_system_agent/agent/tasks/tracker.ex:553-566 \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":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"c941353dedbecbebb124bad2600dcaa82e552c79d1c02430b8e30bfcac8e1432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/optimal_system_agent/fs_checkpoint/server.ex:515-541 | lib/optimal_system_agent/fs_checkpoint/server.ex:580-616 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebd140cd0f543fca597aafa2d6260cf24f088c453709a78f11b935ed029e356"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/open_computers/remote/client.ex:129-149 | lib/optimal_system_agent/open_computers/session.ex:345-361 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/remote/client.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2788834e2f3178dfc9c7ae7b056d15d85c8c1084582f2c458a4dd5859b0e9624"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/security/shadow_graph.ex:359-371 | lib/optimal_system_agent/security/shadow_graph.ex:375-387 \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":"lib/optimal_system_agent/security/shadow_graph.ex"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"54218a2dd59fde1924713f0ad7b5a28319b9decadfd33818addcd8af26d94333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): canopy/backend/lib/canopy/costs.ex:23-38 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:43-61 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f888cd3475b494b431d32db5fc4705cba9e0b06a722b16cc357ccfa205cc1ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:166-190 | lib/optimal_system_agent/agent/task_tracker.ex:195-221 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2252449ab19b505107c62a6728c7af93b8160e4caf6cba52389a712071e91ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:460-475 | lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:505-525 | lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:548-574 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"956245614615329223af8a0cbc701c96d8af36c6d8fd0526231cb249fc457e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/optimal_system_agent/agent/background_notifier.ex:290-311 | lib/optimal_system_agent/agent/background_notifier.ex:321-338 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/background_notifier.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"026c149ed77a0f32ed0d472495eb6cc9c70dbe61a5ba8b111596c4ed2381cc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/optimal_system_agent/channels/discord.ex:82-112 | lib/optimal_system_agent/channels/telegram.ex:89-117 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/discord.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f9e9f82642093f7cd84fbff266e0978ee614e2427bf206a2e8d186bc549ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/channels/http/auth.ex:43-58 | lib/optimal_system_agent/channels/http/auth.ex:63-78 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/auth.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d696fcbed12c31c180098002c9d6c7a835516156d11e33437169cbabb316d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/optimal_system_agent/security/surface_map.ex:244-257 | lib/optimal_system_agent/security/surface_map.ex:351-369 | lib/optimal_system_agent/security/surface_map.ex:498-511 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/surface_map.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3662ae7dab8e24314794cad9903383eb18f903a19bfe1eab58ca1ec45a720abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/agent/workflow.ex:323-336 | lib/optimal_system_agent/agent/workflow.ex:341-354 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/workflow.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"db02a8b1cfaeebedf1916117bb818cc5e3f5afc31fc4cd99bf2afc2e8269738a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/budget/treasury.ex:103-125 | lib/optimal_system_agent/budget/treasury.ex:151-172 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/budget/treasury.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbc95017db3760a5c070fb45096c01873be2a07357d2d35238dee86de80150b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): lib/optimal_system_agent/peer/negotiation.ex:180-219 | lib/optimal_system_agent/peer/negotiation.ex:233-265 | lib/optimal_system_agent/peer/negotiation.ex:276-302 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/peer/negotiation.ex"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"79859df1a18bc6c36c56f62a4bec5da47981f884271351810d2e44a8cad9fdbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): canopy/backend/lib/canopy_web/controllers/alert_controller.ex:9-17 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:9-25 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/alert_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc28c88986b6aba08078fb8635e6bd7de7403a089e6067f67169fda2f93213eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/agent/scheduler/persistence.ex:96-110 | lib/optimal_system_agent/agent/scheduler/persistence.ex:121-132 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/persistence.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"671584268ece8d4d494d06436df9f2c21d075174890b576f95160b81c31e5667"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:746-776 | lib/optimal_system_agent/agent/tasks/queue.ex:361-392 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac11465b4eec2b3f6425069c51f873a3386e5a066a04aaf776a34d54157f06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): priv/rust/tui/src/components/chat/message.rs:826-845 | priv/rust/tui/src/render/markdown.rs:623-643 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c3167c3bce65285431216c48ef993c0968bdb0a52046f24f70300073cbc768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 16\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:19-34 | canopy/backend/lib/canopy_web/controllers/alert_controller.ex:28-43 | canopy/backend/lib/canopy_web/controllers/gateway_controller.ex:14-29 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:49-64 | canopy/backend/lib/canopy_web/controllers/memory_controller.ex:37-52 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:91-106 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:26-41 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebe96134193d299fb988d5d7af72ea32191581da3bac08e8eb623822f5e34a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/optimal_system_agent/agent/worktree.ex:165-194 | lib/optimal_system_agent/tools/builtins/exit_worktree/handler.ex:119-154 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70c30f84e014d9d330e1ecfa1bd9cfc5a720bfbd061496ff25fb6ca3764f807"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): priv/rust/tui/src/app/handle_actions.rs:190-205 | priv/rust/tui/src/app/handle_actions.rs:209-226 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97b194b938d5382899490ba85d0d20a13399362b72cf6fe6476c15e1846bae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): priv/rust/tui/src/app/handle_dialogs.rs:567-578 | priv/rust/tui/src/app/handle_dialogs.rs:611-623 | priv/rust/tui/src/app/handle_dialogs.rs:628-639 | priv/rust/tui/src/app/handle_dialogs.rs:654-665 | priv/rust/tui/src/app/handle_dialogs.rs:723-734 | priv/rust/tui/src/app/handle_dialogs.rs:755-768 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e29654f6481c737a4398555452759c54e2f49aaea0aa13d51fbf498c0839cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/mix/tasks/osa.setup.wizard.ex:293-324 | lib/optimal_system_agent/cli/setup.ex:322-347 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c627ca983074448d829c9be89f5940d5d0f8de84b68c83fd2dba857684060036"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/scheduler.ex:285-300 | lib/optimal_system_agent/agent/scheduler.ex:368-382 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2ae3698edbbc91617dc86ab7f58ba787c7a587b0577c588a7f5d70fb46d0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:849-857 | lib/optimal_system_agent/channels/cli/commands.ex:956-964 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eb2798968b76a516c064b5f980236dbe7c1728e6b348823488117b22410989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): priv/rust/tui/src/components/input/mod.rs:1007-1026 | priv/rust/tui/src/components/input/mod.rs:1028-1045 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"0513e8cb7d6ea259d4150d597f277d0da26b2823676b66271adb928f00944324"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/document_controller.ex:41-61 | canopy/backend/lib/canopy_web/controllers/document_controller.ex:65-79 | canopy/backend/lib/canopy_web/controllers/document_controller.ex:101-117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/document_controller.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9b209f41d4a5865613b2dc0af4384a3f983354ad7cdb236ad97a32cbded7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/optimal_system_agent/tools/ablation/runner.ex:757-781 | lib/optimal_system_agent/tools/ablation/runner.ex:858-889 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2fa7d0bdea8d6149298f794198ed3ca4a71e6bf2b76fc02818e76233edec3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:202-217 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:230-241 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6fedb3105aa97ebf8ab3da9c9977c1013431b56b0a67b3fa2473980b9c00bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:52-69 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:49-65 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd8c4e0131c425c440dbad5e78a8ef184335ab3237b08912cf36f99c538d87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/open_computers/remote/client.ex:70-81 | lib/optimal_system_agent/remote/client.ex:336-347 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/remote/client.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"199ae9e8384cd2d445f62852aac8cdb4bd6e71ba13ab7e24389121bc9ca327ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:211-240 | lib/optimal_system_agent/providers/openai_compat.ex:399-420 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"943aabeef9922165aced42e8e232ce62bc02459e0c2f0e2283a11ede959ae4dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): lib/optimal_system_agent/tools/ablation/runner.ex:288-313 | lib/optimal_system_agent/tools/ablation/runner.ex:475-496 | lib/optimal_system_agent/tools/ablation/runner.ex:503-527 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3009e23fdcd0262f264d6336e0a61ca21fd1496c9da39509ef65c38f57ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/tools/pipeline.ex:56-71 | lib/optimal_system_agent/tools/pipeline.ex:80-93 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/pipeline.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db3a4096b8e6d611687ac4fa1265f6b9e00f036b0658c2a283e9da1399511f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/app/commands.rs:1175-1187 | priv/rust/tui/src/app/handle_actions.rs:1387-1398 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e503d61dd997f32e7d43179f1615a79401c7ceede936573af44103a452df6617"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:1753-1766 | lib/optimal_system_agent/channels/cli/commands.ex:1883-1913 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0cd6a9abeb4b1e76a64932f31168547c1021fdbf1f1bd8bec8c098cd36b1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): lib/optimal_system_agent/channels/discord.ex:200-214 | lib/optimal_system_agent/channels/slack.ex:218-232 | lib/optimal_system_agent/channels/telegram.ex:250-267 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/discord.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d542f69f25b065bff7ff80b49fe02c948fcf35e4d0e7d25f14ee84f783b9f3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/conversations/server.ex:246-260 | lib/optimal_system_agent/conversations/strategies/facilitator.ex:94-115 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/server.ex"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d95be3d3a8f60034868d5b5c5238b14fc301b85d2d5603b75a83aa829ced8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/tools/builtins/file_grep/handler.ex:303-316 | lib/optimal_system_agent/tools/builtins/tool_search/handler.ex:230-247 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ce324afa72454975a53a29907daed024ad002e478059bb4b8845b6e5d9837e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): priv/rust/tui/src/tools/diagnostics.rs:170-182 | priv/rust/tui/src/tools/todos.rs:175-197 \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":"priv/rust/tui/src/tools/diagnostics.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b6c19af8a1ec849f3dd7f1e64950eedd87ba70adbe39b4258c2de10d471f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:125-142 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:102-121 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e4dc764ed1083d76802504be46c4c4b618a71759cef105b4859bbed15d6edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:176-189 | lib/optimal_system_agent/agent/tasks/workflow.ex:195-208 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5015ff7855cdc62a222b7f3927fb3fca1e6b5ea2168d4dd32abb16dabf67fb16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/auth/providers/qwen.ex:164-182 | lib/optimal_system_agent/auth/providers/xai.ex:153-164 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d04652601155cf49340231187c471f9aa5a76fae23ffc3850076d1267e7f556"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/app/handle_actions.rs:1676-1687 | priv/rust/tui/src/app/handle_actions.rs:1691-1702 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e79a39e8c1202af70f4f601f58417457a3c1c074e9f3657190d6909a680188c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): priv/rust/tui/src/components/agents/mod.rs:1358-1371 | priv/rust/tui/src/components/agents/mod.rs:1389-1401 | priv/rust/tui/src/components/agents/mod.rs:1413-1426 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"258b0254f6969a0d6a3d7ffb7ef8727b146c080b0b5a5ac79985b84e2fa34770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): canopy/backend/lib/canopy_web/controllers/goal_controller.ex:43-57 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:54-67 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/goal_controller.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05dba945b6dac0342e7c05aa4f3307a5e2b0ae90346d3d20837e7483b020dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/agent/persisted_result.ex:96-120 | lib/optimal_system_agent/store/skill_library.ex:130-149 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/persisted_result.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"423c761f3e87b2767dbc3fe98bd9c92e4187731ed1bff682ac8ce3cf1fcdbdc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:258-272 | lib/optimal_system_agent/agent/workflow.ex:388-405 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df4b1cfb13754276fcce213bbb4d58d5c7709b35c7481d59de793c3691f94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): canopy/backend/lib/canopy/costs.ex:57-69 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:83-98 \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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fe20158abc037c7c3c41ed67d948a20ef21ebe196548695d70a964498b2d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/compose.ex:541-544 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:668-671 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/compose.ex"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd2c639580469befa3fa787831978d3af3737cbb1111ae01ba041a6d186f23b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/providers/image_budget.ex:450-462 | lib/optimal_system_agent/providers/image_budget.ex:889-904 \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":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cb9911b7064d47c10fb6fc2c5a94d46562a4ca273d948d527e6ab233dba173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): lib/optimal_system_agent/security/js_secrets.ex:315-343 | lib/optimal_system_agent/security/symbol_resolver.ex:267-296 | lib/optimal_system_agent/security/variant_analysis.ex:120-147 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/js_secrets.ex"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"8135d85c0c5f1e6f885778ca311ebb7d253026612aa32d90fa3acc371ab7fada"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/settings.ex:600-619 | lib/optimal_system_agent/system/json_store.ex:56-71 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01a70ba851193a0f623f84bc8811beaa8ae46adfcecb35621d3001b1cb90cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/shell/background_task.ex:378-398 | lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:993-1008 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_task.ex"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e64a9c87c95ffd5a93bd305685ee23cec8979ec57552479fc4ace6f00fd4c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): priv/rust/tui/src/dialogs/claude_login.rs:297-316 | priv/rust/tui/src/dialogs/claude_login.rs:318-339 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/claude_login.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fa4f4ead06f58fdc3462a08a72508c15d12aba1cb46fb41b5de0362756a60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/optimal_system_agent/remote/client.ex:206-214 | lib/optimal_system_agent/remote/client.ex:218-232 | lib/optimal_system_agent/remote/client.ex:245-257 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/remote/client.ex"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dee0860ef9c39d4411f5eca3a1903c22f8257ac70fa254775d59045b2567cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/budget.ex:326-340 | lib/optimal_system_agent/budget/budget.ex:267-298 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/budget.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d7d455fa2837c3e902a473f6a0a8ce2c8a3db8711ec2b41c558294a9ccf1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:341-362 | lib/optimal_system_agent/agent/task_tracker.ex:404-425 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e38e49d53ecf26414acd5e034f4c72511edab172142e0f9cde4dc429051fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/app/commands.rs:1115-1126 | priv/rust/tui/src/app/handle_actions.rs:1953-1972 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a5066d547b4d35d0584bc3c7c2c12ad7d157bb6769646490b1724a11222d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/agent/scheduler.ex:305-314 | lib/optimal_system_agent/agent/scheduler.ex:387-396 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"567ed6d55dda58a813bc17afba50d2e0ebdf4aca6d2d92e22a7eb0a3039ee19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/conversations/weaver.ex:40-55 | lib/optimal_system_agent/conversations/weaver.ex:69-76 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/weaver.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"16df882143930eda53e162cb01ed7fdbde86d144a197ac02b694644717f4a5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/store/session_transcript.ex:73-92 | lib/optimal_system_agent/store/session_transcript.ex:101-121 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ce29555e456aecb277d1c06b32958f763480e99de0ba537e70bf8e023d50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/tools/ablation/runner.ex:897-916 | lib/optimal_system_agent/tools/ablation/runner.ex:923-947 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657d6df4fabe3651fcf2849cd33b6ecd918255f912f53bbba533b25bf4adc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): priv/rust/tui/src/app/handle_actions.rs:1437-1447 | priv/rust/tui/src/app/handle_actions.rs:1484-1494 | priv/rust/tui/src/app/handle_actions.rs:1774-1784 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64cb4691e01cf7532cdf892156bc0d9dd17de1d114b5760e819f0b8d1f1e5f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/budget_controller.ex:72-88 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:126-144 | canopy/backend/lib/canopy_web/controllers/session_controller.ex:70-86 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:37-53 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/budget_controller.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09c33a34c4c379985fa30b46ac8e2a7db989a16431b0ecd6567439720b2569e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/loop/goal_tracker.ex:1187-1193 | lib/optimal_system_agent/agent/loop/spot_check_auditor.ex:251-257 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d62ee50e8c77e54e648f4527ede832b7f3a3db89d10b265f535b3cc654972b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:494-504 | lib/optimal_system_agent/agent/tasks/tracker.ex:582-593 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6042158340f1471707ed8ceb30c32977885c0952222a7e57216cf1d5926b917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/tools/builtins/download/handler.ex:88-109 | lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex:78-99 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c71043dcd93df57d6474128d6c34f4696fa586f65146713279c47f13b7d4688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/components/input/mod.rs:532-543 | priv/rust/tui/src/components/input/mod.rs:685-696 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d85f9c0ab536aebdafd752cb1a2cabdf5a6923ac9684d65cd06b016aa72485"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/optimal_system_agent/agent/loop/goal_tracker.ex:1692-1715 | lib/optimal_system_agent/agent/loop/goal_verifier.ex:1988-2017 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de992a48543d5f9c8f3445bb30cf17131dc846b5745ae94895d3e2425764602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): lib/optimal_system_agent/providers/batch.ex:138-160 | lib/optimal_system_agent/providers/batch.ex:164-185 | lib/optimal_system_agent/providers/batch.ex:189-206 | lib/optimal_system_agent/providers/batch.ex:210-227 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/batch.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2712a975a88705f5eb8de11ce2af99db195b0f009e72e49f8f83deb12dee425e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex:255-280 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:255-281 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:290-315 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd29816bdfe08d30b186380c64b977a1b1602e79cfe8206ba717f05d57df7065"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/optimal_system_agent/peer/discovery.ex:138-164 | lib/optimal_system_agent/peer/review.ex:100-123 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/peer/discovery.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2f7a4427c7639f01cea9b9032b0f207cf15de4c5c3720dc786f8b9769abd0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): priv/rust/tui/src/components/input/vim.rs:94-116 | priv/rust/tui/src/components/input/vim.rs:144-172 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/vim.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd64c10afeefbb472b2f443c4cde775947f66323b0f5da2f98726225d89b3355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): lib/optimal_system_agent/auth/providers/minimax.ex:309-330 | lib/optimal_system_agent/auth/providers/openai_codex.ex:396-418 | lib/optimal_system_agent/auth/providers/qwen.ex:198-215 | lib/optimal_system_agent/auth/providers/xai.ex:180-196 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/minimax.ex"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea5c3af0be9b258357831e810c91725e9fa0f160d26a9c69eccbfadce9a7bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): lib/optimal_system_agent/skills/validator.ex:360-405 | lib/optimal_system_agent/skills/validator.ex:409-453 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/validator.ex"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d2ab5d5e5bcdba84ebb7e47970c6df5bc3a2898f29bca70b5110fba6797f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/create_agent/tool.ex:36-65 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:32-59 | lib/optimal_system_agent/tools/builtins/peer_negotiate_task/tool.ex:32-55 | lib/optimal_system_agent/tools/builtins/team_create/tool.ex:36-64 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_agent/tool.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e9294d8c488538373b37358838bdd03e93fe24f5a8f30dc3f8aa9ee2edc49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/workspace/store.ex:74-91 | lib/optimal_system_agent/workspace/store.ex:183-196 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/store.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df3f85ea505644c6e015e1d51dafec8ae9c888a50146cb7a7a747aad2941e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): lib/optimal_system_agent/agent/tasks/tracker.ex:124-150 | lib/optimal_system_agent/agent/tasks/tracker.ex:198-222 | lib/optimal_system_agent/agent/tasks/tracker.ex:289-316 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/tracker.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61feca85a62c78c22d94dce647390849f1e4c784ff837fe7a0b7bca74f50904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/optimal_system_agent/tools/builtins/code_sandbox.ex:73-95 | lib/optimal_system_agent/tools/builtins/pty/pty_wait.ex:50-72 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_sandbox.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef760b3bead23d2c54813088a709124c94c13aa28677a2080d073fba683df12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): priv/rust/tui/src/dialogs/file_picker.rs:127-134 | priv/rust/tui/src/dialogs/sessions.rs:91-103 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4060bb34396aba8c2029cb6d7bb5b29207b4d45f947bda1ec923bd99e1e34087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/compose.ex:399-418 | lib/optimal_system_agent/open_computers/executor/direct/compose.ex:472-491 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/compose.ex"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b5afbf5c52d8cf18c72da39ccbdd11273b6a1d712becc78869ca5cecc0861e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/channels/http/api/metrics_routes.ex:143-154 | lib/optimal_system_agent/channels/http/api/metrics_routes.ex:160-169 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/metrics_routes.ex"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a958d98b64b5b1213d04d31e8ee4d5b59d78ded800b7d56d956ec755e6b6c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/providers/image_budget.ex:620-626 | lib/optimal_system_agent/providers/image_budget.ex:640-646 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7b989ebef845314990b6a6b5619f1d613febba1851de948003cd3a68788292"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:61-77 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex:60-88 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed0cf9e41d80a1b61c2215b7dfb9f8211596c8d4236c4fc997dfcc76d8a9ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/scratchpad.ex:125-133 | lib/optimal_system_agent/scratchpad.ex:139-147 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/scratchpad.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"117e86a6ec3268c1c83d20362d65195fba236bcc869a6283dc642ce6390907d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/tools/builtins/message_agent/handler.ex:21-34 | lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex:53-66 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/message_agent/handler.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f715f51623dc29b10f08e8b328f99935ff1f3f2f7a0ee646cd03b03169a0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): native/macos/AccessibilityHelper/main.swift:107-114 | native/macos/AccessibilityHelper/main.swift:116-123 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/macos/AccessibilityHelper/main.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a656bc52be5a55f54330123f498aa2a82dab3eec399fc327351996181c13344d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/context_mesh/keeper.ex:451-461 | lib/optimal_system_agent/memory/consolidator.ex:257-261 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/context_mesh/keeper.ex"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"566042315c890db6723b1a7fa14cb272dded71157c56a0f468e4af8a857c5c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): priv/rust/tui/src/components/activity.rs:217-234 | priv/rust/tui/src/util.rs:29-53 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d93dbcda9ca9235126827e734020076bcd0d91674566ea4f84fe93a0977826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/agent/loop/advisor.ex:569-583 | lib/optimal_system_agent/providers/step_router.ex:399-408 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e019bcab94c3afc8a63b5696f551165ac1396e5e267e4d2d378848a0404958"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/memory/coordinator.ex:253-262 | lib/optimal_system_agent/agent/memory/coordinator.ex:268-276 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/coordinator.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"825fd4c2ce868de79abebfda0aef11bcf68653046953bdd17c9a040df010eb99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/channels/signal.ex:137-161 | lib/optimal_system_agent/channels/signal.ex:175-191 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/signal.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"be35e2ee1c257c74d47eb56bd8154b76e21093ba9bd1724eb7897218a75c6569"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/miosa/mcp.ex:87-100 | lib/optimal_system_agent/tools/builtins/notebook_edit/handler.ex:257-270 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/mcp.ex"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca652674cb7e0b8f3007226421f56683887099ec8ca789157084736e922efbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): lib/optimal_system_agent/speculative/tools/start_speculative/tool.ex:37-62 | lib/optimal_system_agent/tools/builtins/exit_worktree/tool.ex:33-61 | lib/optimal_system_agent/tools/builtins/expand_output.ex:55-79 | lib/optimal_system_agent/tools/builtins/file_edit/tool.ex:44-72 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/speculative/tools/start_speculative/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"307f4bd2db06ee238267d9bb09b79dec6a81e3bad43f46253c7634a809d65df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/optimal_system_agent/tools/builtins/bash_output/tool.ex:40-65 | lib/optimal_system_agent/tools/builtins/task_wait/tool.ex:54-82 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/bash_output/tool.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ae83b6a4870bb901fd809e4f3807f519a9677c4b06cbb7baa34a845ae06f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/tools/builtins/task_write/handler.ex:135-146 | lib/optimal_system_agent/tools/builtins/task_write/handler.ex:235-246 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_write/handler.ex"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3277e7df1d738da2c952e321108e685fea13fd828f71180356f2fffa31ad662"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/app/terminal_probe.rs:112-126 | priv/rust/tui/src/app/terminal_probe.rs:131-142 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/terminal_probe.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cf8d8ee223c10950990015267949a95b8f84a586301178e8658b39bbe323c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): priv/rust/tui/src/notification/inhibit.rs:54-68 | priv/rust/tui/src/notification/sound.rs:49-63 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/notification/inhibit.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3cc81f6ffe575ae7190e09ca6c6927810023cb73f3dddd2b16b56b583315f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): canopy/backend/lib/canopy_web/controllers/session_controller.ex:150-164 | lib/optimal_system_agent/event_stream.ex:115-129 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/session_controller.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a304de8adc778a02fc0978b79924fef344d0aeb89ae91c6b3608bcdace279349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/memory/episodic.ex:224-232 | lib/optimal_system_agent/learning/pain_sink.ex:111-119 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9187a3a2ae9e5b8d97ef0844771c15a1ef3cbcf59a747f934ae917ac34c8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/optimal_system_agent/agent/pricing.ex:287-319 | lib/optimal_system_agent/agent/pricing.ex:901-934 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"0882dfb06bf2507838207a3919c1b79266856b273527386bcb7e697fa1e7084b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/tools/builtins/file_grep/handler.ex:705-717 | lib/optimal_system_agent/tools/builtins/web_search/handler.ex:192-201 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4a6a863832a204210299e81995f65deaff0ae6ff197f938b27f9f4c6543645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/tools/builtins/github.ex:191-204 | lib/optimal_system_agent/tools/builtins/github.ex:252-264 \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":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7ea490bad0c27b741f7ef00a09a48ce12548757f336319b08ad58b9bc5fd29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): priv/rust/tui/src/client/http.rs:1037-1047 | priv/rust/tui/src/client/http.rs:1443-1450 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4f004727d214af168d751c37d67b0a2ef595d15337f25098a7434941241ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): priv/rust/tui/src/dialogs/memory_browser.rs:58-70 | priv/rust/tui/src/dialogs/permissions_manager.rs:79-94 | priv/rust/tui/src/dialogs/persona_picker.rs:86-98 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9ad178d54b6dc9ccdc17fcbdea5491948add995d0e69574e55fddc1c108f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/agent/loop/doom_loop/stall.ex:348-357 | lib/optimal_system_agent/agent/loop/regulation/signals.ex:172-181 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd997f7d30913a97d26fd4af07b845bc9efa2e4b62b5cd414e0ebe8ad02e5c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/optimal_system_agent/providers/catalog.ex:637-651 | lib/optimal_system_agent/providers/catalog.ex:655-668 | lib/optimal_system_agent/providers/catalog.ex:702-715 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"868e739331cd9839c99c534b02314a96703b93c4892154c851901daf7663dec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex:85-102 | lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex:106-121 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4ea4bacdddce0cdc14f08c02e12bc58a31de0486a69f50ae569c78d6afcecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): priv/rust/tui/src/app/exit_dump.rs:190-207 | priv/rust/tui/src/app/self_update.rs:368-387 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/exit_dump.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"94571fe210f1fc6e2a497f71cb5135dd32d44457a2bbaa11e45f5a55b8ea04aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): priv/rust/tui/src/components/status_bar.rs:192-202 | priv/rust/tui/src/util.rs:224-242 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56ce3c854600f138e603af24ef6307a9d5483f736e3cfef7b746df1e3465984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/shell/task_output.ex:256-271 | lib/optimal_system_agent/workspace/fast_worktree/metadata.ex:128-143 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/task_output.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"83784f12c5bb36ac5a02a244163b90faf21ae3526c4a4a00441db1500fa08eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/claims_board.ex:55-86 | lib/optimal_system_agent/tools/builtins/config/tool.ex:37-60 | lib/optimal_system_agent/tools/builtins/repo_map.ex:60-84 | lib/optimal_system_agent/tools/builtins/workspace_map.ex:66-91 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/claims_board.ex"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1040903e3a6bd45e7b926778847d91928a404ded8da1a7ea8edb91412b40640a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/auth/providers/claude_cli.ex:408-427 | lib/optimal_system_agent/auth/providers/copilot_cli.ex:246-262 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33b36233401f745a9cdab64674bfe630ea4ed2ecf93603f95232f99ae613ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/optimal_system_agent/budget/budget.ex:330-350 | lib/optimal_system_agent/budget/budget.ex:355-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/budget/budget.ex"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"85751cfc3786103926f426bf747ab33fb0ff739f117f13d0303b7bfde9a511d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/dir_list/messages.ex:69-90 | lib/optimal_system_agent/tools/builtins/file_glob/messages.ex:37-57 | lib/optimal_system_agent/tools/builtins/file_read/messages.ex:95-118 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/dir_list/messages.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83d24d128364865ee22353db725b1cb6801a2e03fb6d111617e8bfc705c9255"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): priv/rust/tui/src/components/input/mod.rs:1737-1747 | priv/rust/tui/src/components/input/mod.rs:1764-1777 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"607dcf7a21fa5d8721608cb9f70c6e11296e3cf37417b765849d81aab1ab5615"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): priv/rust/tui/src/tools/mod.rs:248-265 | priv/rust/tui/src/tools/mod.rs:596-608 \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":"priv/rust/tui/src/tools/mod.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"537dbeb7ef1ae7ba2d2373e8467e8f94ee36145483a2fb8e732f9a60d68c24c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/agent/tasks/persistence.ex:46-58 | lib/optimal_system_agent/agent/workflow.ex:688-705 \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":"lib/optimal_system_agent/agent/tasks/persistence.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64f3725b7d8a1718cacde39593e9a607320c4369fdbe08f5c52d82c5beefd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): lib/optimal_system_agent/channels/discord.ex:218-229 | lib/optimal_system_agent/channels/slack.ex:236-247 | lib/optimal_system_agent/channels/telegram.ex:271-287 | lib/optimal_system_agent/channels/whatsapp.ex:222-238 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/discord.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac08448493c90238905c34a9e6e24698e2ea1732a82ca7b3a5203087f0522c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/cli/prompt.ex:141-151 | lib/optimal_system_agent/cli/prompt.ex:230-242 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/prompt.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"45172d1526ad39c2b3cc064b3d4c0670656cf9b31e5509b13d7ddb08c8147d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): lib/optimal_system_agent/context_mesh/keeper.ex:259-283 | lib/optimal_system_agent/context_mesh/keeper.ex:329-348 | lib/optimal_system_agent/memory/dream.ex:508-516 | lib/optimal_system_agent/memory/session_titler.ex:454-464 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/context_mesh/keeper.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"5432e7e1315caf22124ddc57d8366b0bd202be5567d666c4a70356b6c3dd2da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/security/anomaly_queue.ex:40-59 | lib/optimal_system_agent/security/class_queue.ex:35-51 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/anomaly_queue.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f045724dc668b2c9379cde286b7f76ed75b41a8cf3d8a0d493f42993c081c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/optimal_system_agent/tools/builtins/browser.ex:35-65 | lib/optimal_system_agent/tools/builtins/goal/create_tool.ex:41-64 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a22b010e0f97dd23f5c719f7b56ad629e17897cfaf7b4589ffc205dc54fe39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/executor.ex:354-373 | lib/optimal_system_agent/tools/builtins/computer_use/executor.ex:377-392 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/executor.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ce59b7870570c0e900575822a90e507617e0906e8362eb87993470f3f7c156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:9-15 | canopy/backend/lib/canopy_web/controllers/template_controller.ex:9-15 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:9-15 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:9-15 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c714fbda845b2c205e39fc64e0f74094f44db0c3fcc85c7b03af6993a5af750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/miosa/shims.ex:858-869 | lib/optimal_system_agent/budget/budget.ex:246-262 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/miosa/shims.ex"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f3130333f38b915134d79354ddef5c683894131043ef0885403a1a32289a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:825-845 | lib/optimal_system_agent/channels/cli/commands.ex:932-952 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb24434a8f62daa19fac8b13a7bd829b9aaf9e863eb1485fc9ce5749b6538ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:4908-4925 | lib/optimal_system_agent/channels/cli/commands.ex:4929-4944 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4908}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e539924b985d613c0010c2dc0dba81e958577c9625dc0321923e0da01cc48ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/cli/update.ex:30-46 | lib/optimal_system_agent/cli/update.ex:51-68 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"706ad53540f73e4175cf4c774327143b27a871b18a7df3015345e877b96732d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/optimal_system_agent/onboarding.ex:2827-2847 | lib/optimal_system_agent/onboarding.ex:2854-2872 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"9176351485b15e170380836d034dea44891e27b5e9d338951bfeeeea9dac21c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/tasks/check.ex:150-158 | lib/optimal_system_agent/sandbox/miosa_cli.ex:422-437 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/check.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff22e88a5f3f8ca053322bfebd55f32b1d1ffc9341d33721ed2864531ad439f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/tools/builtins/browser.ex:249-269 | lib/optimal_system_agent/tools/builtins/browser.ex:273-294 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ddea5e835c566a4d7d5fb849226d95f9edbc89a653e7f9c870efea44ee6ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): canopy/backend/lib/canopy/costs.ex:42-53 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:65-79 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea876de3cabeac0fee4c9a968e290ba3458383717bf5e150dd684b79906ad6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/channels/http/api/protocol_routes.ex:80-93 | lib/optimal_system_agent/channels/http/api/protocol_routes.ex:97-111 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/protocol_routes.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a2540e994bf26022aa70b0b1c4ad05322271c4f6aed19fb5735178f9da6ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): lib/optimal_system_agent/context_refs/resolvers/diff.ex:6-22 | lib/optimal_system_agent/context_refs/resolvers/git_log.ex:6-18 | lib/optimal_system_agent/context_refs/resolvers/staged.ex:6-22 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/context_refs/resolvers/diff.ex"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b19b0de2824d7734f5609143672310b311dabd299001e507d140b68351e4ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/container.ex:161-175 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:182-196 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdeddb415af2a05e958d48de4212a79e30e5c0cc75df4ad2d39eeff5e5179319"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/workspace/fast_worktree/populate.ex:107-111 | lib/optimal_system_agent/workspace/fast_worktree/populate.ex:125-129 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/populate.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"355e3fe5ad88039a4fb2ec800a0cd64484f3ab5ab06f9d8e3cc5df74fd05de72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): priv/rust/tui/src/app/handle_actions.rs:1374-1385 | priv/rust/tui/src/app/handle_actions.rs:3702-3709 | priv/rust/tui/src/app/handle_actions.rs:3712-3722 | priv/rust/tui/src/app/handle_actions.rs:3768-3778 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c70e81f22967f1cb399586c88b276fddcd52a8f07475dc63355f7ef6eab8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/client/http.rs:76-87 | priv/rust/tui/src/client/http.rs:1395-1408 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e941631782d3da695436bb3206a7bc804ddfb2dc2c7318a87d931d528e321f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:102-115 | canopy/backend/lib/canopy_web/controllers/gateway_controller.ex:33-46 | canopy/backend/lib/canopy_web/controllers/memory_controller.ex:81-94 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:65-78 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a086c128c406448a0e8e3d2e08d36b0287e77422a99a188e5c5d1dc5ae50dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:250-266 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:200-213 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"412c68e6605279f6a2bf5423212fbd4880928f557091272a518e533f0d77c2db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/loop/tool_executor.ex:1076-1084 | lib/optimal_system_agent/permissions/ask_flow.ex:305-313 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d013a4b91b298a4b2d9835845b6423a973ce22dd40604cc76c0eac7fcdc0009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): lib/optimal_system_agent/monitor/watch_manager.ex:31-38 | lib/optimal_system_agent/shell/background_manager.ex:35-44 | lib/optimal_system_agent/shell/background_manager.ex:61-69 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/monitor/watch_manager.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9073a4be5e3e8463379b2a83dd49b2fb75804896ad81667bfe6136889c0e1a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/providers/registry.ex:177-189 | lib/optimal_system_agent/providers/registry.ex:333-348 \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":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be5d5522f5bb9d356a3b4250a6f2da86a1553262b369bcc619cc3b134d7af64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/shell/background_tracker.ex:77-90 | lib/optimal_system_agent/shell/background_tracker.ex:137-149 \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":"lib/optimal_system_agent/shell/background_tracker.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5506c69ef07eb0c2b2dca444f9f9937563482192a59eb12b73a886e8dfd03363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/optimal_system_agent/tools/builtins/git/tool.ex:47-68 | lib/optimal_system_agent/tools/builtins/mcts_index.ex:43-68 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/git/tool.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9cb43bef71939edda10e9fb754df2085baca744eec6a17b84546c226f6cc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/security_intel.ex:379-399 | lib/optimal_system_agent/tools/builtins/security_intel.ex:403-417 | lib/optimal_system_agent/tools/builtins/security_intel.ex:421-439 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"de05423c687803a4d21cd9cab2595489e99be041952338e6edd91fbb6771e32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/security/code_fix_pr.ex:285-290 | lib/optimal_system_agent/security/code_fix_pr.ex:297-302 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/code_fix_pr.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f842f17c136ee3840a49a121ea5e34095b5c7f2ed932389e055a59b7e8b338e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/tools/builtins/ask_user/tool.ex:37-55 | lib/optimal_system_agent/tools/builtins/vault_sleep.ex:21-33 \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":"lib/optimal_system_agent/tools/builtins/ask_user/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b686b066642868c0ccb0c0b7159b407b8138b9727629ea41a64749c64dc1a0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): canopy/backend/lib/canopy/agents.ex:18-31 | canopy/backend/lib/canopy/work.ex:31-44 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/agents.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67101a725ca72b52a774dc390d185ef440b5dd1a9ca8006dd61a5334b902b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/persisted_result.ex:76-90 | lib/optimal_system_agent/mcp/config.ex:435-450 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/persisted_result.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"52edef56df10693084adb76a67a746a4d7dfaf87d5f05c00e8cc228202000626"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/cli/remote.ex:138-147 | lib/optimal_system_agent/cli/remote.ex:151-161 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/remote.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"234fda2f68ebcf6d88bd495e6a41214f0228f0c6145ebd1bfb45f7a91962d881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/skin/loader.ex:17-33 | lib/optimal_system_agent/tools/registry/command_loader.ex:46-58 \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":"lib/optimal_system_agent/skin/loader.ex"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f43a228ff721773fd237ea0c2488a6fc92b70a9874180f9a7a11064a3115bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/memory_recall/tool.ex:37-55 | lib/optimal_system_agent/tools/builtins/memory_save/tool.ex:37-56 | lib/optimal_system_agent/tools/builtins/orchestrate.ex:50-71 | lib/optimal_system_agent/tools/builtins/vault_remember.ex:22-44 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/memory_recall/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a704ebc41a1d571b17a436d099e8dfee8a48fa90a07311e58d16151bee3129e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): priv/rust/tui/src/dialogs/skills_browser.rs:162-168 | priv/rust/tui/src/dialogs/tasks_panel.rs:136-142 | priv/rust/tui/src/dialogs/tools_browser.rs:152-158 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdd5f1ae0c2181f057a3f54a8abb51c9b53e50eedf9a08c99924ec085aaa408"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/channels/http/api/tool_routes.ex:362-370 | lib/optimal_system_agent/channels/http/api/tool_routes.ex:374-388 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe4b7f53fd354325f90bae47093035868651a2018b74bfc590a493b9c052d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/optimal_system_agent/providers/deepseek_models.ex:349-358 | lib/optimal_system_agent/providers/xai_models.ex:411-419 | lib/optimal_system_agent/providers/zai_models.ex:507-515 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/deepseek_models.ex"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b01d9bb5be12154eebf0a95d1069c32a822f6f91ee306d696eea58d46f11f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:365-380 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:464-478 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c15f635049f142dc2977df877656d55dfef41b88160606d4f57813e2f835ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/action_authority.ex:65-73 | lib/optimal_system_agent/system/updater.ex:471-478 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/action_authority.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"47867abd46cb9536048984cc2c54e061017a037b69d6833bf24856a03af50a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex:191-198 | lib/optimal_system_agent/tools/builtins/computer_use/executor.ex:227-246 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3415e2b03028815f82e05d62c3caf83b69dba85b60f06350fdfff7f463deb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/channels/slack.ex:197-212 | lib/optimal_system_agent/channels/telegram.ex:226-243 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/slack.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7186f56298f2b2113b6b168e3183c8214261e9e7d46256be0ff347f8ff2d45d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/compose.ex:107-128 | lib/optimal_system_agent/open_computers/executor/direct/compose.ex:134-150 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/compose.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c0ccaaa76af582a06f7f05cd8ff3be40d5a51ad97a680981e2935b03ea4851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/agent/safety/model_classifier.ex:331-338 | lib/optimal_system_agent/events/classifier.ex:85-94 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"333e044c4c341df7adfd5c892be427626a68fb37678037316cb2d7df71d18618"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:69-87 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:92-107 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43f4b294682e27cb7c5a552a37273e475522f861bc35f346a3772c0a7c5496c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:324-344 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:348-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b96f8d4256ebec53583564ec3acb2744be070a4724397978bc0cf6c633ac48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/tools/builtins/file_transform/balance.ex:197-200 | lib/optimal_system_agent/tools/builtins/file_transform/balance.ex:204-207 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_transform/balance.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d907fa70a3d29dd2199834686293ae15608fd6c6181071713a94414dee97f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/workspace/fast_worktree/populate.ex:138-149 | lib/optimal_system_agent/workspace/fast_worktree/populate.ex:405-415 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/populate.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4302a277110a7365ce1eda971cdf432ef4b67c1b69b887ab2c3d96c0f0fd5bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): priv/rust/tui/src/client/http.rs:320-326 | priv/rust/tui/src/client/http.rs:564-572 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac95f40c3fc0e66c144f07c7b5d088bfbecbee372be13b5add782c6844c11e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:227-239 | canopy/backend/lib/canopy_web/controllers/spawn_controller.ex:57-68 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e8102e6c815cc4f0e3ce12fbd8d67171df3d16f9c11ff6a7198e116e81bb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/channels/matrix.ex:205-211 | lib/optimal_system_agent/channels/whatsapp.ex:246-249 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/matrix.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"80316828d86efa6070aa381120ddb9bb40b5c0a28a9b7965985f0f8a6c7668cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/mcp/plugin_manifest.ex:399-402 | lib/optimal_system_agent/mcp/plugin_manifest.ex:414-417 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/plugin_manifest.ex"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e6389a5d5413c87b9d423241351b0893980be0557d2ea473fd32a7d087da87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:254-265 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:48-60 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25777b5f92f24d8961d67c9ad898e7bdc44c2351e2e26f102801557ec6885f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/security/notes_store.ex:198-200 | lib/optimal_system_agent/security/notes_store.ex:205-211 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/notes_store.ex"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e4fa34bb55840843e8bf5dff489b01b917698d5cdff655368f3d7eb2597793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/shell/pty/screen.ex:294-305 | lib/optimal_system_agent/shell/pty/screen.ex:310-321 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/pty/screen.ex"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0c8dd433d207eece0f27daa3e6d1761cf0bf1febf55dd368f5996966776911"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/memory/synthesis.ex:271-291 | lib/optimal_system_agent/memory/synthesis.ex:296-311 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/synthesis.ex"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb138218ca855bb53c7b8f936b58d37f678a415b12a5e241541a8da011689963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/monitor/watch_manager.ex:48-56 | lib/optimal_system_agent/shell/background_manager.ex:175-183 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/monitor/watch_manager.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1e691849b911003726eeefecf22164249eef6ff9c721794079e1d4a77afe32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:49-59 | lib/optimal_system_agent/providers/anthropic.ex:64-74 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81627405259cd729317bcff7235f5939608d0b7075b286a7e758ae7f366aa0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/providers/fallback_chain.ex:275-288 | lib/optimal_system_agent/providers/fallback_chain.ex:297-308 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/fallback_chain.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0695569593ba1fb6b49834bf642970065c1ec5cbce30e821f369f42f9188feac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/shell/background_manager.ex:135-142 | lib/optimal_system_agent/shell/background_manager.ex:154-163 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_manager.ex"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"915712a15f44bc85d6b2127c7c4021b42961a720afb99f1c4cf10f48773db37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): priv/rust/tui/src/components/chat/message.rs:238-251 | priv/rust/tui/src/components/chat/mod.rs:565-578 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0282a75e052c236f04f8706628c04164f12b7d3beb6579da8acf27230f25e5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): priv/rust/tui/src/components/input/mod.rs:1986-1997 | priv/rust/tui/src/components/input/mod.rs:2097-2107 | priv/rust/tui/src/components/input/mod.rs:2124-2134 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1aff4d3c8c6dbe3c9ceca0b983609a2ec9e5317d0ec7c0f534f198e5a94575"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): priv/rust/tui/src/util.rs:159-169 | priv/rust/tui/src/util.rs:173-183 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/util.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0326d30631085186adaed8fb31c6783c11f599ef25a4106b6563931961d4e81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): priv/skills/email-security/scripts/headers.py:28-36 | priv/skills/log-analysis/scripts/summarize_jsonl.py:41-50 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/skills/email-security/scripts/headers.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b1b376361ee7499aa895f820015b472b49c5b0e1bc87ba2c029a463870d671"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): canopy/backend/lib/canopy/agents.ex:82-94 | canopy/backend/lib/canopy_web/controllers/agent_controller.ex:203-218 \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":"canopy/backend/lib/canopy/agents.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9936ee8132801a05cf99763676ebaa7ce12d9fe1a1edde7d8b56ed5e3c6776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/fast_path.ex:295-303 | lib/optimal_system_agent/memory/synthesis.ex:151-166 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e5f40a4ed15284414a794725356c3eee8b64b73f8b12a64bec707bd64c98a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/loop/verification_evidence.ex:293-297 | lib/optimal_system_agent/agent/loop/verification_evidence.ex:1021-1031 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d61ffe18414a477ae49a9e300806763901ec7358971826cdd1f8b912e40fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/session_persistence/record_lock.ex:47-66 | lib/optimal_system_agent/agent/session_persistence/record_lock.ex:72-86 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence/record_lock.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8909729cf329c008e77d1dafd44b8b622a50e0af3e8061023f48624e94856b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/channels/http/api/workspace_routes.ex:272-279 | lib/optimal_system_agent/workspace/topology.ex:454-465 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/workspace_routes.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"520ad904ee0fea015780ff07babbd10a78bb3796ccb94b37937729774df7081d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/channels/line.ex:188-196 | lib/optimal_system_agent/channels/whatsapp.ex:196-203 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/line.ex"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8a871869d9c47bc6f0713dcb7670ef909f0ba782c90702ddaf80e01d6b9485"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/providers/bedrock.ex:812-820 | lib/optimal_system_agent/providers/bedrock.ex:824-832 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb546dd855099f2152198ffa4bc6300896fa3b51abfc58380c0155e484e75fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): priv/rust/tui/src/components/input/mod.rs:2220-2228 | priv/rust/tui/src/components/input/mod.rs:2231-2239 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb014da0cbc7d3cceddcd30fb0981bf4bb3e1420e7fd19f2dee64695100c3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): priv/rust/tui/src/dialogs/permissions.rs:210-218 | priv/rust/tui/src/tools/file.rs:640-649 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"90475fdc6066cf4abe8420915e13a2c423e2ccdbceea88b865290b8cf0f72c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/optimal_system_agent/auth/providers/claude_cli.ex:486-501 | lib/optimal_system_agent/auth/providers/copilot_cli.ex:314-327 | lib/optimal_system_agent/auth/providers/ollama_account.ex:315-329 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef61f5283f18d48fdbf766278434a211977fa569cbe2ca242bc4df9e0a2eb65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/auth/providers/copilot.ex:210-222 | lib/optimal_system_agent/auth/providers/openai_codex.ex:282-294 \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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"45efa2e38fa0e6ebaa6606adb6c70923a3d4f6f90c5f6a674097dd4e9fa519d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): lib/optimal_system_agent/channels/dingtalk.ex:69-79 | lib/optimal_system_agent/channels/line.ex:76-86 | lib/optimal_system_agent/channels/wecom.ex:64-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfa4a11b6be14d70d8e782cb2ab88a49bce2c328ca3385d209a61ea7b58bec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:195-198 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:223-226 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"677181b6b11ce3d59ef5d1ac5412108edaeca5bbd7407dd0b7d8e9aa4343b81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/providers/mistral_models.ex:174-181 | lib/optimal_system_agent/providers/mistral_models.ex:197-207 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/mistral_models.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"361288292f14570432a1f14a8562ff37689b09278392ef997af99504dcf58987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): canopy/backend/lib/canopy/agents.ex:56-69 | canopy/backend/lib/canopy/work.ex:73-80 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/agents.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a4ce5ec330e2c1ab261aef83e28ddb66412a056ba508625a196ed9edf0d081"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/mix/tasks/osa.setup.wizard.ex:347-362 | lib/mix/tasks/osa.setup.wizard.ex:386-400 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf623cb64975461d15dae1301e7ea82add50935b7ddd6b253364c955f01a849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/providers/google.ex:421-429 | lib/optimal_system_agent/providers/openai_compat.ex:1334-1343 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/google.ex"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecf46701aea9b0aa5457ac6195b77b9ecbf6284bb44c4a026aeab8129f8d5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/security/symbol_resolver.ex:153-158 | lib/optimal_system_agent/security/symbol_resolver.ex:162-169 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/symbol_resolver.ex"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"62675339ff319dfa671b2eb9ef5f6cfdc15d86fb46239d5abf47895af9eebf7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/tools/builtins/codebase_explore.ex:55-75 | lib/optimal_system_agent/tools/builtins/semantic_search.ex:28-43 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"edccc6f4fe2e03277c6a8e846090f91cbf0ef2e5d763d1dd038d184b2f683f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): canopy/backend/lib/canopy/adapters/claude_code.ex:128-141 | lib/optimal_system_agent/providers/openai_compat.ex:691-699 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/adapters/claude_code.ex"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b49f1573e787c933e8144af130b9fb7a441270bee8a1e844cb814585e57f78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/pricing.ex:621-629 | lib/optimal_system_agent/agent/pricing.ex:757-767 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a07cb29dec11e890a58fb9b2cb4de10c052ec8f6b6445bcfa89dbb4a74ccbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/prompt_loader.ex:192-204 | lib/optimal_system_agent/soul.ex:762-776 \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":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a764c2092da757ec4fad9cc98a851e7f012600d8b729af6c2acfcefe8e87b3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): lib/optimal_system_agent/providers/deepseek_models.ex:224-234 | lib/optimal_system_agent/providers/google_models.ex:267-277 | lib/optimal_system_agent/providers/openai_models.ex:212-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/deepseek_models.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7444a7f5160474a845da269f2ba41fd21acf412c84eb8ef22857df783172d2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/security/validation_result.ex:221-230 | lib/optimal_system_agent/security/validation_result.ex:234-243 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/validation_result.ex"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7e3663255d31903439e9b1a833e7c70c1e6e09373527ea51dcb1f9659a8c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): priv/rust/tui/src/client/http.rs:285-291 | priv/rust/tui/src/client/http.rs:310-316 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fb1b84000d61fd3177cfa4db9f3c70f4fa007204b00e749eca4a5b334aea29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/agent/defense_context.ex:29-55 | lib/optimal_system_agent/agent/security_context.ex:158-167 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/defense_context.ex"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a275546e752fa66a2958b403d8a5482393528b5447a9729a768ada91703653b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/agent/scheduler.ex:270-280 | lib/optimal_system_agent/agent/scheduler.ex:425-435 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"317e7596106f56b7cd98cf27d81c1fe484aadb715a9f53f991c0d2e5eab52b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): lib/optimal_system_agent/agent/tasks.ex:445-453 | lib/optimal_system_agent/agent/tasks.ex:464-472 | lib/optimal_system_agent/agent/tasks.ex:477-485 | lib/optimal_system_agent/agent/tasks.ex:490-498 | lib/optimal_system_agent/agent/tasks.ex:503-511 | lib/optimal_system_agent/agent/tasks.ex:516-524 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks.ex"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"61658340257f54848b925fbd9e64ec2ce6b0bb58f695dd3f7fff6724031e917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/providers/deepseek_models.ex:331-344 | lib/optimal_system_agent/providers/zai_models.ex:490-503 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/deepseek_models.ex"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92fe33a1e2b1dc0af7c993955612b0de3f9a4efe47c7208c881f1a4b5dd584d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/skills/validator.ex:185-196 | lib/optimal_system_agent/tools/registry/skill_loader.ex:406-419 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/validator.ex"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e800aaf17c3d4b156e961a7fee2c2728faf4e180ecdd0ba0d3ddcdbe6c5f1e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/skin/engine.ex:54-66 | lib/optimal_system_agent/skin/engine.ex:89-96 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skin/engine.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"48326bcaae3e1312c7fcf30184a66e7c983f4416a62b1709e621774afccec06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): priv/rust/tui/src/app/update.rs:617-629 | priv/rust/tui/src/app/update.rs:633-645 \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":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6058badd1daba85791b0ec08820f8d3bcf12f6af1151a215cbf08f05ca7c426"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): priv/rust/tui/src/dialogs/file_picker.rs:155-162 | priv/rust/tui/src/dialogs/sessions.rs:124-131 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"62591170e12698d89ccc2b23b8c1e0eba79b5d7a290333c46d2e0880fca4edc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/execution_control.ex:178-187 | lib/optimal_system_agent/agent/execution_control.ex:191-197 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/execution_control.ex"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebb334097ed4905521bad120810f22120e9f0370189fc503e2cdd7ce6761d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/agent/session_persistence/jsonl.ex:231-242 | lib/optimal_system_agent/agent/session_persistence/record_lock.ex:96-107 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence/jsonl.ex"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7752c452ef6328768c15b6386483f094d24d28dc79f148b8337a58a818e3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/security/shadow_graph.ex:150-153 | lib/optimal_system_agent/security/shadow_graph.ex:159-162 | lib/optimal_system_agent/security/shadow_graph.ex:168-171 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/shadow_graph.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"622453e20904e75326554466cad93d2bdf4535e3a5a15646144d6153654579b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/shell/background_tracker.ex:111-118 | lib/optimal_system_agent/shell/background_tracker.ex:124-131 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_tracker.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de9b740976c4771db9d7be9113d6851b1345b293f36402d0edea11eca93f809"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/verify/post_edit.ex:168-173 | lib/optimal_system_agent/verify/post_edit.ex:227-232 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d747d76212cafc97d46129aa5918c173dc88c5e64166e25a0f287c49c3e4dd72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): priv/rust/tui/src/components/agents/mod.rs:562-568 | priv/rust/tui/src/components/agents/mod.rs:572-581 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80aa995ef43b2a4deb8f538f133f59748f78a586dfb583e9f2c24eb0ee8c092"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): priv/rust/tui/src/components/agents/mod.rs:1079-1089 | priv/rust/tui/src/components/agents/mod.rs:1632-1645 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"427aa46d2a8d571a5bbc025aa9631cbc91f85175bbdd17b2d92836ca85f8a175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): lib/mix/tasks/osa.setup.wizard.ex:240-255 | lib/mix/tasks/osa.setup.wizard.ex:278-289 | lib/optimal_system_agent/cli/setup.ex:245-261 | lib/optimal_system_agent/cli/setup.ex:299-311 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a643126db1b56a12a40aa5279f328edfdc5586ba49ae5d732a9c9e1d8944d59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/agent/fleet.ex:755-768 | lib/optimal_system_agent/agent/fleet.ex:795-816 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aa0bddca98bf9363be959f85c20e5f5912906aea920a7fc496f1a02aec03fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/step_snapshot.ex:496-502 | lib/optimal_system_agent/security/ci_scan.ex:255-262 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/step_snapshot.ex"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c7845fb2db45494cfd99699c01c1e0a329d028baec870358d3032349a5f415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/channels/cli/session.ex:108-122 | lib/optimal_system_agent/channels/cli/session.ex:126-145 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f41fcc999690a672efe5713fa9dc6a0d0b37e63fdf7703e4c6db2814034824b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/memory/scoring.ex:108-114 | lib/optimal_system_agent/memory/store.ex:985-989 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/scoring.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c971d64b527dd0ecf38824654dca182a6c002e189e145f69a93142f27e24e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/security/code_fix_pr.ex:348-355 | lib/optimal_system_agent/skills/validator.ex:643-651 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/code_fix_pr.ex"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8307acbd5118d1e0bbfe8d876a590b51b5810229512f22a4b48db9017d5397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex:253-265 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex:269-281 \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":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9fe8d1a58959f68df3d0dde40d90b19c7616d66c5543376b2be89b345f0ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/compactor.ex:2174-2180 | lib/optimal_system_agent/store/session_transcript.ex:280-288 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bff8aec908aaf53bbc014bb1517ff0715a50051f667c56220ac60372233003"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): lib/optimal_system_agent/auth/providers/bedrock.ex:186-206 | lib/optimal_system_agent/auth/providers/claude_cli.ex:518-546 | lib/optimal_system_agent/auth/providers/ollama_account.ex:345-365 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/bedrock.ex"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"78065cf65d45f1e44d63d8c4d8bfeaaf96a7dda24d4e0c1d90159025ee203751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex:205-210 | lib/optimal_system_agent/tools/builtins/computer_use/executor.ex:253-258 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5d359e6b6f503d95ecb1a57d94efae267784bccb39bcc21264ee1cd9cce98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/mcp/transport/stdio.ex:365-367 | lib/optimal_system_agent/os/process_group.ex:288-290 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"820005eb975eeb8142d49fcfcb05c6f7113b262d948c5ca75320fb9b78804636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/mcp/transport/stdio.ex:537-547 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:567-578 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"423ff14ae180d3a372b0c64d53318c4b5ea50206b4f9640ab6b02a001c2140e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:797-807 | lib/optimal_system_agent/providers/registry.ex:374-382 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"49015c21f5d6f0fce6355b50edeee2c419ffd123ddda148697556c8937ba9863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 5\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:188-204 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:186-192 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:200-209 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:240-252 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex:461-465 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex:563-567 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dceb7be3de6a6e9b96688e7196dc85e77b83fa44d73697f81206306f2e5493b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): priv/rust/tui/src/style/mod.rs:627-638 | priv/rust/tui/src/style/mod.rs:644-655 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/style/mod.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b99263d701eb712355183c93f1283517aa2845d2bab01de21130f67e879c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/optimal_system_agent/agent/loop/turn_pipeline.ex:122-140 | lib/optimal_system_agent/channels/http/api/orchestrate_routes.ex:511-526 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/turn_pipeline.ex"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f089486fbc01e17a5b8eea14feb3d746d977252d3266fd711cc6a118285fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/mcp/transport/http.ex:177-191 | lib/optimal_system_agent/mcp/transport/http.ex:293-303 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/http.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dd7f3f3c84a7fa48585e4d098137ab2ae3e1c76de5e5e53631f0bfd71041e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/security/anomaly_queue.ex:111-119 | lib/optimal_system_agent/security/evidence.ex:54-59 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/anomaly_queue.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2734aea6847662fb71285e2c6205468782850286818e3e9077f2fa01ebb84d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/security/code_fix_pr.ex:191-199 | lib/optimal_system_agent/security/fix_verify.ex:166-176 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/code_fix_pr.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"23202e99c30e162970faef364c2cab019cfd03c0a440eecc83a37faf8c8ef41f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/tools/builtins/brief/tool.ex:33-51 | lib/optimal_system_agent/tools/builtins/vault_context.ex:18-32 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/brief/tool.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"da83dd6fc2d670b02222b43aa187ca703158135faabac351aeb21ce7c7d78b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/loop/durable_log.ex:259-265 | lib/optimal_system_agent/auth/aws_sigv4.ex:193-196 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/durable_log.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8395ba154947f6728a2b8b31823013ad01219a1e747429d9af1b49582bf63380"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/loop/tool_executor.ex:1036-1051 | lib/optimal_system_agent/permissions.ex:1135-1143 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"51423ea68b6f7967a5c33c4b7e21a20b33bd0f8d1a04d454d2b825fbdc3d0ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:593-605 | lib/optimal_system_agent/security/threat_intel.ex:221-232 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06eaf6128cec3fef27c3b7171d96edf518b18a1d3968094ec2f4f28769b01f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/channels/http/api/provider_routes.ex:282-293 | lib/optimal_system_agent/onboarding.ex:1267-1275 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/provider_routes.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f160367c260eeb0fde63c4738fce3ed9bfd2401d7006f3bd9809af89200cfe75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/events/tui_forwarder.ex:116-128 | lib/optimal_system_agent/orchestrator.ex:3786-3800 \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":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eeaf2243d767e6e510d8f4aa5ff138b4ff41388b479f28e269335856179980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): lib/optimal_system_agent/providers/cohere.ex:45-56 | lib/optimal_system_agent/providers/google.ex:101-112 | lib/optimal_system_agent/providers/replicate.ex:81-92 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cohere.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f898b0507eeece5e2373210ce6e754618326058d3305199f3a0ffef4f77efc64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/tools/builtins/tool_search/handler.ex:44-50 | lib/optimal_system_agent/tools/builtins/tool_search/handler.ex:74-79 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/tool_search/handler.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"02913e9b9ad5ae274f602f27a30bfad68b676fc5071f4caab988bab88133a3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): priv/rust/tui/src/dialogs/permissions_manager.rs:97-110 | priv/rust/tui/src/tools/diagnostics.rs:156-168 \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":"priv/rust/tui/src/dialogs/permissions_manager.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"472a8540ccb8ff8a55f226316f3ba77cc8203e7317c68e2a73039f486bda2e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/memory/episodic_store.ex:240-254 | lib/optimal_system_agent/store/skill_library.ex:181-196 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef3f44458341796e1492550b921ec58ccea466f279879666655d9b97848b73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/cli/setup.ex:867-874 | lib/optimal_system_agent/cli/setup.ex:886-891 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af5ce3cd11a00cac1bc37ad9c4e2f953918b9e99e1f61307249de436c669376"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): priv/rust/tui/src/clipboard.rs:251-258 | priv/rust/tui/src/components/input/history.rs:30-39 | priv/rust/tui/src/components/jailbreak.rs:26-34 | priv/rust/tui/src/config/cli.rs:3-11 | priv/rust/tui/src/config/mod.rs:149-159 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/clipboard.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cf6bc5944a9afb94bc216662e18d12dbed8ab0379d166d3f428e3304959ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): canopy/backend/lib/canopy_web/controllers/issue_controller.ex:172-185 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:116-126 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/issue_controller.ex"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c495f442a3f640900effeec4e08b49e9695bd2153f2a5e097e213f92576c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/memory/episodic_store.ex:338-341 | lib/optimal_system_agent/store/skill_library.ex:238-241 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d2ffca0361b319b8d20f913a3ef54a458db33e461857bdabd57d5a9adce7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/safety/classifier.ex:64-71 | lib/optimal_system_agent/agent/safety/dangerous_commands.ex:351-356 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/classifier.ex"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c1ae50769eb97e7449ec4a307f499b93ab01f786774b9d29522622ad796d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): lib/optimal_system_agent/channels/http/api/canopy_routes.ex:284-293 | lib/optimal_system_agent/channels/http/api/cost_routes.ex:242-251 | lib/optimal_system_agent/channels/http/api/project_routes.ex:344-354 | lib/optimal_system_agent/channels/http/api/settings_routes.ex:105-113 | lib/optimal_system_agent/workspace/trust.ex:374-386 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"187435548521c47da6fbd48d10ca10cebc55df6cfa7dc78d91b100811ecaea6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): lib/optimal_system_agent/cli/setup.ex:697-704 | lib/optimal_system_agent/cli/setup.ex:721-728 | lib/optimal_system_agent/cli/setup.ex:732-741 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce934f7519e2163869ac45ac85e4420f7e33091d68218ee44ae777db24cb8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): lib/optimal_system_agent/mcp/transport/stdio.ex:353-358 | lib/optimal_system_agent/os/process_group.ex:70-76 | lib/optimal_system_agent/os/process_group.ex:100-108 | lib/optimal_system_agent/os/process_group.ex:171-177 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"530255258eb6112be69dee8e1aeddbd2b08c2ce19f60532f06c2485d7875d6b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/security/login_session.ex:129-141 | lib/optimal_system_agent/security/login_session.ex:286-298 \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":"lib/optimal_system_agent/security/login_session.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c3f91c1386fc490b9b9f9a00e5e1e2cdf7bbf6f77afb14ec266e2beb874fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/teams/nervous_system.ex:74-90 | lib/optimal_system_agent/teams/supervisor.ex:93-104 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/nervous_system.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80a3e446e8c1facdbb59682186ff385bed209aa446467e0586c5bbc6a65825f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:276-279 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:394-397 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex:883-886 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece1e0427dd7bd543f9aba5e7579417eb808ad8f33a7895dd0a159c7fc0fc37c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:579-589 | lib/optimal_system_agent/agent/tasks/persistence.ex:79-94 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"985e9432158e6e9f83c98a89c738f9b353176651c79cba8e8485efff14127456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/optimal_system_agent/file_locking/intent_broadcaster.ex:65-82 | lib/optimal_system_agent/team.ex:233-246 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/intent_broadcaster.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b77f1a9e0cbadb0125a7c14bd0fc6376cd130efcac27549e0fd785585e7887"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:1834-1842 | lib/optimal_system_agent/providers/google.ex:595-605 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"7981fe5a3336774f0eaf476972ca605d8a216f0b77cd0bce622959b3b2ce64ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex:50-62 | lib/optimal_system_agent/tools/builtins/peer_negotiate_task/handler.ex:55-67 | lib/optimal_system_agent/tools/builtins/peer_review/handler.ex:42-54 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3e3916547298915024a5a09ad3344b74e8de10783f8ff17b7929dedf102f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/local_models/hardware.ex:177-186 | lib/optimal_system_agent/local_models/hardware.ex:199-208 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2aedaf780d51a195d152bda959430b181468b6996a9a945c845d2e09fb8194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): lib/optimal_system_agent/mcp/client/server_session.ex:226-233 | lib/optimal_system_agent/open_computers/executor/direct/tunnel.ex:182-190 | lib/optimal_system_agent/shell/pty/session.ex:302-309 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/server_session.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"87533d5fa9aed83fd6cf79d669b2bb2ec62665293e580070c6e2527ba07d7b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:64-80 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:128-138 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"717978c37cb81f9d703a40a90d8d51c2e1d38ce8c6faafecfb23d1f17a1cddf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): priv/rust/tui/src/app/stream_probe.rs:74-86 | priv/rust/tui/src/app/stream_probe.rs:89-99 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/stream_probe.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"35653d3993337115a8ca911e1b07028a535eb8b83d52b6adffb0c5ac14eb21a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): priv/rust/tui/src/client/http.rs:299-306 | priv/rust/tui/src/client/http.rs:472-482 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e9c84d4db29fb6c47797a1d0260c2ac09cf38fafc0c0286f25849538cc1d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): canopy/backend/lib/canopy/agents.ex:9-11 | canopy/backend/lib/canopy/work.ex:111-113 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/agents.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"260c9637d0753474cb940dd71bb1c2ff6173fd8c72483b7fa8907823cd0b19d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/optimal_system_agent/application.ex:568-586 | lib/optimal_system_agent/cli/setup.ex:175-193 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/application.ex"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ea8a1a80fbe6164337734923d46b767104065d4686fdf818af214b97c1bf33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/conversations/strategies/facilitator.ex:197-200 | lib/optimal_system_agent/conversations/weaver.ex:292-295 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/strategies/facilitator.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b27de8a51efc3105b8f4af37e1ab8396e3a12a26bac9b5b3bc99e52ea246420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/mcp/config.ex:526-530 | lib/optimal_system_agent/memory/skill_generator.ex:206-210 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/config.ex"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"37be3c2cd7879cf7470288706b11255913e06ec7bda853c5a342eaa4c46bd02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): canopy/backend/lib/canopy_web/controllers/inbox_controller.ex:126-136 | canopy/backend/lib/canopy_web/controllers/activity_controller.ex:73-82 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/inbox_controller.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c6a6002806b78d99dd0b5b9378315dacb749258d1e7fd082d60f2ae5d52518"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/agent/loop/llm_client.ex:392-412 | lib/optimal_system_agent/agent/loop/llm_client.ex:750-764 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"520dfb67cf63abc86628308fc0faaa9f00273b95a2f69ff514b9cbe65eea16cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/memory/episodic_store.ex:327-332 | lib/optimal_system_agent/skills/ranker.ex:212-215 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"0030a1865c05a72a5dfa3d8d12d161a7e3f2280e301b7a6a31c5f6c651a57486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/run_store.ex:605-615 | lib/optimal_system_agent/scratchpad.ex:153-159 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08a6781d8997e403ddab2a9fad386dbab529f38eb4b097f2cf77008554ab7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:430-438 | lib/optimal_system_agent/agent/tasks/tracker.ex:455-463 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"62784fa7c3c60d330fc7273b0bc16dc059369955c666ded3187b239804233c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/tasks/persistence.ex:20-31 | lib/optimal_system_agent/agent/workflow.ex:672-680 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/persistence.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"371bf1dfd4dff5eb38c865f634576147d076534001937be9df1b1c3ed6a90e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/tasks/persistence.ex:131-135 | lib/optimal_system_agent/agent/workflow.ex:714-720 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/persistence.ex"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bff08c8b102354eca9ed4af6a9028633c2908c6f8c250f3619ba34808b0aea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/channels/http/api/shared.ex:16-24 | lib/optimal_system_agent/channels/http/api/shared.ex:61-69 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/shared.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43905bb1adecd68d27c7ae255f311c08837b7b1e911e2198d418f7023ecfce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:457-465 | lib/optimal_system_agent/providers/copilot_cli.ex:393-401 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce69a13e3f5d1813ee6d5fa1f9b84c12b6288420bddfcf9e285b8644d97b8aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/xai_models.ex:263-266 | lib/optimal_system_agent/providers/zai_models.ex:382-385 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/xai_models.ex"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16c7dc9c742bf8f78dfc5d2c4fdf1b8029e221d0f65b3fea175a2076271b405"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/tools/builtins/enter_plan_mode/handler.ex:34-53 | lib/optimal_system_agent/tools/builtins/task_write/handler.ex:175-189 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/enter_plan_mode/handler.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8f82c972f163f09ab78a40c386f3cfe0135d9391ea52a462c33390f2784eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/comment_controller.ex:9-16 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:84-91 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:125-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/comment_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fd94ef24109070d862c881b4c6efed01ae64dc576434e9b617f342e483a2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/loop/verification_evidence.ex:361-365 | lib/optimal_system_agent/providers/retry_classifier.ex:423-429 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"710fda7625849892262b31c313d7fe10742b01b59808fb193dba7e55ad471d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:278-283 | lib/optimal_system_agent/agent/workflow.ex:213-219 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"774f78d107d7d2c20bec02bd695f2e83cecc0f0b39616c46548c8d06c2c745dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/config_file.ex:358-363 | lib/optimal_system_agent/security/validation_result.ex:208-213 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config_file.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"372b791691f08bdd2eb65a51a5ccbd827cf420d08751a038545ca9676defadc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/providers/openai_compat.ex:475-481 | lib/optimal_system_agent/providers/openai_responses.ex:162-169 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"72273bcec8fa58d22f0cf27e831249e1dea6af259b6ddbc4ffce99ba69876f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/activity_controller.ex:34-43 | canopy/backend/lib/canopy_web/controllers/log_controller.ex:5-17 | canopy/backend/lib/canopy_web/controllers/session_controller.ex:137-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/activity_controller.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a14932369725bede8becd097dec9ffefa4ea1ae6ee161268f42b44b1d651714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/workflow.ex:410-424 | lib/optimal_system_agent/agent/tasks/workflow.ex:216-222 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/workflow.ex"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"77eb0968c51d1c035242f0fea6119160c23a7907a58d7815bfa9e78ee11c14fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/channels/http/api/canopy_routes.ex:268-276 | lib/optimal_system_agent/channels/http/api/provider_routes.ex:218-226 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad32f3301b6ba2d66ef62d27bbe7bf1bc4c4ef8e1fc3a9a1f143723a55de8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): canopy/backend/lib/canopy_web/controllers/alert_controller.ex:21-24 | canopy/backend/lib/canopy_web/controllers/memory_controller.ex:30-33 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:56-59 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:30-33 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:19-22 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:19-22 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/alert_controller.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cffa206f57fbaa27d4cd1f8e798b51b8130f76f4e9d122599a199d85cb9d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:556-563 | lib/optimal_system_agent/agent/tasks/tracker.ex:624-630 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd078961fe7199f6120e63dbd7141f8ddc4878a34a4badf92412b7854ad5be8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:254-262 | lib/optimal_system_agent/providers/copilot_cli.ex:216-222 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4453613263a31967807bf51e9b2c1c610f6a2de4583b2cf00df4bab9ca89402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/security/eval_harness.ex:113-118 | lib/optimal_system_agent/security/oob.ex:287-291 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/eval_harness.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8315c7db096a27e35dca57d7eb6f9e0a680640a663f277a5c06651b3ac92466f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/download/handler.ex:136-138 | lib/optimal_system_agent/tools/builtins/file_transform/handler.ex:327-329 | lib/optimal_system_agent/tools/builtins/file_write/handler.ex:250-252 | lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:472-474 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:563-565 | lib/optimal_system_agent/tools/conflict_scope.ex:404-406 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbefaecc8f5f58c389bcc8cb485d6663bed64bc9896ddcf6ebe0ad65a521989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/file_write/ui.ex:36-45 | lib/optimal_system_agent/tools/builtins/memory_recall/ui.ex:23-33 | lib/optimal_system_agent/tools/builtins/tool_search/ui.ex:21-27 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_write/ui.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53dc9477af432a22f948f84c77fcfc33870b906732cbcfc4b111072a0bdbaab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): priv/rust/tui/src/components/notify.rs:87-93 | priv/rust/tui/src/notification/kitty.rs:67-72 | priv/rust/tui/src/notification/progress.rs:84-89 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/notify.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0637e37a3778228685cf8549cbd93602b87b8ee2525fa895c1c54e34e1ad34b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex:92-100 | lib/optimal_system_agent/tools/builtins/peer_negotiate_task/handler.ex:75-83 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee98ae2fb25caf1205f55b9d6222cc8ac5757e2088d6774e635c17ff5d85b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/task_queue.ex:468-476 | lib/optimal_system_agent/agent/tasks/queue.ex:253-257 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a1bd04d2f7e568d62be6abc49cd21febfa727910816785b76a484ee85d0e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agents/registry.ex:198-200 | lib/optimal_system_agent/tools/builtins/browser/server.ex:151-157 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agents/registry.ex"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1833ea527bd34459d7ace547cccf302c5fdeb50c9fa11d27b4921ec365ca20d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agents/registry.ex:371-378 | lib/optimal_system_agent/security/ci_scan.ex:278-281 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agents/registry.ex"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"550704568b551e74e4013cca7b047373657849b54bd90f48d2405d1cdf0bc78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/memory/scoring.ex:166-174 | lib/optimal_system_agent/memory/store.ex:1007-1014 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/scoring.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a70610878e6e83ccdd4fed28e21c9b9561879a0ae76508293f4f11e26447473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/repo_map/git_state.ex:148-157 | lib/optimal_system_agent/workspace/cwd.ex:232-241 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map/git_state.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4729938b6e86d5630c94e6ff06115d8f4d59a4d2cd574bda2d4bd7b9abcfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/tools/builtins/create_agent/handler.ex:22-31 | lib/optimal_system_agent/tools/builtins/progress_note/handler.ex:29-38 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_agent/handler.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b90f5a4f5249ea604f7dbeb12f0c0a3d8d86ac3cc399dfe55a22f3dac7fbaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/file_edit/handler.ex:416-419 | lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:325-328 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:545-548 | lib/optimal_system_agent/workspace/topology.ex:700-703 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/handler.ex"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"07797a5953e69cdad41bd37f1bda98492cfcb7a1bdd641ab48db977b7ee342f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/tools/builtins/skill_manager.ex:115-126 | lib/optimal_system_agent/tools/builtins/team_tasks/handler.ex:102-114 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/skill_manager.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a562a9abaabc63ecfb9eb7f0798cb3196b0d97c81a49fdf31bf21e73b735571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): canopy/backend/lib/canopy_web/controllers/skill_controller.ex:125-135 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:217-225 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/skill_controller.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d247d48073cc0d20e909a04ce5571bad3b6a460d94e257969f1b496cc2212eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): lib/optimal_system_agent/channels/dingtalk.ex:171-178 | lib/optimal_system_agent/channels/feishu.ex:253-260 | lib/optimal_system_agent/channels/line.ex:252-259 | lib/optimal_system_agent/channels/matrix.ex:244-251 | lib/optimal_system_agent/channels/wecom.ex:159-166 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c2bcda1f4ca29a2e8ec669338855879800995cc1484ea3bd083bd3d3d8de53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/tools/builtins/peer_negotiate_task/handler.ex:87-95 | lib/optimal_system_agent/tools/builtins/wallet_ops.ex:64-72 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/peer_negotiate_task/handler.ex"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb11a04dce2e285a0f1183d1012092d062c423abcbcb86383fa8c5d4e31cdf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/tools/builtins/push_notification/handler.ex:120-128 | lib/optimal_system_agent/tools/builtins/subscribe_pr/handler.ex:125-134 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/push_notification/handler.ex"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5231d0e967441b4a7b4e4155ef8b0c6fec88c57a018e400e904f705000e644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:2677-2684 | lib/optimal_system_agent/channels/cli/renderer.ex:205-215 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a376c6dc1a68602b9d3c4b15a818bcb58d72c6a69a13368522801c4f2a0c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/cli/doctor.ex:590-597 | lib/optimal_system_agent/cli/doctor/inspection.ex:1014-1017 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99b6849632e7415238ad2eb2dc7c1371752dddded566ce98945b0f52548a0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/plugins/loader.ex:565-568 | lib/optimal_system_agent/providers/cache_attribution.ex:102-106 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"230df206ad21054fb24fae8fd57061d1d9c426b38847cdf922a51036c68733b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:1624-1635 | lib/optimal_system_agent/providers/openai_compat.ex:1657-1669 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca10b090cc8dc249f5c628eaac084314ca03449dcfdbbe471f3dfadde35891f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/providers/ollama.ex:1614-1616 | lib/optimal_system_agent/providers/openai_compat.ex:685-687 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"56500cfd9b8334ade4221501fbbe6368084ea42fc69cd351faaa1d80989dc969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/security/code_fix_store.ex:95-102 | lib/optimal_system_agent/security/notes_store.ex:164-171 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/code_fix_store.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6df2493a9256e6f1d9c24998cd36a6dc1c88ea1daa881af9bb1d0d3511a6774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/channels/http/api/webhook_verify.ex:47-54 | lib/optimal_system_agent/channels/slack.ex:148-156 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/webhook_verify.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d15b8b91bd2e630f0057449263c5a1a4525c431c1394798e92a7e2ab5c77c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/optimal_system_agent/context_mesh/registry.ex:109-111 | lib/optimal_system_agent/file_locking/intent_broadcaster.ex:166-168 | lib/optimal_system_agent/team.ex:126-128 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/context_mesh/registry.ex"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94ed08a2cf35e34a2c9405e0986622b828f21dfa7e33a10dcee32707af30134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/healing/orchestrator.ex:648-651 | lib/optimal_system_agent/open_computers/executor/direct/tunnel.ex:114-121 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/healing/orchestrator.ex"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"3062affb1474062d1778e5f663d59d07603e30a6eaa74fa637cd7ec94e59be5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/memory/consolidator.ex:291-292 | lib/optimal_system_agent/memory/store.ex:1088-1092 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/consolidator.ex"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"88090c896ae18e1c14fa40e907442d14148fcd45360775e592d9b36340ab279a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/tools.ex:41-43 | lib/optimal_system_agent/tools/builtins/notebook_edit/handler.ex:308-313 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3152c3c0891e9344bea478b960de4c470c4fabed60bcc0046e72066fe30abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:547-553 | lib/optimal_system_agent/tools/builtins/repo_map.ex:198-204 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37bfa7a499a90a904666eb9f6089baad7918e716625d34820c61f12abb956c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/optimal_system_agent/tools/builtins/delegate/handler.ex:53-67 | lib/optimal_system_agent/tools/builtins/fleet/handler.ex:72-84 \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":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc6c50adc463375234a0d0a708f9304606961eaada39b77e5f9f4ad346977a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/tools/builtins/dir_list/handler.ex:40-52 | lib/optimal_system_agent/tools/builtins/file_grep/handler.ex:61-72 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/dir_list/handler.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a80d453e65e0cdc79cd1dee1a5b15f21fbbd392ea17b951cc1e5b820d88a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): lib/optimal_system_agent/agent/loop/doom_loop/stall.ex:381-386 | lib/optimal_system_agent/agent/loop/regulation/signals.ex:200-204 | lib/optimal_system_agent/providers/ollama.ex:1544-1550 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdd4e6baf40303ddce2671742847e7e5ca992507f1adcb4ae73e42b9b790ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:612-616 | lib/optimal_system_agent/agent/workflow.ex:819-825 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b135c01c2f7bcd3f589e149d4ebc6ea06c312eb17c6e32700712e59250e181a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/fs_checkpoint/server.ex:622-628 | lib/optimal_system_agent/security/ci_scan.ex:269-271 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daa3da4d6a4d19ceac4604e573b5b7479e3efbb2d664bbfd9f4bb475ab6dbef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:983-985 | lib/optimal_system_agent/providers/cache_attribution.ex:653-656 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93a982c52c4087df66c47066fa8d08bf386cf2e638038424ba77ba2323686a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/optimal_system_agent/tools/arg_coercion.ex:176-187 | lib/optimal_system_agent/tools/builtins/config/handler.ex:107-116 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/arg_coercion.ex"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee0d8a5e79b6852ef9d2c0a97323c68f4a70a3374e82f7248ead5ef095a3a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/compactor.ex:464-469 | lib/optimal_system_agent/tools/conflict_scope.ex:356-361 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"64260a21ae026a49e82e6164df1b3468e2bc9fd76e88464b0b78f0dfcd76a5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/fleet.ex:874-879 | lib/optimal_system_agent/orchestrator.ex:3441-3446 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d07b2b886cc20c91b9e18f93b066ec157ec4ca27b63fc95e24ea168ac435ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/loop/goal_tracker.ex:1946-1950 | lib/optimal_system_agent/workspace/trust.ex:365-370 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bdacc9097fde0ee960a82a85f8f755e4adde1f0df3b543f7d1b88e370a5b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/loop/proactive_compaction.ex:1017-1023 | lib/optimal_system_agent/memory/flush.ex:581-587 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3739c72ba168539d6a7c5de926aa0d76f2480ef42a37a51e2151656dd111099"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/loop/tool_arg_metrics.ex:193-199 | lib/optimal_system_agent/agent/loop/verification_gate.ex:652-658 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_arg_metrics.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0936e248bda6bf5ffd90c9c245795af530d032a843358f893f2eabff54f00e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/session_persistence.ex:1481-1485 | lib/optimal_system_agent/memory/session_titler.ex:236-241 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee1abecaa2e046010f39f37ae3290ef185f15d708ac9793a1906e77f9c3b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/agent/voice.ex:183-190 | lib/optimal_system_agent/cli/doctor.ex:666-673 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/voice.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"76636109d9be764411cdfafbe04c2038c82055a74b26d6527c99ace7a88638f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/providers/anthropic.ex:1864-1869 | lib/optimal_system_agent/providers/bedrock.ex:962-967 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc3071be8010632a5c757376193fc970f1e3321248925654e57c3136fac19e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/bedrock.ex:884-890 | lib/optimal_system_agent/providers/openai_responses.ex:336-339 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d75a428e14e6c20890011845b6507d399feff7eff69eb0bbffc6f1d83598c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/tools/builtins/message_agent/ui.ex:13-18 | lib/optimal_system_agent/tools/builtins/team_tasks/ui.ex:13-17 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/message_agent/ui.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aba294137da8e275e41fada19ad6ddc10dd9c1cc67711266e66a9948c05c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/loop.ex:2114-2123 | lib/optimal_system_agent/agent/loop/react_loop.ex:3559-3564 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6168dbb6befc8fc26751266db3ade631acc4fabdbd62dedfbaae314d64f15c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/session_persistence.ex:1608-1612 | lib/optimal_system_agent/workspace/fast_worktree/metadata.ex:147-152 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f3dc7d3989bb63ca992ebc4cdd66effd5ed79b2b71e05fb6a1a88d9de4e176"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/channels/http/api/data_routes.ex:456-466 | lib/optimal_system_agent/channels/http/api/tool_routes.ex:855-865 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/data_routes.ex"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"71283cf01cdbdcf87b8c9b96616c7945fd530ea197d2c29cc383e36a2b03940e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/providers/catalog.ex:303-309 | lib/optimal_system_agent/providers/model_limits.ex:122-127 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"168efe314048a05170b27c727333ebd067e6bb07b1c9c2fceef9733c04530240"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/store/decision_edge.ex:39-46 | lib/optimal_system_agent/store/decision_node.ex:53-61 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/decision_edge.ex"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9effeb5abd13aae3b1e83c1559006abdf23f2df824732bf5dd87d3ed2f15f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/optimal_system_agent/tools/builtins/task_resume/tool.ex:48-63 | lib/optimal_system_agent/tools/builtins/team_delete/tool.ex:36-47 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_resume/tool.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01020794585bc9bee324d00a20b8d0351c4a3bba15496c16951f5b9be4d04b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): priv/rust/tui/src/dialogs/channels_panel.rs:81-84 | priv/rust/tui/src/dialogs/doctor_panel.rs:123-126 | priv/rust/tui/src/dialogs/hooks_viewer.rs:108-111 | priv/rust/tui/src/dialogs/memory_browser.rs:72-75 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:122-125 | priv/rust/tui/src/dialogs/permissions_manager.rs:124-127 | priv/rust/tui/src/dialogs/persona_picker.rs:102-105 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"808bb1be52987ee5751ac564216c3a8e5bb626faf70df6811ff8543123c826fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/agent/loop.ex:255-263 | lib/optimal_system_agent/workspace/workspace.ex:59-66 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aee936187077fa694b267026a2db17abe0e648bd8685924076646222ceb837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/loop/goal_verifier.ex:2464-2466 | lib/optimal_system_agent/orchestrator.ex:825-826 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6b9a66db54b11e10bde0a38ad5094aa3501ec3206b4c1b8a49cb35c62cb478"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/bench/workspace.ex:156-161 | lib/optimal_system_agent/security/code_fix_pr.ex:210-217 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench/workspace.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f193008dca28b4668600dd6fcdad8ae68e7f32c14b882ac36cbe670420497b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/channels/dingtalk.ex:62-64 | lib/optimal_system_agent/channels/line.ex:70-71 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85848865d138bd55b63f27438639a1a286ec052fd84b4dcb94de609b22536b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/channels/http/api/agent_routes.ex:90-92 | lib/optimal_system_agent/channels/http/api/session_routes.ex:620-622 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_routes.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91de77b1e29c3013c99d940130f6f05425434258b154552378fdeaab4e2ce99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/conversations/strategies/facilitator.ex:82-84 | lib/optimal_system_agent/conversations/strategies/round_robin.ex:51-53 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/strategies/facilitator.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f2e0a8d351b9036f3386625918f608fb3dcf848dbed1e19d4529944cb0805a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/monitor/watch_manager.ex:66-69 | lib/optimal_system_agent/shell/background_manager.ex:205-208 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/monitor/watch_manager.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"046fb89853235f43228c5b511d130d1c113c8f4ab1a27643e3d6b117e1348a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/protocol/context_refs.ex:62-65 | lib/optimal_system_agent/providers/registry.ex:1225-1228 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/protocol/context_refs.ex"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bf45e35a9be1920ca9dda6661a65b0afc8a96056a6d14efa0c556ba18db7b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:123-129 | lib/optimal_system_agent/providers/copilot_cli.ex:125-128 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff42156351e6e4c7174a254e780bc85f42db805b9f8aa5cadc473401210f0ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:469-475 | lib/optimal_system_agent/providers/copilot_cli.ex:496-499 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1403839b455e55df57fe9bc51ef90153608d7840bef25418529a830130f6f731"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:132-133 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex:166-167 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b8a1ac360bc2f480243a56fdf74cd092fc74c63f1accc7eb521e2e1c6670ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): priv/rust/tui/src/dialogs/persona_picker.rs:79-83 | priv/rust/tui/src/dialogs/tools_browser.rs:83-89 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/persona_picker.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a858601d568f1a6f290b9f0058c91458b604c49c46057adf100aa362ef13ece1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): bench/osabench/fixtures/acme/lib/acme/slug.ex:5-8 | lib/optimal_system_agent/skills/capture.ex:90-91 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/osabench/fixtures/acme/lib/acme/slug.ex"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fc3088ef8c1cef3295ec8f24a907b344a62fe61ceed2a0f9e420930e8ba247"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/agent/loop/context_collapse.ex:244-247 | lib/optimal_system_agent/agent/loop/tool_result_storage.ex:444-447 | lib/optimal_system_agent/agent/session_id.ex:141-144 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/context_collapse.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fe0a631f25f32433161ce251492f406e373725dd1f989314c9b2e2a7584898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/loop/tool_executor.ex:955-958 | lib/optimal_system_agent/permissions/ask_flow.ex:212-215 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"3678cdc939cf06e08ae0eeb7eedff971f8411046c87be39bc06985ff614b5f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/cli/auth.ex:147-152 | lib/optimal_system_agent/usage.ex:506-512 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/auth.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f2d27851180e995436aa6ab9bbbb7644fdeba1a984912becf1fb56b2555607"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/conversations/strategies/facilitator.ex:204-206 | lib/optimal_system_agent/conversations/strategies/round_robin.ex:24-26 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/strategies/facilitator.ex"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0465d6dfc3e8c94be66614ac6984b2718bff33b2c18eb05cacc39dc9d8fee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/settings.ex:652-655 | lib/optimal_system_agent/tools/file_state.ex:529-532 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"337cfd82ae793f9b2a582ccba1d6e8b67113a08a460b2f56f6e08819ae809619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/tools/builtins/code_symbols/ui.ex:22-30 | lib/optimal_system_agent/tools/builtins/git/ui.ex:100-109 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/ui.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ee024156e707adae70c426c6b4c81cfc991411814ef83b391526ee54ed1eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/tools/builtins/send_user_file/tool.ex:102-106 | lib/optimal_system_agent/tools/builtins/send_user_file/ui.ex:5-10 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_user_file/tool.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"46926404ff87ca8d5f0f1450ef4636c0c43b09bffbeaa7db6cba46449b3c6a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): lib/optimal_system_agent/agent/active_skills.ex:218-219 | lib/optimal_system_agent/agent/run_store.ex:1283-1284 | lib/optimal_system_agent/agent/session_persistence.ex:548-549 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7838e1278dd6e508fbf0e4db35908a191fb18b7519f2ddc3ea1baeeb13f68837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/safety/model_classifier.ex:394-395 | lib/optimal_system_agent/permissions/auto_classifier.ex:469-470 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cef24f8f3651fdc51c98f39b6926496bf5d60d1463c2980bc8fa9acedcc6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/security_context.ex:196-203 | lib/optimal_system_agent/channels/http/api/canopy_routes.ex:398-402 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/security_context.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"48711522d9a5cbf51d6952f7258b6263ebd03c6a2e2a68c074359b613b6b6198"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/local_models/catalog.ex:79-83 | lib/optimal_system_agent/local_models/hugging_face.ex:166-171 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/catalog.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5c0c066ceaaa675269fdfb5e14a21fd9d91541662ee47604883375e9b048c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/providers/catalog.ex:957-963 | lib/optimal_system_agent/workspace/trust.ex:488-493 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a6ed95984dee102b65bcaa2aa3b8e857a1245352cd295fc2c050b59061337c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:574-578 | lib/optimal_system_agent/providers/copilot_cli.ex:455-458 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ae1a4bfac602a19c848733fb285e5dd00adf7b75af1dc1e6a0ae0284d730f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/providers/cohere.ex:136-140 | lib/optimal_system_agent/providers/google.ex:569-573 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cohere.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31f572060c2c2dfdfb5b3ae54fa6b5cfea495eb3e5b0250ac4c9c178079014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/security/attack_path.ex:109-112 | lib/optimal_system_agent/security/traffic_ingest.ex:15-18 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_path.ex"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"949becd5d265579e37d236cd4dc33ee4909b7ea71a95655611790428eb70205e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/optimal_system_agent/speculative/executor.ex:147-149 | lib/optimal_system_agent/team.ex:256-258 | lib/optimal_system_agent/workspace/session.ex:116-118 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/speculative/executor.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb1446fc2b362321642a8b940170fbccda7eace0d3862c5d7d4b4f9b9c0f92d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex:648-651 | lib/optimal_system_agent/tools/builtins/file_grep/backend.ex:245-248 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"969ca39cc834e451672b9ef1aa97b57c4acb2cda4fb00d1436aba203e71264d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/tools/builtins/create_agent/prompt.ex:11-25 | lib/optimal_system_agent/tools/builtins/list_agents/prompt.ex:11-25 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_agent/prompt.ex"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04fc8aff6071838bbb5a865f4e6b9c86b04a74e3e0b4af75f38935d01324bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/file_transform/prompt.ex:34-40 | lib/optimal_system_agent/tools/builtins/file_write/prompt.ex:17-27 | lib/optimal_system_agent/tools/builtins/structural_edit/prompt.ex:13-23 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_transform/prompt.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"07403303c7575a0d0b70c9b26eaeebed05d4a7bf5b0b56b2ae24b98b0ebc4641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/optimal_system_agent/tools/builtins/peer_claim_region/prompt.ex:13-27 | lib/optimal_system_agent/tools/builtins/peer_negotiate_task/prompt.ex:11-25 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/peer_claim_region/prompt.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba60838b55b928a3f9377d23dc6598636173ee5a44def8a76fbcd1155663e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/tools/builtins/push_notification/handler.ex:266-269 | lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex:113-116 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/push_notification/handler.ex"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17b0d02e4a22743c33b4b2cd261ba47df2a1dffd753ab2b88bf034ea540c743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): lib/optimal_system_agent/tools/builtins/task_resume/prompt.ex:11-25 | lib/optimal_system_agent/tools/builtins/task_stop/prompt.ex:11-25 | lib/optimal_system_agent/tools/builtins/task_wait/prompt.ex:11-21 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_resume/prompt.ex"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfba07dd231a8876a21c9d82cefee3577421a6785af8cd7ea984acbaf7231cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): priv/rust/tui/src/components/task_checklist.rs:125-129 | priv/rust/tui/src/components/tasks.rs:38-42 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/task_checklist.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9b49e9b8ecc8819419ec9a2a473cd995e101108bdaaf0cc733b125db3e2317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/fleet.ex:1381-1384 | lib/optimal_system_agent/orchestrator.ex:3605-3608 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc54b27bc34af4a6695979a9fecdc364b28e63dba0b1375f77057d081dd3028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/auth/login_broker.ex:332-334 | lib/optimal_system_agent/channels/http.ex:754-756 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/login_broker.ex"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"010c6020d0ade4bd89b9c1c4369e43ae0f473c95d5f32bb5410ad153b6723cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 4\u002B corresponding lines): lib/optimal_system_agent/channels/dingtalk.ex:42-45 | lib/optimal_system_agent/channels/email_channel.ex:48-51 | lib/optimal_system_agent/channels/feishu.ex:53-56 | lib/optimal_system_agent/channels/line.ex:49-52 | lib/optimal_system_agent/channels/matrix.ex:46-49 | lib/optimal_system_agent/channels/signal.ex:65-68 | lib/optimal_system_agent/channels/wecom.ex:44-47 | lib/optimal_system_agent/channels/whatsapp.ex:61-64 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"62647c26d4bb9fd4145fb9d96cb1c28ac0687267a815e0d3c1a92dd48051ec0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/memory.ex:553-554 | lib/optimal_system_agent/memory/store.ex:394-395 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory.ex"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4841ffe14cea35bf6d51f0034a58b29bc3d37e88bae1d2543b482d418365dd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/os/process_group.ex:258-260 | lib/optimal_system_agent/system/erlexec.ex:96-98 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/os/process_group.ex"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aaf2361f74323624a8e4926ad37a1c257ed5ac7665dc13fd48d6e4b3c17043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/ollama.ex:984-987 | lib/optimal_system_agent/providers/openai_compat.ex:1819-1822 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1142c1429a0226271d53938721043613956b1a7179471d3278def4e4e3b3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/providers/ollama.ex:1906-1912 | lib/optimal_system_agent/providers/registry.ex:2609-2615 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"757361c94c17f9af30c343159dbc89f26330b58b62986eab0c112807c5dde791"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/providers/xai_models.ex:254-257 | lib/optimal_system_agent/providers/zai_models.ex:373-376 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/xai_models.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b40b9ce0bf8a3b33c3c152cacae9efa4cdb93b6432a0c0abf7d2bcd1b81fddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/teams/agent_state.ex:87-91 | lib/optimal_system_agent/teams/manager.ex:474-478 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/agent_state.ex"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"548539e5482a2903cdaea0112f86532668067045e4d6c890f19a4a7262cc1428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/tools/builtins/download/handler.ex:121-121 | lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex:135-135 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3874a70a0124151dece713ce65a8adf57630c0fe65fd49cdf1750d01bfedd148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/attendance.ex:317-319 | lib/optimal_system_agent/tools/builtins/send_message/handler.ex:196-200 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8977817ebfbd792d1e4f0f4c23228b9a4bf14f2ec332d7ec52bb95ce0eb209b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): lib/optimal_system_agent/agent/loop/context_collapse.ex:22-36 | lib/optimal_system_agent/providers/fallback_chain.ex:584-606 | lib/optimal_system_agent/sandbox/miosa_cli.ex:269-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/context_collapse.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f301c3d2c31931372caa2ccfd03bd8dc16ecae250c83e15f963339255ea16ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): lib/optimal_system_agent/conversations/tools/spawn_conversation/handler.ex:25-26 | lib/optimal_system_agent/tools/builtins/create_skill/handler.ex:23-24 | lib/optimal_system_agent/tools/builtins/file_edit/handler.ex:39-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/tools/spawn_conversation/handler.ex"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf93224a777fb92cfb88dfe1d78cba519ce98a97b0bab71a31fb01ad16ffd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/providers/resilience.ex:183-184 | lib/optimal_system_agent/providers/retry_classifier.ex:453-454 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/resilience.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9092629069d05595cf9746b46908502ec6c1ca6fdd6d5e8adc18adac65c791e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex:124-125 | lib/optimal_system_agent/tools/builtins/multi_file_edit/ui.ex:14-20 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f37f4b79ae7f92cdf5b0d8ee3251cca1ff08b0f442428f020926275f4d55b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 3\u002B corresponding lines): lib/optimal_system_agent/agent/compact_restore.ex:281-283 | lib/optimal_system_agent/agent/context_discovery.ex:152-157 | lib/optimal_system_agent/agent/project_instructions.ex:312-317 | lib/optimal_system_agent/agent/worktree.ex:228-233 | lib/optimal_system_agent/fs_checkpoint/server.ex:560-562 | lib/optimal_system_agent/repo_map/git_state.ex:90-93 | lib/optimal_system_agent/tools/builtins/exit_worktree/handler.ex:253-258 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"194237ff40ab15413b5a7b9ca2b10a3c263eaaef73c2f5e8dc3a0e0ac04951a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/compactor.ex:423-424 | lib/optimal_system_agent/tools/builtins/file_read/spans.ex:157-158 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbeaf9f52a52aaf5ebe771c9f1e978a00fa3340425ac19ac7bceaa1aac095478"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/agent/loop/message_handler.ex:233-236 | lib/optimal_system_agent/agent/loop/tool_result_storage.ex:488-492 | lib/optimal_system_agent/bench/workspace.ex:165-168 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/message_handler.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b55404116398386826f184d5f68d601019684809ec15b3c2f36cc2a9fbd8051"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/session_persistence.ex:538-540 | lib/optimal_system_agent/channels/http/api/mcp_routes.ex:206-208 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e3dcc097239901ea82fd028ef5dde9c64ec5467af5fc89457a8a7760353bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): lib/optimal_system_agent/channels/http/api/agent_state_routes.ex:64-65 | lib/optimal_system_agent/channels/http/api/dashboard_routes.ex:69-70 | lib/optimal_system_agent/events/tui_forwarder.ex:137-138 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_state_routes.ex"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"68da27a1e06987820f68a31f08441c84dd3d18c2edca7084184085f7b51d8be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/optimal_system_agent/providers/cache_attribution.ex:633-636 | lib/optimal_system_agent/security/action_reviewer.ex:233-236 | lib/optimal_system_agent/security/exploit_oracle.ex:267-270 | lib/optimal_system_agent/security/finding_skeptic.ex:167-170 | lib/optimal_system_agent/security/validation_result.ex:307-310 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a528a06b0ef99e677b62bb75fe80bbb7eb489de36cf1bde1576922693f4fe8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/workspace/project_resource.ex:234-235 | lib/optimal_system_agent/workspace/trust.ex:256-257 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/project_resource.ex"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"77894ed1f497df51ec01fcf052abdc225e446c35800ad53ba04d785359648c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): priv/rust/tui/src/app/commands.rs:1189-1194 | priv/rust/tui/src/app/handle_actions.rs:1597-1602 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a396490272f0658e88213dbd4060cf01c53bb45a65968d16511f51fadfaf2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): canopy/backend/lib/canopy_web/controllers/comment_controller.ex:43-50 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:189-195 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/comment_controller.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38d2328be33fa954629bb07abce7e39c896f9b85aa6933a745599313cab8260"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/miosa/shims.ex:74-80 | lib/optimal_system_agent/tools/instruction.ex:34-40 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/miosa/shims.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"273b697ece11d1b6f21354404ff50ca08ee2994be75b083964608cf0563a0263"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/miosa/shims.ex:950-952 | lib/optimal_system_agent/budget/budget.ex:467-469 | lib/optimal_system_agent/budget/treasury.ex:305-307 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/miosa/shims.ex"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f2469f24b23ccf9e83e7c6070d12ddd5a6b0636bc22213a427b4c89be4c84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/compactor.ex:485-488 | lib/optimal_system_agent/providers/history_sanitizer.ex:335-338 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9795868bfb01e6f464a457e8b49cc541e314833548139e6e620db9c98d129ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): lib/optimal_system_agent/agent/fleet/journal.ex:74-74 | lib/optimal_system_agent/agent/loop/goal_tracker.ex:1881-1881 | lib/optimal_system_agent/agent/memory/episodic_store.ex:392-392 | lib/optimal_system_agent/workspace/fast_worktree.ex:555-555 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet/journal.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a9a75158a4e7b65c1a07e070c4b4955f0f5b13de527c2bd19da82f10b4ab6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): lib/optimal_system_agent/agent/loop.ex:2724-2727 | lib/optimal_system_agent/agent/loop/checkpoint.ex:722-725 | lib/optimal_system_agent/agent/tasks/tracker.ex:721-724 | lib/optimal_system_agent/learning/pain_event.ex:95-100 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dccab950852cf0c291a736bbdcd342851dbcb78250b034b8332193d3ff56cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/loop/goal_verifier.ex:2200-2203 | lib/optimal_system_agent/security/call_chain_analyzer.ex:609-612 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":2200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a85e3078a033bc9f100921235b24351a00f0d9f03c1bead04b948f435783ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): lib/optimal_system_agent/agent/loop/reasoning_watchdog.ex:292-294 | lib/optimal_system_agent/agent/loop/regulation/pain.ex:365-367 | lib/optimal_system_agent/channels/cli/format.ex:37-39 | lib/optimal_system_agent/providers/error_catalog.ex:726-728 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/reasoning_watchdog.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae10d7db8c93d7d22219cfdd5e5581a20aa6829d440a0f91858de130eeee4d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/loop/spot_check_auditor.ex:489-492 | lib/optimal_system_agent/agent/progress_ledger.ex:338-342 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/spot_check_auditor.ex"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"53819a94e20b8f66bc6ab36e9bfb62596eef86dee052f295e7b965e826c33edf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/agent/safety/command_variants.ex:392-392 | lib/optimal_system_agent/tools/builtins/shell_execute/parser.ex:583-583 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/command_variants.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c7fe59bf617722f2f372123ec8272f331797242308b2d044fcdd8c37d10654"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): lib/optimal_system_agent/agent/step_snapshot.ex:346-349 | lib/optimal_system_agent/command_center.ex:206-211 | lib/optimal_system_agent/healing/orchestrator.ex:95-98 | lib/optimal_system_agent/security/login_session.ex:79-84 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/step_snapshot.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"507d99645e154f179874126573c05eb2d6992966c1db9cdc6429f0367ac2b4b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/optimal_system_agent/agent/step_snapshot.ex:475-478 | lib/optimal_system_agent/providers/batch.ex:353-356 | lib/optimal_system_agent/security/anomaly_queue.ex:174-177 | lib/optimal_system_agent/security/class_queue.ex:181-184 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/miosa.ex:172-175 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/step_snapshot.ex"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"68acb01f126d02404afb8956938aecf6ecc6ba1a9caf2adc073a50697036cab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/worktree.ex:155-157 | lib/optimal_system_agent/tools/builtins/enter_worktree/handler.ex:153-158 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acba1d89648160381568a75f6207e610e6240c388f5e81598c8bba8b3ac153a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/auth/providers/minimax.ex:363-366 | lib/optimal_system_agent/auth/providers/qwen.ex:322-325 | lib/optimal_system_agent/auth/providers/xai.ex:116-119 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/minimax.ex"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7ddc119fb28dce1a753c80301c1e8733d275494a08ecfe12b44ebc6322bacb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/auth/providers/qwen.ex:274-277 | lib/optimal_system_agent/auth/providers/xai.ex:217-220 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab18257fa33fa13fa0dd217801843a4a2d48d3d6e9b1de9d84f3be5bb8165c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/optimal_system_agent/channels/email_channel.ex:404-408 | lib/optimal_system_agent/mcp/config.ex:307-311 | lib/optimal_system_agent/mcp/protocol/messages.ex:362-365 | lib/optimal_system_agent/providers/reasoning_content.ex:115-118 | lib/optimal_system_agent/utils.ex:278-281 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/email_channel.ex"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"82eeb6f5f863f0f9d3afd8defe56f831c7eba9d8f7c25e05e449344a618f82e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/conversations/tools/spawn_conversation/handler.ex:157-160 | lib/optimal_system_agent/memory/learning.ex:364-367 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/conversations/tools/spawn_conversation/handler.ex"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f902db3d40c33a2034b12242071384b5fd834384a75407b72b6ac36399c98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/mcp/plugin_manifest.ex:455-457 | lib/optimal_system_agent/tools/registry/skill_loader.ex:172-176 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/plugin_manifest.ex"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"54271d7610b7864142b74f1b3dd8d67faf4757db29eb625bb5b8f2e28625f30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/mcp/transport/stdio.ex:392-395 | lib/optimal_system_agent/system/memory_monitor.ex:156-159 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd85c70b3fa7899f3ebf1196d1423f2597db148295377d97efb3011f1186d551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:500-502 | lib/optimal_system_agent/providers/copilot_cli.ex:515-517 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4501511e98942310a36740a9ac456075a83a72a4ae4b41b90b4c4a6e53e14f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/providers/ollama.ex:1869-1869 | lib/optimal_system_agent/providers/openai_compat.ex:1636-1636 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c01c92a5c43cd9c03e0dfeb47672f5ddff50a168437aa1cc9e6bfc1a591d5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/providers/openai_compat.ex:1049-1053 | lib/optimal_system_agent/providers/openai_responses.ex:537-541 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"391244b418f959e5a4761f378582bc075f812284e7777b94970e071c3c8cf351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): lib/optimal_system_agent/repo_map.ex:561-563 | lib/optimal_system_agent/security/http_replay.ex:326-328 | lib/optimal_system_agent/security/proxy_capture.ex:281-283 | lib/optimal_system_agent/security/shadow_graph.ex:111-114 | lib/optimal_system_agent/security/threat_intel.ex:210-217 | lib/optimal_system_agent/verification/upstream_verifier.ex:360-364 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map.ex"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd24c62feb71cc487d84459ce55f1750a63bb2d99d0b6da0f38963c153840606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): lib/optimal_system_agent/security/http_replay.ex:242-245 | lib/optimal_system_agent/security/recon_ingest.ex:274-277 | lib/optimal_system_agent/security/roe_guard.ex:227-230 | lib/optimal_system_agent/security/traffic_ingest.ex:103-106 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/http_replay.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b67a2b52a4641ffb7e3cefe6b3868837b015a60e826e48547c196fe63b14f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/tools/builtins/multi_file_edit/ui.ex:38-45 | lib/optimal_system_agent/tools/builtins/structural_edit/ui.ex:33-35 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/ui.ex"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"882e8b5d7297c8a3ee61361a574034d4134efdcd972c4d164ac7d1857944f018"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/action_authority.ex:76-77 | lib/optimal_system_agent/agent/loop/durable_log.ex:268-268 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/action_authority.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a9c922004d009c65bde56bca47704672106089277fbfe104b26936912538b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/active_skills.ex:37-40 | lib/optimal_system_agent/providers/ollama.ex:52-55 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e66533556d4f9afbf984519d81bbeec5ed6ac4b2ead0f7b36af9160617dc54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/active_skills.ex:214-215 | lib/optimal_system_agent/agent/session_health.ex:92-93 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d73b6609dd77a895fe9b6d7f3046c4fcaa6609fc58438da48048c491446a26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/loop.ex:1155-1157 | lib/optimal_system_agent/agent/subagent_cloud_policy.ex:56-59 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b669dfa94b3112c9080f5f21f3530419129673f14d89af43512be8d0f05a430d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/loop/checkpoint.ex:738-740 | lib/optimal_system_agent/scratchpad.ex:246-252 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f379e4cd854af0d0446a539301f25a272e9599881212d189699eed220283549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/loop/verification_evidence.ex:354-357 | lib/optimal_system_agent/providers/retry_classifier.ex:435-439 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dccf616f95eb507f4decce0b2c2561fbe3530888a9e76e7d6693df90919d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/agent/permission_mode.ex:151-159 | lib/optimal_system_agent/agent/run_store.ex:1313-1322 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe03bf87068b7d99379d9ece83a266e7f8cc899fb4dc4118ce4d9da5ad10e747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): lib/optimal_system_agent/agent/pricing.ex:376-376 | lib/optimal_system_agent/providers/anthropic_models.ex:429-429 | lib/optimal_system_agent/providers/registry.ex:2043-2043 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ab6d4cf5760a7445a142ef5432d0c89c3db34f8796648986f55f40e2917cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/safety/model_classifier.ex:201-204 | lib/optimal_system_agent/permissions/auto_classifier.ex:430-433 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fb79acd4f08daaa594f2b6941ecc50c6f9ca39f41a754f01ba9d880de60ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/agent/safety/model_classifier.ex:391-391 | lib/optimal_system_agent/permissions/auto_classifier.ex:466-466 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d31e542592e41f35c2181e9372c17283dea24ec2446f9253fd880269cf018d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/agent/scheduler/sqlite_store.ex:23-29 | lib/optimal_system_agent/system/erlexec.ex:117-128 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/sqlite_store.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52a4172a93b42869af86ea2054bc0ad7853d5d890133fb416dc71b8919b1265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/task_brief.ex:249-252 | lib/optimal_system_agent/config_file.ex:172-175 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_brief.ex"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"989d1029d52bae4cfcf7e78313766415573bae66b46ea72042625cc98b49054b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/cli/setup.ex:356-359 | lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex:196-202 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ce1478540a89f1c2d2bd3f50f590f9fe5f496cd756cf247e0e7ad167d513f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/decisions/pivot.ex:218-221 | lib/optimal_system_agent/tools/builtins/rollback/handler.ex:64-67 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/pivot.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff177e2680d162abbc053f40ce5f2e56f21a4238ef77b4365e81c40ae10f7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/net/port.ex:131-134 | lib/optimal_system_agent/usage.ex:366-369 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/net/port.ex"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b6cdc60559eb0265f784afa7bb46819abe79b0450b3a7c5a7fa55ef2da0ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:164-167 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:166-169 | lib/optimal_system_agent/open_computers/executor/direct/desktop/x11vnc.ex:189-192 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c274627bc30a5c511a419e4d8a5d7fde190f63d8246de08e96d2e478ee97cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/orchestrator.ex:2030-2034 | lib/optimal_system_agent/tools/builtins/send_message/discipline.ex:174-176 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f803f41f23d993b83990d29794c4b0fb05479ec41b260c923d3fb73ade12bdb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): lib/optimal_system_agent/peer/negotiation.ex:372-374 | lib/optimal_system_agent/security/http_replay.ex:107-112 | lib/optimal_system_agent/speculative/executor.ex:136-138 | lib/optimal_system_agent/workspace/session.ex:126-128 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/peer/negotiation.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b086be6cdc55c3eadda0cf88d6f02cc00c36f97497ecd1b40f1cce6f059988c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/repo_map.ex:374-374 | lib/optimal_system_agent/workspace/fast_worktree/populate.ex:328-328 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map.ex"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"0889d8d256de6d462e4c73725edde49f463083aea4d0c460334682d87c962567"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/fleet_resumer.ex:293-296 | lib/optimal_system_agent/tools/builtins/rollback/handler.ex:71-74 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet_resumer.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da328233642bf93b09fc93121cd0e58eb3bb834a089184b003cbf1e436bb5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/agent/loop/checkpoint.ex:732-734 | lib/optimal_system_agent/agent/rewind.ex:318-320 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6951880bd7a2eb187182a81fbd0d5b995adc3f5a6fd9a8da3c7d3e2b3f07e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/agent/loop/message_handler.ex:270-270 | lib/optimal_system_agent/tools/builtins/file_read/magic.ex:69-70 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/message_handler.ex"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21b51aa1fd1e495a8f67b03057b71a41c1e009df7da444b8b71605abea1a564"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/agent/loop/permission_broker.ex:187-191 | lib/optimal_system_agent/permissions/ask_flow.ex:76-80 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/permission_broker.ex"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e6165f5cf550893571a63b3d29560954860c2ebe3776d214c4dea2552fadfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/task_tracker.ex:613-614 | lib/optimal_system_agent/agent/tasks/persistence.ex:126-127 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"773daaa69ffd8abcb6d0176221e1fdc1690c12315a0d7567594aa5696c125b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/tasks/workflow.ex:373-376 | lib/optimal_system_agent/agent/workflow.ex:475-481 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e1f56a0028d12817a1d0ad91b7fcd9137c889d9aab2ed8b3f65216ee8eb1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/optimal_system_agent/auth/providers/copilot.ex:346-349 | lib/optimal_system_agent/auth/providers/minimax.ex:379-382 | lib/optimal_system_agent/auth/providers/openai_codex.ex:487-490 | lib/optimal_system_agent/auth/providers/qwen.ex:338-341 | lib/optimal_system_agent/auth/providers/xai.ex:263-266 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe709201ef4846a1b94dd27a78edcd222b42224dc32ed97dd54941c51e6c1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/channels/cli/commands.ex:2049-2051 | lib/optimal_system_agent/tools/builtins/send_message/discipline.ex:185-189 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"997bece4fd6b048c85a766c7cf33d80c9631a11a7e9f2bf2de6726f98e326fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): lib/optimal_system_agent/channels/cli/renderer.ex:342-344 | lib/optimal_system_agent/cli/doctor.ex:635-637 | lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex:219-221 | lib/optimal_system_agent/repo_map/git_state.ex:83-86 | lib/optimal_system_agent/workspace/fast_worktree/capabilities.ex:102-104 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ef5dff3b3e33dd430ad0d82dc486e696b8a64462deed29f498f0e6f7083559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): lib/optimal_system_agent/channels/http/api/memory_routes.ex:97-97 | lib/optimal_system_agent/events/tui_forwarder.ex:197-197 | lib/optimal_system_agent/observability/otel.ex:103-103 | lib/optimal_system_agent/skills/advisor.ex:116-117 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/memory_routes.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"75660dc4a5e9b16914833de5b103219267a965e2e264a485db6cc24e25cda100"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/onboarding.ex:1357-1360 | lib/optimal_system_agent/providers/surplus_models.ex:279-282 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe9a8a5e1ffb0b4542810f0759a24c8c4d542b6eebd95cb4d6a62f956a5e34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/providers/bedrock.ex:916-918 | lib/optimal_system_agent/providers/google.ex:587-589 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"214f89ba865ac1951e690865fe3a4f7d27bf69bf5295987d35c81dd6bc4ed1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/providers/claude_cli.ex:343-345 | lib/optimal_system_agent/providers/copilot_cli.ex:288-290 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbc88e1e7f1cd46261f16cbc9f5b565c1a016d9aa037be7620bc8728daef2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/security/evidence.ex:107-110 | lib/optimal_system_agent/security/oob.ex:504-507 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/evidence.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c571c876697b47f272c514a6e4f4725a8f38a1c19dffe8f4bc2d459230c5a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/skills/lint.ex:154-157 | lib/optimal_system_agent/tools/registry/skill_loader.ex:383-386 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/lint.ex"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6e8a937f957eed3adae7807143957323191c46a31afc9b40289751e19e535c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/optimal_system_agent/tools/builtins/security_intel.ex:604-610 | lib/optimal_system_agent/tools/builtins/wallet_ops.ex:53-59 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4003f918f18ecd650b2c7855c0f636681b305e96236dce2753eb6302ac6c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): canopy/backend/lib/canopy/budget_enforcer.ex:44-47 | lib/optimal_system_agent/security/class_queue.ex:170-173 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/budget_enforcer.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d8fdcdd0a2181509c676adfef6238ae5568c4a447942524b959e03fef3bf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): lib/optimal_system_agent/agent/context.ex:1170-1170 | lib/optimal_system_agent/agent/loop/regulation/homeostat.ex:200-201 | lib/optimal_system_agent/permissions/auto_classifier.ex:454-455 | lib/optimal_system_agent/providers/history_sanitizer.ex:264-264 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ec2b4642950e4e4c6ae324b94a52343bd70caf5dfc6c77aed1ab75af09c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): lib/optimal_system_agent/agent/durable_inbox.ex:189-189 | lib/optimal_system_agent/agent/memory/episodic_store.ex:350-350 | lib/optimal_system_agent/agent/session_persistence.ex:1043-1043 | lib/optimal_system_agent/bench/script.ex:89-89 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/durable_inbox.ex"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd30077499d1efdc82150989255b1de723e47a3ae51cc43dd9aa0a469f64db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/agent/execution_control.ex:228-229 | lib/optimal_system_agent/agent/loop/tool_discovery.ex:143-143 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/execution_control.ex"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c85d3c2564210c96c65a81bde3cf9b27d9f85b08290f8d85eb271816607034"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/optimal_system_agent/agent/loop/react_loop.ex:130-136 | lib/optimal_system_agent/mcp/discovery.ex:105-111 | lib/optimal_system_agent/soul.ex:452-458 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c647dcc4b4180a0958e3de07b33be76eb1d58a0def0b36626e0a366f45ebf1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/permission_mode.ex:74-80 | lib/optimal_system_agent/verification/upstream_verifier.ex:139-144 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca920bc46c8e4d23023d7170bef37aaab7c5c3df1b39965586a85bbb2bea082"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/agent/run_store.ex:461-466 | lib/optimal_system_agent/security/shadow_graph.ex:72-77 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d2c3d840b36298df19e40be03dadaf922adc85a3f6eb1a396647bfee2d5fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/agent/scheduler.ex:1039-1042 | lib/optimal_system_agent/workspace/topology.ex:651-654 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec16e83914406b7203e5074c9707c4b8d3d212cab9d5b91aec3f3fde84c319f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/optimal_system_agent/observability.ex:192-194 | lib/optimal_system_agent/tools/builtins/delegate/handler.ex:740-743 | lib/optimal_system_agent/tools/builtins/fleet/handler.ex:313-316 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/observability.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc7cda91e31b414554a0fc4683fe02d496a04ef34ae0a5fb27cfc1e36b74e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/open_computers/executor/direct/compose.ex:285-287 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:355-359 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/compose.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0491fd6a307e75d9df6317a0fdecd01134bab34c8991ac3ab9047c216c5b0193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/optimal_system_agent/protocol/context_refs.ex:76-84 | lib/optimal_system_agent/tools/builtins/task_resume/handler.ex:89-96 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/protocol/context_refs.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3308fa68276eedd149008ce6b104ccb58170dcc2e144c38da48dd3b75b5a9d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/optimal_system_agent/providers/image_budget.ex:657-657 | lib/optimal_system_agent/providers/ollama.ex:1203-1204 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d71d3d99dd6a0f2e69dee261c1972f92cb18b74cfce8bf2a350bb9cfcc42d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/mix/tasks/osa.setup.wizard.ex:722-725 | lib/optimal_system_agent/agent/session_persistence.ex:364-367 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"309fc3385ba563b4571e87ed5463af490ed8092c073398d30816befbc556cb2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/security/attack_path.ex:43-46 | lib/optimal_system_agent/workspace/cwd.ex:130-135 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_path.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e70e7ebf4af4135db4721c02fb59735e9f068114f55044fd0824cb8342760bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/agent/loop/llm_client.ex:771-772 | lib/optimal_system_agent/runtime/session_manager.ex:156-157 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"61accb2b979813bd02ea93e20fbe96c32d30f01be94056fb6422351b50b7b83b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/optimal_system_agent/providers/reasoning_content.ex:148-149 | lib/optimal_system_agent/security/proxy_capture.ex:204-205 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/reasoning_content.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4282fa555b6caa33dc4e174102fe6dc3baa893a45b1aee92c2a588fd8d2685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:171-210 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:173-212 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0a626eee292ffe44ae28a4b40846ccf11c97018437d70069940aa5c237cc1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201340 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:273-312 | lib/optimal_system_agent/providers/copilot_cli.ex:226-257 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/providers/claude_cli.ex:270\u0060 calls \u0060S\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex:223\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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341c264822c8ba7df92a894a05b9e7bf79702c75a49f11a57a00b44a9f77bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201336 lines \u00D7 2): lib/miosa/shims.ex:287-316 | lib/optimal_system_agent/signal/message_classifier.ex:96-131 \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":"lib/miosa/shims.ex"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d543622f4a9dbb929fe4811b84731b51ed94b90f0cfd70c1edf18719ca859740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:409-442 | lib/optimal_system_agent/agent/workflow.ex:515-548 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1fab673270a3010c40cd5162216268bdc55842014fc26ff9d1e284e355333f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201331 lines \u00D7 4): lib/optimal_system_agent/agent/scheduler/persistence.ex:24-27 | lib/optimal_system_agent/agent/scheduler/persistence.ex:55-58 | lib/optimal_system_agent/agent/tasks/workflow.ex:446-476 | lib/optimal_system_agent/agent/workflow.ex:552-582 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"lib/optimal_system_agent/agent/scheduler/persistence.ex"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"932a32208c1536b2c19a0ae5fb745bc99651038c51f234b041acf6bed1089bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): lib/optimal_system_agent/providers/ollama.ex:1567-1591 | lib/optimal_system_agent/providers/ollama.ex:1796-1823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71e5e853ed12a511bfe7a7f6ea11ec7d583f0a19d84bb95764cebbcf436c579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): lib/optimal_system_agent/providers/openai_compat_provider.ex:370-395 | lib/optimal_system_agent/providers/openai_compat_provider.ex:416-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/providers/openai_compat_provider.ex:395\u0060 calls \u0060maybe_extend_timeout\u0060, \u0060demote_non_leading_system\u0060 and \u0060lib/optimal_system_agent/providers/openai_compat_provider.ex:443\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat_provider.ex"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"be91f14c8b10ae05a001c2a53e97314b390548a271668c972cb4b54e07a821d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/optimal_system_agent/auth/providers/copilot.ex:437-463 | lib/optimal_system_agent/auth/providers/openai_codex.ex:595-623 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/copilot.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/auth/providers/copilot.ex:437\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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd485585fed9f92cf2dbf05f5a56e90b90e11f0191fc3e25e41d8436a7df5f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/optimal_system_agent/channels/cli/commands.ex:694-720 | lib/optimal_system_agent/channels/cli/commands.ex:1707-1733 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2523d6554ca0cb13d4a0165fbfbe440e5d185ff7149706bf88e6a533096bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): lib/optimal_system_agent/open_computers/updater.ex:347-369 | lib/optimal_system_agent/system/updater.ex:590-616 \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":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90078a46226d5f1cc4a97cdc8599868590fce54e37d5d680e713a8f67bc4737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:380-405 | lib/optimal_system_agent/agent/workflow.ex:485-510 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba4a2c693dbfb4fdb17d982d31c3390750f00b32cca276d55de6419f37367a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:169-193 | lib/optimal_system_agent/agent/task_queue.ex:364-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b350834dcbf899d988381495786ff8751917a77b38a6e83c5506ee24b95daad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): lib/optimal_system_agent/auth/device_flow.ex:333-357 | lib/optimal_system_agent/auth/providers/minimax.ex:552-571 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note 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":"lib/optimal_system_agent/auth/device_flow.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"17739803260f85b1bec2500bcea0d5d9e0041a7a2d6102a9eab67b188f0bed41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): lib/optimal_system_agent/open_computers/remote.ex:34-56 | lib/optimal_system_agent/open_computers/remote.ex:63-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/open_computers/remote.ex:34\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":"lib/optimal_system_agent/open_computers/remote.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8b0247545b1201c5937b422099a6c11adc4d18ea77bcc736b8bf1f8e6563ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): lib/optimal_system_agent/shell/background_task.ex:171-192 | lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:558-582 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_task.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"172f6b835ce0d03e348b3bfe02d1063e943660fb57deb25f09909a75adf9d213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/exit_worktree/tool.ex:34-58 | lib/optimal_system_agent/tools/builtins/file_read/tool.ex:38-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/exit_worktree/tool.ex:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/exit_worktree/tool.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b073631cba6f988a1b3f2d5c2226cb495141ab3ae11b8928acbcc922aee0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:250-272 | lib/optimal_system_agent/agent/tasks/queue.ex:149-170 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50071a0c6eb8bce35194d63ed00401d8af415fc7e1b53643fd5625903ddd68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:518-540 | lib/optimal_system_agent/agent/tasks/queue.ex:309-331 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_queue.ex:518\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/agent/task_queue.ex:548\u0060 calls \u0060put\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex:335\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"4418e639d7b850e3bd6777580013d6dd74d3b52f52b4c441e54675d6949e80ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 3): lib/optimal_system_agent/auth/providers/minimax.ex:430-448 | lib/optimal_system_agent/auth/providers/qwen.ex:412-431 | lib/optimal_system_agent/auth/providers/xai.ex:332-353 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/minimax.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/qwen.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/auth/providers/minimax.ex:430\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":"lib/optimal_system_agent/auth/providers/minimax.ex"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bbb05554e5d54da6a12c0932741f5148945628765efefff03a9a92222451be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:782-803 | lib/optimal_system_agent/agent/tasks/queue.ex:396-415 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac0ab4c02342788e1eb8bea0d55e79682887e1280f66cb4671bbf086411db80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201322 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:150-165 | lib/optimal_system_agent/agent/workflow.ex:290-311 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe07c5497008d9ba1300b74f5324f69a94fbdf9a736a9e85219de6d947ff29c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:152-173 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:181-202 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f4903a7001a59f3afd6cae5e043339c1b5834fe95367ec67dc6f2418ba58ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/optimal_system_agent/telemetry/metrics.ex:129-150 | lib/optimal_system_agent/telemetry/metrics.ex:159-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/telemetry/metrics.ex:129\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/telemetry/metrics.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a8c16a7d020344eddc0895b77c6836bbd1bfe500d72b2456065c85b99d44e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_read/tool.ex:52-72 | lib/optimal_system_agent/tools/builtins/scratchpad/tool.ex:48-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_read/tool.ex:52\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/tool.ex"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c0c3ee1b681d97d5740c3216bb79476797dfa5be88dd12061662ef01758515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/github.ex:35-55 | lib/optimal_system_agent/tools/builtins/shell_execute/tool.ex:57-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/github.ex:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3bc4a60d34fb308cd8fd9bc7635400e70a5193d44147edaf00784a9005810b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex:53-74 | lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:67-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7aa291a2cfbf6afe846638fdad1a7b341ecc61eb374910d7670b8d3dd278ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): lib/optimal_system_agent/agent/compactor.ex:1804-1822 | lib/optimal_system_agent/agent/compactor.ex:1908-1928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf5841f33b577990db0250827a714e964631a5df9383ae47affeea42443b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:292-309 | lib/optimal_system_agent/agent/workflow.ex:138-158 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/tasks/workflow.ex:292\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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"956859f7898c922e9264f6ae6f6b69ae292c30f4d8f051bdb34b4e758a09b0f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/optimal_system_agent/decisions/graph.ex:237-257 | lib/optimal_system_agent/decisions/graph.ex:275-295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecce297f711968c4bf7a7be2a357233908d77941e6095f2d8d745363e5be39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:76-95 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:106-125 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"70aa5ac71f0e9dd4cb984540254904920626c46d9230ef964c0e2f57c1972adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): lib/optimal_system_agent/agent/loop/goal_tracker.ex:1692-1707 | lib/optimal_system_agent/agent/loop/goal_verifier.ex:1990-2009 \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":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"646e797c5bb5bbbc0b32498de21688cf56843f839e121932410606ef36ce4dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 2): lib/optimal_system_agent/agent/loop/react_loop.ex:870-889 | lib/optimal_system_agent/agent/loop/react_loop.ex:1214-1227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/loop/react_loop.ex:870\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/agent/loop/react_loop.ex:866\u0060 calls \u0060drain_streaming_tool_blocks\u0060, \u0060get\u0060, \u0060put\u0060 and \u0060lib/optimal_system_agent/agent/loop/react_loop.ex:1212\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf6387e5c808db16cdf73c94699e928cabb387c6835998ce6c05a59655cf971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:436-455 | lib/optimal_system_agent/agent/tasks/queue.ex:87-101 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec0ab0706a88ba3b346e823a61819d7e1bf6a64f68500b76860b5b0930a9305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:606-625 | lib/optimal_system_agent/agent/task_queue.ex:757-776 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_queue.ex:606\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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd55e86a7504393375b9ac1897c8e1b7cb5acf97571e03e26e719cd25f7e3db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/optimal_system_agent/channels/cli/session.ex:538-557 | lib/optimal_system_agent/channels/cli/session.ex:590-609 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46a1358060cc69ebb5cd12acca5c53ec474c25840b30b060d6749919c60155a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:242-261 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:279-298 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9db77e35d97c96a39effe90732209157b6a449052fe3b66c7e282a85f5bef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:61-76 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:60-79 \u2014 \u0060lib/optimal_system_agent/tools/builtins/file_transform/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/task_write/tool.ex\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 7 separate duplicated blocks between them, totalling at least 122 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:61\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_transform/tool.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec0107bc19c24fce9b62896f18c8207df3fb70479b57058645e8781373da03b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/security_intel.ex:194-213 | lib/optimal_system_agent/tools/builtins/security_intel.ex:218-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex:194\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b6610e1500c0a75711e23a4bc2ae681d4c874a80acc13e2c6ecb8c12d9b909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:672-688 | lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex:735-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda2797ada722c89a95e5902485259d0a0e4e04b066377d7f0a9b06ff95f49ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201319 lines \u00D7 7): lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:37-53 | lib/optimal_system_agent/tools/builtins/diff.ex:37-47 | lib/optimal_system_agent/tools/builtins/expand_output.ex:55-72 | lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:37-50 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:54-72 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:43-59 | lib/optimal_system_agent/tools/builtins/save_skill.ex:42-58 \u2014 \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/file_grep/tool.ex\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 70 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_skill/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec4b886c6c3b4870bd9e9a62b333bddbf8f6b375bc09ce4aec07f1c89e4c02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:413-431 | lib/optimal_system_agent/providers/copilot_cli.ex:352-370 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b0f8efc86c766266e88ba5857839d88108877103079fc32da8ac2a4a7dbf31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201319 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/diff.ex:41-52 | lib/optimal_system_agent/tools/builtins/repo_map.ex:66-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/diff.ex:41\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/diff.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b587e16cdd85490162f29e646566c146088cbe3eeaadbb845c7c418f50399917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/github.ex:343-361 | lib/optimal_system_agent/tools/builtins/github.ex:389-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":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"73afda83157f94592a58d4ea06bbd2cbb01a06375b3104c72e55dbe06e78f4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/optimal_system_agent/tools/registry.ex:369-387 | lib/optimal_system_agent/tools/registry.ex:489-507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"79832b3123f16b3e3fb41880c453ec3ced88ecf4f1bad9726a652c7612ead3e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 6): lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:35-51 | lib/optimal_system_agent/tools/builtins/notebook_edit/tool.ex:53-68 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:35-51 | lib/optimal_system_agent/tools/builtins/peer_negotiate_task/tool.ex:35-51 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:35-52 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:36-52 \u2014 \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex\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 7 separate duplicated blocks between them, totalling at least 119 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"402c1e30fb4fd93df0e2a9bd13b8d5bbce41019fe3f249c06c7b20a67ce7e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/optimal_system_agent/agent/loop/react_loop.ex:1928-1944 | lib/optimal_system_agent/agent/loop/react_loop.ex:1954-1971 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/loop/react_loop.ex:1928\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"2366aacb333e7da903082aa718902d8a6331c17614936db8d4626651ff2def5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): lib/optimal_system_agent/agent/scheduler.ex:321-336 | lib/optimal_system_agent/agent/scheduler.ex:403-420 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/scheduler.ex:321\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":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"3006c1319a57b77d7bfa2bcdd4736966c253ac43c48d74183d51ac645678d8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:242-259 | lib/optimal_system_agent/agent/task_tracker.ex:280-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:242\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d5d79cc576d0437aa142ef7c48a0b142e93a7227f18759ac68af71e93bd90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/optimal_system_agent/channels/cli/session.ex:567-584 | lib/optimal_system_agent/channels/cli/session.ex:603-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/channels/cli/session.ex:567\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":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91a3ce8be070066c85217ee34665de525abf4a6256a7d005a7801f6d91dfb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/optimal_system_agent/providers/openai_responses.ex:62-79 | lib/optimal_system_agent/providers/openai_responses.ex:121-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_responses.ex"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b07bbb90fb25f5e4d1e61ff4311938228043f8f64373318d6950e4b98ae260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/delegate/tool.ex:142-158 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:162-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex:142\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":"lib/optimal_system_agent/tools/builtins/delegate/tool.ex"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3610595763b7162024bd52210912c5e0fa01ac05cb7088ae9f3f269d46e9b284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/download/handler.ex:65-82 | lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex:53-70 \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":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a1937604d6fb29a6870c08d30fb762be952abc398d10083a916aa08113a1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/enter_worktree/tool.ex:34-51 | lib/optimal_system_agent/tools/builtins/file_write/tool.ex:37-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/enter_worktree/tool.ex:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/enter_worktree/tool.ex"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6a6861d6529fe94d46cf0dac9b6355c3e8c66677e553ebadf672e5f90f4e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/knowledge.ex:21-38 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:38-55 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/knowledge.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/skill_manager.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/tools/builtins/knowledge.ex:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/knowledge.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfca5edd962696f2ebba3a0790b56a8f7b7e7931e85ae47d0b428411ca905b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 5): lib/optimal_system_agent/auth/providers/copilot.ex:313-328 | lib/optimal_system_agent/auth/providers/minimax.ex:338-352 | lib/optimal_system_agent/auth/providers/openai_codex.ex:463-478 | lib/optimal_system_agent/auth/providers/qwen.ex:295-310 | lib/optimal_system_agent/auth/providers/xai.ex:238-254 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/copilot.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/auth/providers/copilot.ex:313\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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1383deb48fff6cf5970a31693d8eb53cebdd0df6783c3d58872b653d28b018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 5): lib/optimal_system_agent/tools/builtins/file_read.ex:35-47 | lib/optimal_system_agent/tools/builtins/find_skill.ex:46-62 | lib/optimal_system_agent/tools/builtins/multi_file_edit/tool.ex:57-71 | lib/optimal_system_agent/tools/builtins/send_user_file/tool.ex:39-54 | lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:71-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_read.ex:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"75adf29920583a45fa037feaf35dde124921fee268f33f5b96850b4c8fc87593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/delegate/tool.ex:140-155 | lib/optimal_system_agent/tools/builtins/expand_output.ex:59-75 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:70-84 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:99-113 \u2014 \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/file_transform/tool.ex\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 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex:140\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/tool.ex"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aca4bec70cf229d0f0a06fe198c6e3d97a1d8b98047b3d7010ecf74484394e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/bash_output/tool.ex:44-59 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:73-89 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:102-117 \u2014 \u0060lib/optimal_system_agent/tools/builtins/file_transform/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/task_write/tool.ex\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 7 separate duplicated blocks between them, totalling at least 122 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/bash_output/tool.ex:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/bash_output/tool.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf005439c987d269d124bbc582d75c30ff28fb10d5fd18d150c5f2f15786366a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/code_symbols/tool.ex:40-56 | lib/optimal_system_agent/tools/builtins/exit_worktree/tool.ex:33-49 | lib/optimal_system_agent/tools/builtins/file_read/tool.ex:37-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/code_symbols/tool.ex:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/tool.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a28adb7950d34a9ba78a4720f7a9629e7b65918e4591dd30224cb24457582f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:47-63 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:43-59 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:48-64 \u2014 \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex\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 7 separate duplicated blocks between them, totalling at least 119 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:47\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c456528a1fee2c4cdc792a5d7004f0cb1990e1a0307b2168e56c0b4e71ac949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): canopy/backend/lib/canopy/adapters/bash.ex:38-54 | canopy/backend/lib/canopy/adapters/codex.ex:40-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy/adapters/bash.ex:38\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":"canopy/backend/lib/canopy/adapters/bash.ex"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1062b88ea6b49a63e1263aa591fff801f6469ca99113e4600eda313758b75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): lib/mix/tasks/osa.setup.wizard.ex:303-319 | lib/optimal_system_agent/cli/setup.ex:330-342 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mix/tasks/osa.setup.wizard.ex:303\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":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"75504570af4b04bfa0b615417fdaf2ff8d03d992cba3ef3f46e96a86eb980f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lib/optimal_system_agent/agent/compactor.ex:1797-1813 | lib/optimal_system_agent/agent/compactor.ex:2192-2206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/compactor.ex:2192\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd640e42fd485dc2fd9db74690ee623c84d400a46a45959e0f785ff15ae66826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:276-292 | lib/optimal_system_agent/agent/tasks/queue.ex:174-190 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a5a7067365b155c0f5a0f8a64f2665f8a7f44d62fe66e0a57f930ee3549f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): lib/optimal_system_agent/auth/providers/qwen.ex:386-402 | lib/optimal_system_agent/auth/providers/xai.ex:313-326 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/qwen.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/auth/providers/qwen.ex:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be1204cf3037fa0baf7c3e0bfb7df2ed998f7a1dbcaeafce409b281748b0046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lib/optimal_system_agent/providers/registry.ex:1297-1311 | lib/optimal_system_agent/providers/registry.ex:1331-1347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9583d5a5875c1a53c86f626f0b686117ab6ba2b271974acb39333de2b8c606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/browser.ex:41-57 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:130-146 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2a91ca91644b098eb3ea672c75cf46d2a31b990090481d69f38bbe9ca3b8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:62-78 | lib/optimal_system_agent/tools/builtins/pty/pty_wait.ex:53-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/tool.ex"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fed9b54c30e79873e268f735d6c4fd72c3ebe61e25b345f67aa91c04f727f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:74-90 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:84-101 \u2014 \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\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 69 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:74\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":"lib/optimal_system_agent/tools/builtins/computer_use/tool.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed714512eca375c0cc858d62ca01c077f18e3559fb779cf2414911330647eaa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/config/tool.ex:40-52 | lib/optimal_system_agent/tools/builtins/rollback/tool.ex:43-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/config/tool.ex:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/config/tool.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57a2ccbe2f247d40d501a37862637a8f034fcc341194d92b5d8de7ef0e34789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/save_skill.ex:53-68 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:71-87 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/save_skill.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/task_write/tool.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/save_skill.ex:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/save_skill.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e7fdc5023101fd58ad94c5439c0d7327d28431724def421ecdcbce05f69d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:45-60 | lib/optimal_system_agent/tools/builtins/save_skill.ex:50-64 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:51-66 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:68-83 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/save_skill.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:45\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_skill/tool.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b45b03edb7caba138e3b854b063da84b29e1686054c0b3b016bc2da6aa1847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/knowledge.ex:27-39 | lib/optimal_system_agent/tools/builtins/repo_map.ex:66-81 | lib/optimal_system_agent/tools/builtins/security_intel.ex:174-186 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:44-56 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/knowledge.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/tools/builtins/knowledge.ex:27\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/knowledge.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5fefdeb9facb40f1980842099bf73dd24df8519382893eec5f7791ed29f9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): lib/optimal_system_agent/agent/compactor.ex:1815-1829 | lib/optimal_system_agent/agent/compactor.ex:1921-1935 | lib/optimal_system_agent/agent/compactor.ex:2208-2223 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/compactor.ex:2208\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":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"81291a654f344095763cecaeaa83424e949118132bf3a6c4794bea172fb37eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): canopy/backend/lib/canopy/budget_enforcer.ex:154-169 | canopy/backend/lib/canopy/budget_enforcer.ex:204-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy/budget_enforcer.ex:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/budget_enforcer.ex"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"572379e2652ca58615f87e6db5b29e0a82268cc0e7ced1d6e661ee0b8674a1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:23-38 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:44-59 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"72885c895f17b4678ac9083555a1ea0a116efee9dcb984ee2ebdb53fabcf0908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/optimal_system_agent/agent/safety/model_classifier.ex:250-265 | lib/optimal_system_agent/permissions/auto_classifier.ex:301-316 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/safety/model_classifier.ex\u0060 and \u0060lib/optimal_system_agent/permissions/auto_classifier.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/safety/model_classifier.ex:250\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":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"38778814cc3e5d9b048824f8ac6730d35885506c94e0cdb2cddd42036c837c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:354-367 | lib/optimal_system_agent/agent/workflow.ex:758-773 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"066e723085d2920ea15cef37f15c4a572623e95c126f7a39724d02a780ad1026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:516-531 | lib/optimal_system_agent/agent/workflow.ex:628-643 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"4734175a5aebd7a8fe6a6c3808da067f367aca029f3fe066697f2cf27f4d8dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_read.ex:118-133 | lib/optimal_system_agent/tools/builtins/file_read/handler.ex:789-803 \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":"lib/optimal_system_agent/tools/builtins/file_read.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e85c58f918e019aaf9dc7cf0a14f5ab3cba47e491e4da206d229ef7e265c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/rollback/tool.ex:44-60 | lib/optimal_system_agent/tools/builtins/workspace_map.ex:74-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/workspace_map.ex:74\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/rollback/tool.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"79620309318173c2a747660e0af745a9589158436991129aa53e5fda1f50c45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:39-53 | lib/optimal_system_agent/tools/builtins/monitor/tool.ex:42-58 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:39-53 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:39-54 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:40-54 \u2014 \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/monitor/tool.ex\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 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:57\u0060 calls \u0060verdicts\u0060 and \u0060lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:56\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a5d81cf21cdb9fc18209525f87272ff2b316e1227acc95845ddbca8c3b69bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lib/optimal_system_agent/agent/tasks/workflow.ex:417-431 | lib/optimal_system_agent/agent/tasks/workflow.ex:453-467 | lib/optimal_system_agent/agent/workflow.ex:523-537 | lib/optimal_system_agent/agent/workflow.ex:559-573 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"1714ad1090059b1964047a843ece7b2b312e7c751821c13ec7eb1b0abc463e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): lib/optimal_system_agent/providers/google_models.ex:421-435 | lib/optimal_system_agent/providers/google_models.ex:439-453 | lib/optimal_system_agent/providers/xai_models.ex:394-405 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/google_models.ex:421\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":"lib/optimal_system_agent/providers/google_models.ex"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"98366f648645c3d8ca58cdf8525bac94649d3148792d7c50162cd7f56f314593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:201-215 | lib/optimal_system_agent/agent/tasks/tracker.ex:93-106 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ed08a61aeefd2fbeaf1500a4e4b738919d5db888bf64ec7ec0c028b1859df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/config/tool.ex:44-58 | lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:47-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/config/tool.ex:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/config/tool.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"285568bd7bfac6d8842089fd229272f84ef26db73d267ca25b380f7c7413d649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/repl/tool.ex:45-58 | lib/optimal_system_agent/tools/builtins/workspace_map.ex:68-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/repl/tool.ex:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/repl/tool.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a552e49004612f34d4d657de04bea961957e6261fca3fa6cdd05cbe61171fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201315 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:95-109 | lib/optimal_system_agent/tools/builtins/vault_sleep.ex:23-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:95\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":"lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c495597f43e1b9f36c127ad45a96f26df9e53980c8bb1e0f45c4cf82c0785a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/optimal_system_agent/tools/builtins/browser.ex:49-65 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:133-148 | lib/optimal_system_agent/tools/builtins/knowledge.ex:36-51 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:54-67 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:49-65 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:49\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":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"141f6aa88dfebdbe86a19d7af9c76b494fdf3aa5a10587606e3e275505e199be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/delegate/tool.ex:88-102 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:62-77 | lib/optimal_system_agent/tools/builtins/monitor/tool.ex:46-60 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:43-56 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/goal/update_tool.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex:88\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/tool.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec337d2559c568981daa6b9e7dc3bb2fa6c7adffb9bcf0783c6da99547e7db86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/optimal_system_agent/providers/anthropic.ex:168-181 | lib/optimal_system_agent/providers/cohere.ex:95-108 | lib/optimal_system_agent/providers/google.ex:176-189 \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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d8a2e97a7e89b96dd3564fb5846d714820b84a4f141327cd97f7cb33b3e5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/delegate/tool.ex:112-123 | lib/optimal_system_agent/tools/builtins/repo_map.ex:63-76 | lib/optimal_system_agent/tools/builtins/security_intel.ex:171-182 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex:112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/tool.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f893eed0f257eb086c7364c82419b746413b4c0810a4b7b78b7c6f661b226a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:152-165 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:19-32 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"936b301480e1c98c8f0d77a8fe28b547b27ebaa2f805585e3c629fb85c3b0127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/agent/loop/goal_tracker.ex:912-925 | lib/optimal_system_agent/agent/loop/goal_tracker.ex:970-983 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b82a9b2a0c5d18d36d000f9428c626a4d59a4c832372e8e3913d2cbb32bd0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/optimal_system_agent/agent/workflow.ex:242-254 | lib/optimal_system_agent/agent/workflow.ex: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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/workflow.ex:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/workflow.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc05cdd7c910103acdeb07a5d6d89ff738931f45c7889039b13c6f017c341b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/cli/update.ex:33-46 | lib/optimal_system_agent/cli/update.ex:55-68 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/cli/update.ex:54\u0060 calls \u0060puts\u0060 and \u0060lib/optimal_system_agent/cli/update.ex:32\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b693b341fab20ff0dc4e7e6101f257eb9b2aac2023f8dfc69c46f492c7ea9963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/decisions/merge.ex:134-147 | lib/optimal_system_agent/decisions/pivot.ex:157-170 \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 \u0060lib/optimal_system_agent/decisions/merge.ex:134\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":"lib/optimal_system_agent/decisions/merge.ex"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abde74d2885b8cad8d9da870d47a1b0c5eb03c8a2cd63083c2f7dd9d435004a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:221-234 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:245-258 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"82620d9b1571a0ffd3b1b47db35594ffb5ab4bf375eb5572f8d74f768df1756d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/providers/openai_compat.ex:620-633 | lib/optimal_system_agent/providers/openai_compat.ex:650-663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31dbdf20ace1a6ad82755966a6f43f4012976a4d525e432d316dc29f5acc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/settings.ex:606-619 | lib/optimal_system_agent/system/json_store.ex:58-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/settings.ex:606\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/settings.ex:604\u0060 calls \u0060strip\u0060 and \u0060lib/optimal_system_agent/system/json_store.ex:57\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bea62b9adfa274bca216f4192755855e33c39fb0a662742479f65a395a2dfd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:506-519 | lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:554-567 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:554\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf14dd6d5fa2f5e614f138beecdb9f79bf4d70da3146ec1bc3ae6a84fd804d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/memory_recall/tool.ex:37-50 | lib/optimal_system_agent/tools/builtins/memory_save/tool.ex:37-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/memory_recall/tool.ex:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/memory_recall/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a44463755e17d83be1d8431ee8dc5c0d9efc755b748ff474d842602d4e970a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/scratchpad/tool.ex:41-54 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:36-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/scratchpad/tool.ex:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/scratchpad/tool.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e629d6e62e798e6a8e5b5a69e4ed58e58d2dbffc19b8787800e04428ba5dbf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): lib/optimal_system_agent/tools/builtins/browser.ex:48-63 | lib/optimal_system_agent/tools/builtins/code_sandbox.ex:79-93 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:132-146 | lib/optimal_system_agent/tools/builtins/knowledge.ex:35-49 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:53-65 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:48-63 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9932d8882a729e21e84381198ac1ea05c23aff7e36f1d00b1cd27c862d12be61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): lib/optimal_system_agent/tools/builtins/browser.ex:43-58 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:132-147 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:65-77 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:64-80 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:44-59 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/delegate/tool.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19471b8bcb11210af5e55c1f9600f052bf2bb2bbf7d3cd4b52de39a3b361fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/optimal_system_agent/channels/discord.ex:202-214 | lib/optimal_system_agent/channels/slack.ex:220-232 | lib/optimal_system_agent/channels/telegram.ex:255-267 \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":"lib/optimal_system_agent/channels/discord.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc83b61d2f54d529645b4a3bda66cbf91b73db08611862891b86727d4c3bbf78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/agent/loop/llm_client.ex:509-521 | lib/optimal_system_agent/agent/loop/llm_client.ex:750-762 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"493352f5c35f2dcb3af52a811d55cee69a205a34c4a8b2ccb668629875358b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/agent/session_persistence/record_lock.ex:47-59 | lib/optimal_system_agent/agent/session_persistence/record_lock.ex:72-84 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence/record_lock.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"24054b5cda9db17d41a636014b881ef355ad663f0afaf9abb90cb2ecf7cf9ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:172-185 | lib/optimal_system_agent/agent/tasks/tracker.ex:53-65 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b766ecad6d2523ea1acd95ef2d90acf0c729f4c49c3b28d9c8300e67e17a9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:123-133 | lib/optimal_system_agent/agent/workflow.ex:255-267 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"72df7ebfbadf14e264417052641029db7842d1e33f46a72ba1efb6c6e46cfd2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/optimal_system_agent/context_mesh/keeper.ex:272-283 | lib/optimal_system_agent/context_mesh/keeper.ex:336-348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/context_mesh/keeper.ex:272\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":"lib/optimal_system_agent/context_mesh/keeper.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6804c258a2a1dce7a0ff92767ca7082b8f77d349acc9d725297bb06a9e72e08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/prompt_loader.ex:192-204 | lib/optimal_system_agent/soul.ex:764-776 \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":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b6e9c6d5b7679add88f19db25f534b8a7a5cf17a87c78991d24233060ff2db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/protocol/tui_schema.ex:257-269 | lib/optimal_system_agent/protocol/tui_schema.ex:356-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/protocol/tui_schema.ex:257\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":"lib/optimal_system_agent/protocol/tui_schema.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c777605dd7b032196f45990ec3da31f1c6e661cd8543645b13126e62b6ee1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:349-361 | lib/optimal_system_agent/providers/copilot_cli.ex:294-303 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/providers/claude_cli.ex:349\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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c17a586d258caff85872986d621dfaa527f396409928a244cae55af622f1004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/providers/ollama.ex:292-304 | lib/optimal_system_agent/providers/replicate.ex:117-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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5501b3f6619fc151391c10765c32cf4372248107abb845ea78b57923538e99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201313 lines \u00D7 2): lib/optimal_system_agent/providers/ollama.ex:572-584 | lib/optimal_system_agent/providers/ollama.ex:1774-1779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08ee2845128ab606296afd1a46d95b6087cfcace992f1bdeeb30db4060cd011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/providers/openai_compat.ex:110-122 | lib/optimal_system_agent/providers/openai_compat.ex:443-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/openai_compat.ex:110\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":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"422481d58b2c9944b052b9c359d3ed3c71d185d655921ab65e15553eac6367f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/tools/ablation/runner.ex:484-496 | lib/optimal_system_agent/tools/ablation/runner.ex:515-527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/ablation/runner.ex:484\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93f8b8906b5e2b72ba57a23ae7725c73645ea7f7bd5cd1da8db513f316b115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex:268-280 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:302-315 \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":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46b107ae6aab6b74cdac3eb0886bc8e4fec8934161d66d6a068bf6468e320ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:46-58 | lib/optimal_system_agent/tools/builtins/security_intel.ex:185-197 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/file_grep/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:46\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/tool.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cbe1b006f344678a46b1bebca42bfe8fe45eb520a36705f8f61d3a51f8b21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:388-400 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:484-496 \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":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b8a4795eb4eeed2e9c66957db842470c6d32b38f0c39bb830eab0f64b176ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/optimal_system_agent/providers/anthropic_models.ex:718-729 | lib/optimal_system_agent/providers/google_models.ex:482-493 | lib/optimal_system_agent/providers/openai_models.ex:318-329 \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":"lib/optimal_system_agent/providers/anthropic_models.ex"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b111720024abda280ee149b2de050f88cf76ad09e67120a17531e5b95670f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:42-53 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:66-77 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd38f36cfa785eb88bad75fb7c9466900535b0995743fd7f3faf1b4e3f4aac33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/document_controller.ex:50-61 | canopy/backend/lib/canopy_web/controllers/document_controller.ex:108-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy_web/controllers/document_controller.ex:50\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":"canopy/backend/lib/canopy_web/controllers/document_controller.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aa687fac90b61da1732fc6d862d5bdb070fa7ca190bcf1217a162940bcf01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/agent/loop/goal_tracker.ex:929-940 | lib/optimal_system_agent/agent/loop/goal_tracker.ex:986-998 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/loop/goal_tracker.ex:929\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/agent/loop/goal_tracker.ex:929\u0060 calls \u0060join\u0060 and \u0060lib/optimal_system_agent/agent/loop/goal_tracker.ex:986\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea33dde96b84216f05fb28ac43ec6ef4a74dd804cfa51534a7e92383595e7179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/optimal_system_agent/agent/loop/verification_evidence.ex:224-236 | lib/optimal_system_agent/agent/loop/verification_evidence.ex:309-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":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df6a5f0540913d323e42204775831638a8cb9128f06d81c7c66dc97a846c626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:400-411 | lib/optimal_system_agent/agent/tasks/queue.ex:69-79 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"21468186f6ad6017654ec8f87d44adef7bd7146d919aa26aaffd6ac1eb266db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:594-605 | lib/optimal_system_agent/agent/tasks/queue.ex:361-372 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_queue.ex:594\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/agent/task_queue.ex:606\u0060 calls \u0060db_error\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex:373\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6a1c4dd9dba6e71f041a4ae8f60f2280dfa51a6805136af512bac701d3a403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:635-646 | lib/optimal_system_agent/agent/tasks/tracker.ex:553-564 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:635\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b0286cd67cbeb7ae64e73b87e198c816608d4d24683b7a1ae7a581231c6e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:239-250 | lib/optimal_system_agent/agent/workflow.ex:370-380 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/tasks/workflow.ex:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c08f5215cb936b30a3815a4dfa269e7a8f6bed8e9f0e7571da79671728bd56c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:259-272 | lib/optimal_system_agent/agent/workflow.ex:390-403 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"430238ed99740f6735e058217e839058dc92ffa9d2526f8a789db2d3670f8928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:338-349 | lib/optimal_system_agent/agent/workflow.ex:729-740 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc1e0a416b2ce35482e1297798634d8eb084184cc1dde108baefc14454b2d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:535-546 | lib/optimal_system_agent/agent/workflow.ex:647-658 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2accce287d011bcefbb3cfa3f15bbd74e595c38aee27bec362bac634faef6b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/cli/opencomputers.ex:566-577 | lib/optimal_system_agent/open_computers/config.ex:108-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/cli/opencomputers.ex:566\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"776f480f91700a023dd023028957cde9d4397c7f4d41a1b57fcc251e97abbdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:254-265 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:48-58 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff01f73d3fcbc14cf9bff9c640dd24b3f5855df902b0f64488a0cdc71519c199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/protocol/tui_schema.ex:275-286 | lib/optimal_system_agent/protocol/tui_schema.ex:287-298 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/protocol/tui_schema.ex:275\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/protocol/tui_schema.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8959f3e2c71c430b542332ba9c3c374c4b077bcb95600a62162d4bfbfbcfae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/providers/batch.ex:149-160 | lib/optimal_system_agent/providers/batch.ex:174-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/batch.ex:149\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":"lib/optimal_system_agent/providers/batch.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc048b20af7cb65321cfcfcde68a7550c91cc39fe7850db60e2ac70de0d867b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/providers/openai_compat.ex:2012-2023 | lib/optimal_system_agent/providers/openai_responses.ex:399-410 \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 \u0060lib/optimal_system_agent/providers/openai_compat.ex:2012\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":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c19b816443a5fa41e7b1f7d4df48975725c9a48b479e1772366ab7111f978d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/skills/validator.ex:185-196 | lib/optimal_system_agent/tools/registry/skill_loader.ex:406-417 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/skills/validator.ex:185\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":"lib/optimal_system_agent/skills/validator.ex"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"45013e1dac95144c90011993c033ab31d666714003367698417adeb97092594e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex:233-244 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/remote_ssh.ex:271-281 \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 \u0060lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/docker.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae579907feae93947f36d1c1445fbd0eb4b5c582cbc8c634a01d249c2ba7f07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:50-61 | lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:99-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:50\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_skill/tool.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"839338b34a6e630379501352c4eb7522e333a12618da4f83c4ba3fad49dd990b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:59-69 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:86-96 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe932d41fe7d39a326e36a868e35f4332078986fce206b37bf546ce3150b104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/log_controller.ex:23-32 | canopy/backend/lib/canopy_web/controllers/log_controller.ex:34-44 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/log_controller.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bb788951ae57b29e2bf454c03f694653c0e6a017545a808fb247897e042450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:658-668 | lib/optimal_system_agent/agent/tasks/queue.ex:199-207 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"9971ab29222378c43e9ec2e753b7261fbc42c4942b6f73fb2d3d69bca0440e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:580-590 | lib/optimal_system_agent/agent/workflow.ex:744-754 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abbc62ce7cf0a9df4beb1760ff1b67db6ad988da20c8e328ca3fa540e8f54d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:594-604 | lib/optimal_system_agent/agent/workflow.ex:777-787 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"44198a8fbdea19199f10c3571b8ab5232770ca540aba7f7ec4eab647d5af7303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/auth/providers/copilot.ex:212-222 | lib/optimal_system_agent/auth/providers/openai_codex.ex:284-294 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/copilot.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15bf7f032091f4d55a531982db8cd02f06ebbcedfd464664fb71412956c7ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/providers/anthropic.ex:1088-1098 | lib/optimal_system_agent/providers/anthropic.ex:1155-1165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/anthropic.ex:1088\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f1938f13beefa6734222ec6bf512ae9f39620dd9737ae241de0cb66749943c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/providers/catalog.ex:673-683 | lib/optimal_system_agent/providers/catalog.ex:688-698 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/catalog.ex:673\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":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c0c1e1e4ea1460bcc839d0cbef29d0b2c43da8d721d7441a84086d56303eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/security/symbol_resolver.ex:272-282 | lib/optimal_system_agent/security/variant_analysis.ex:123-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":"lib/optimal_system_agent/security/symbol_resolver.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f4b00ed2fe9f644b1db4962b9633582fe52eb3c666b9962ee1521cdfc53d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): lib/optimal_system_agent/tools/builtins/browser.ex:48-63 | lib/optimal_system_agent/tools/builtins/code_sandbox.ex:79-93 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:132-146 | lib/optimal_system_agent/tools/builtins/diff.ex:41-50 | lib/optimal_system_agent/tools/builtins/knowledge.ex:35-49 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:53-65 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:48-63 | lib/optimal_system_agent/tools/builtins/repo_map.ex:66-82 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae4dfe62cf212717a182cad438b42b0039801edd9c1085a56f50cfe7048b03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:89-98 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:68-77 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:60-69 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:70-79 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:47-56 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:52-61 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:78-87 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/project_controller.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy_web/controllers/agent_controller.ex:89\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":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb14e746ef026813773c9047b105ec35cd71b5b603584115e91fb9459342d478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:64-73 | lib/optimal_system_agent/tools/builtins/pty/pty_wait.ex:54-62 | lib/optimal_system_agent/tools/builtins/security_intel.ex:199-207 | lib/optimal_system_agent/tools/builtins/security_intel.ex:223-231 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:64\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/tool.ex"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd65a39595f4f2c34ed6335615760751bc2cd9b380ee965707b68292430114e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/alert_controller.ex:127-136 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:16-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/alert_controller.ex"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9c7605d7a60631d8c0a98740f648cef841e87a1e02c17c7e2293ade06d7264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/agent/jailbreak.ex:183-192 | lib/optimal_system_agent/agent/voice.ex:198-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":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac9cf27a42550b52dcccf9c4b3c80ffc7ddeca413b85396e0747d2d0a0828dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/agent/loop/goal_verifier.ex:790-799 | lib/optimal_system_agent/agent/loop/spot_check_auditor.ex:417-429 \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 \u0060lib/optimal_system_agent/agent/loop/spot_check_auditor.ex:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c54482a9c21bed9e8072f2afb104ffd243e7bc76ce4a8657171566b0a076bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:494-503 | lib/optimal_system_agent/agent/tasks/tracker.ex:582-590 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"30246339f667ce2c72cc0d2fbf48c6ea404302fa709bd4866104cba8bb84d317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:618-627 | lib/optimal_system_agent/agent/tasks/tracker.ex:534-543 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_tracker.ex:618\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7af597062ce50a86553d4050b364e6b3591ebe8c960a136583df5f2ebf7497f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/healing/orchestrator.ex:317-326 | lib/optimal_system_agent/healing/orchestrator.ex:362-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/healing/orchestrator.ex:317\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":"lib/optimal_system_agent/healing/orchestrator.ex"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7978ee210dab25f375d7abf5144abb85cc0436bd372aa26ba5bdb83fd95800d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex:96-105 | lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex:126-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/clipboard.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aaa5a44a90fe98013ce3e7600093d58a32cb544798004580a4a5059ebb26dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:69-78 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:92-101 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa56635b4d57c9b19681481205b2a08dd43a7c9cc7e90b5939e66aee6f44b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/providers/catalog.ex:604-613 | lib/optimal_system_agent/providers/catalog.ex:638-647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/catalog.ex:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"025f75855ba2a5b3071b8d041d0af5a1dae4d169df06bdc302e929a70e4953be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:857-866 | lib/optimal_system_agent/providers/copilot_cli.ex:530-539 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3c2f7ea71a9393768539bbbbdcc219ba6eee30f0fcc55702bcb19c9662400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/providers/registry.ex:177-186 | lib/optimal_system_agent/providers/registry.ex:333-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":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a45509dfe29a65e2374c6edcacd8d8af15e13cfb3695afe0116ee6947ac4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/tools/ablation/runner.ex:326-335 | lib/optimal_system_agent/tools/ablation/runner.ex:439-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/ablation/runner.ex:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/ablation/runner.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aea7a2fc7a51c42487ad106a9ec603848b4841e9e58eaa602d521d9426e44ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/tools/registry.ex:335-344 | lib/optimal_system_agent/tools/registry.ex:1033-1042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ddfb05070da46287f6e43deb712c44b8fb1f765ced4d749faedda9e7edadae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): lib/optimal_system_agent/tools/builtins/browser.ex:47-62 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:131-145 | lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:47-62 | lib/optimal_system_agent/tools/builtins/diff.ex:41-49 | lib/optimal_system_agent/tools/builtins/knowledge.ex:34-48 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:43-58 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:52-64 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:47-62 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:48-63 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d18baf68836198c7adced57f7713f4c3c92acac4b8d5849187f436cc30f2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): canopy/backend/lib/canopy_web/controllers/goal_controller.ex:31-39 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:25-33 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:44-52 | canopy/backend/lib/canopy_web/controllers/template_controller.ex:23-31 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:28-36 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/project_controller.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060canopy/backend/lib/canopy_web/controllers/template_controller.ex:20\u0060 calls \u0060put\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex:28\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":"canopy/backend/lib/canopy_web/controllers/goal_controller.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05868e8903b99115403444e651e9b95403f81a4efab640045aaa4b2771b4a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:26-34 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:98-106 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:33-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy_web/controllers/agent_controller.ex:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad9b327744561e50da07a14ed2b3cb5b519bf03d9d834c435e100bc9673fb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): lib/optimal_system_agent/agent/loop/doom_loop/stall.ex:365-373 | lib/optimal_system_agent/agent/loop/regulation/homeostat.ex:216-223 | lib/optimal_system_agent/agent/loop/regulation/signals.ex:187-194 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/agent/loop/doom_loop/stall.ex:360\u0060 calls \u0060find_result\u0060 and \u0060lib/optimal_system_agent/agent/loop/regulation/homeostat.ex:213\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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68f281189d9115eb56d9c8714e60cf34d4e8dc29c4bd10ac8ec5be0b5101a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): canopy/backend/lib/canopy/workspaces.ex:94-102 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:173-181 \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":"canopy/backend/lib/canopy/workspaces.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb09bad9af2e1fccc3380280af272db101990282da7c9a1ef282aa4a6a6f13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/agent/safety/model_classifier.ex:171-179 | lib/optimal_system_agent/permissions/auto_classifier.ex:229-237 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/safety/model_classifier.ex\u0060 and \u0060lib/optimal_system_agent/permissions/auto_classifier.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/safety/model_classifier.ex:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca6a8a248ee25e9cc65a866d1109937cfa3bb26fe5d0fe22591245387aab0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/agent/task_queue.ex:506-514 | lib/optimal_system_agent/agent/tasks/queue.ex:299-307 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_queue.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/queue.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/task_queue.ex:506\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"1038d4c72e74f5ddbb820a5503ff403f54c94fb572d7ad34db07438a408b224e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/channels/http/api/cost_routes.ex:227-235 | lib/optimal_system_agent/channels/http/api/settings_routes.ex:90-98 \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":"lib/optimal_system_agent/channels/http/api/cost_routes.ex"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b52dbb5bb9f2c8675f15b16335786253913326bd170782c1f8ee4dab65bef8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/channels/http/api/webhook_verify.ex:31-39 | lib/optimal_system_agent/channels/http/api/webhook_verify.ex:70-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":"lib/optimal_system_agent/channels/http/api/webhook_verify.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"73da779ebe3aef0fcaccdd4f3049b28d4e7b1aef36a34df990af61262ef44817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/container.ex:742-750 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:775-783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e940b3b4b812d69d9b3f8eb0912843b806b7995c08e62c6f1d9dafd687e0e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/container.ex:745-753 | lib/optimal_system_agent/open_computers/executor/direct/container.ex:790-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb4f7162306bc6dbef806427210e5b19ad66054c36b929c21182572b6de6508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/fs.ex:190-198 | lib/optimal_system_agent/open_computers/executor/direct/fs.ex:219-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":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3728e24903f6345d8473f82579c3788eb3d78413db0763dfbc1f8a030a4a9b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex:241-249 | lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex:252-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":"lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afbeaac2f05fb24b087e24c4771e28e62b1ca7b5d3b14e5d0bb72a5dbdb7d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:323-339 | lib/optimal_system_agent/providers/copilot_cli.ex:268-284 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e26e0d2e3aa43e8bacb14e4617275601237dde1a33b3e677ac077d3b76628d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/skills/lint.ex:112-120 | lib/optimal_system_agent/tools/registry/skill_loader.ex:349-357 \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":"lib/optimal_system_agent/skills/lint.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39b1a3084553e91e203925d4058e2a0c6e6d4a7cfbe50dfb277d93475baa078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:415-423 | lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex:463-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"788dea96af1720023b997355293a885aa1e506593a94d5779aa1921405084986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/github.ex:191-199 | lib/optimal_system_agent/tools/builtins/github.ex:252-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/tools/builtins/github.ex:200\u0060 calls \u0060maybe_flag\u0060 and \u0060lib/optimal_system_agent/tools/builtins/github.ex:261\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf0d6906b4517afb591e4bdc2f1acc6b755aaea42d9e0e4e4deb570b76ac3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:276-283 | lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex:296-304 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex:276\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":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c261728f4f409e397f8cfe3c79ef53b412b386249f6bff27391b3b97c9f380da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/skill_manager.ex:56-69 | lib/optimal_system_agent/tools/builtins/vault_sleep.ex:25-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/skill_manager.ex:56\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/skill_manager.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ead2bae38934959d9a93f11e744e3aca26d10ebccfcfe1230d438d5fb3cd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/tools/registry.ex:324-332 | lib/optimal_system_agent/tools/registry.ex:1278-1286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a82fc6df53cb0d15884961f4884554765f0f98806a752411df559a1a05a52df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:48-61 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:54-67 | lib/optimal_system_agent/tools/builtins/structural_edit/tool.ex:97-110 | lib/optimal_system_agent/tools/builtins/vault_sleep.ex:24-31 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/skill_manager.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/create_skill/tool.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc439a4952b37be17aa791845a48b86de2cd9946d1ec74038ac21a6f602543c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): canopy/backend/lib/canopy_web/controllers/alert_controller.ex:129-136 | canopy/backend/lib/canopy_web/controllers/budget_controller.ex:60-67 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:18-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/alert_controller.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f07bc086795ad02cf3f91ccc3a30f4ea44ddcf96a23f08a358009222f225bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/optimal_system_agent/agent/safety/model_classifier.ex:251-258 | lib/optimal_system_agent/auth/providers/claude_cli.ex:216-223 | lib/optimal_system_agent/permissions/auto_classifier.ex:302-309 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/safety/model_classifier.ex\u0060 and \u0060lib/optimal_system_agent/permissions/auto_classifier.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"lib/optimal_system_agent/agent/safety/model_classifier.ex"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d8f62500d4ff6b3f81bfa1f99ced3d5b453c283f1e8ecd4c38d41e4a1aee4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/activity_controller.ex:9-16 | canopy/backend/lib/canopy_web/controllers/audit_controller.ex:11-18 \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":"canopy/backend/lib/canopy_web/controllers/activity_controller.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4771e8397711423316768ef101bcb83b0e62afe081efc0131aa2f59004a405b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/delegation_policy.ex:145-152 | lib/optimal_system_agent/channels/cli/commands.ex:5277-5284 \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":"lib/optimal_system_agent/agent/delegation_policy.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdcf83e2cd2792616202e4e5e0e07ba2965c3f02142f705d00d83e5c4f0ee10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/scheduler.ex:307-314 | lib/optimal_system_agent/agent/scheduler.ex:389-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/scheduler.ex:307\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":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbd386892d7edd50aa68257856b41e409aaeb619a57f8c94e78b8cab65bacd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:182-189 | lib/optimal_system_agent/agent/tasks/workflow.ex:201-208 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0014078269dca5bb24b138c5d4b17dbb3988614052f183d2981f6ebfce55ae87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/workflow.ex:329-336 | lib/optimal_system_agent/agent/workflow.ex:347-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":"lib/optimal_system_agent/agent/workflow.ex"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"059d86e38f0a4388eb8fcccbf9ca5a1330f7eecb6d1ea97a0e7c22593a72cea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/auth/providers/claude_cli.ex:146-154 | lib/optimal_system_agent/auth/providers/copilot_cli.ex:134-142 \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":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f63fba79b868700bce076a996158aa58c9d900334932113816926e2c697e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:204-211 | lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:231-238 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex:213\u0060 calls \u0060to_charlist\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex:240\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/exo.ex"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad827b1266a69b362df2b911abf281a44fe5461746301c087857b543541f29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/providers/anthropic.ex:1071-1078 | lib/optimal_system_agent/providers/anthropic.ex:1142-1149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/providers/anthropic.ex:1069\u0060 calls \u0060get\u0060, \u0060is_list\u0060 and \u0060lib/optimal_system_agent/providers/anthropic.ex:1141\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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef8314f6eb81758f2c7efbde8ab73974b1ad1acff8179762cda79ef5a9e1579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/providers/catalog.ex:609-616 | lib/optimal_system_agent/providers/catalog.ex:708-715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/catalog.ex:609\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"544085bcc28fad19e00ae102fea8b71273e25ce22c922fd681a70f4b60e774fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/optimal_system_agent/providers/catalog.ex:743-749 | lib/optimal_system_agent/providers/catalog.ex:751-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/providers/catalog.ex:743\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"db23225cfda555a9771640e1867a185e2b5d6f926a91442838ed0d423771f5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/security_intel.ex:143-149 | lib/optimal_system_agent/tools/builtins/security_intel.ex:161-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. 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":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"407e551b40248c4f10f33c20d49426741d813937a564e28a94a2435cd324ea39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/security_intel.ex:164-172 | lib/optimal_system_agent/tools/builtins/security_intel.ex:209-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/security_intel.ex:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9a793f2ffd83401951577f03a68c0b6d95e2a9abda5fe5d57683e0da601bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 21): lib/optimal_system_agent/tools/builtins/browser.ex:44-58 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:56-62 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:79-94 | lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:43-56 | lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:40-54 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:133-147 | lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:41-53 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:66-77 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:60-76 | lib/optimal_system_agent/tools/builtins/knowledge.ex:28-41 | lib/optimal_system_agent/tools/builtins/monitor/tool.ex:43-59 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:40-54 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:40-55 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:49-61 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:41-55 | lib/optimal_system_agent/tools/builtins/save_skill.ex:48-61 | lib/optimal_system_agent/tools/builtins/security_intel.ex:175-188 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:45-58 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:65-80 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:97-110 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:45-59 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:57\u0060 calls \u0060verdicts\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:64\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":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fe61226068a993329f866574c217d0cb5dede3aa3b906649212f7785d835ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:286-294 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:311-319 | lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:406-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a47ac6c0d3181c3ae4b46c32dcce59d261f668811ba1ce5348e13c05f1100c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/integration_controller.ex:73-79 | canopy/backend/lib/canopy_web/controllers/integration_controller.ex:98-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/integration_controller.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1b0646fb5f5c1265d23aa760b3fcacc2f0498ef16636ec75ceddf7d70da353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/loop/doom_loop/identical_call.ex:273-279 | lib/optimal_system_agent/agent/loop/regulation/signals.ex:123-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":"lib/optimal_system_agent/agent/loop/doom_loop/identical_call.ex"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b5b370bdcf31ce07b73e0e3f4bc8b46f48f5457d617218e3e288857957b56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/loop/message_handler.ex:392-398 | lib/optimal_system_agent/tools/builtins/exit_plan_mode/handler.ex:156-162 \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":"lib/optimal_system_agent/agent/loop/message_handler.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"537d2433462855fd122e12d464ce9aa7edd302f7403a71c4bdb4007d726771a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/scheduler.ex:294-300 | lib/optimal_system_agent/agent/scheduler.ex:376-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"661edf0fecccb2fb5078d76dc71133ebc42e8446f4a14b81eaf30e8d7e21a3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): lib/optimal_system_agent/agent/tasks/workflow.ex:233-235 | lib/optimal_system_agent/agent/tasks/workflow.ex:484-490 | lib/optimal_system_agent/agent/workflow.ex:364-366 | lib/optimal_system_agent/agent/workflow.ex:592-598 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/agent/workflow.ex:599\u0060 calls \u0060format_completed_steps\u0060, \u0060format_remaining_steps\u0060, \u0060format_context\u0060 and \u0060lib/optimal_system_agent/agent/tasks/workflow.ex:493\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"49787a70280949daeff13490fdb138d4e9cc4230e91410d4ac5caac3eea907dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/open_computers/session.ex:323-331 | lib/optimal_system_agent/remote/client.ex:339-347 \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":"lib/optimal_system_agent/open_computers/session.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9282e00b9c584e5eee8900bfd28ef870923e15d4beb9a75b03759646b4c1c2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 22): lib/optimal_system_agent/tools/builtins/browser.ex:45-59 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:54-59 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:75-91 | lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:43-57 | lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:41-55 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:86-102 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:134-148 | lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:41-54 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:67-78 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:60-77 | lib/optimal_system_agent/tools/builtins/knowledge.ex:28-42 | lib/optimal_system_agent/tools/builtins/monitor/tool.ex:44-60 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:41-55 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:41-56 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:50-62 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:41-56 | lib/optimal_system_agent/tools/builtins/save_skill.ex:48-62 | lib/optimal_system_agent/tools/builtins/security_intel.ex:175-189 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:45-59 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:66-81 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:97-111 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:46-60 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:57\u0060 calls \u0060verdicts\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:60\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c89382fe1a4622a1e61b201485851aed1134aae6fdd8f11bd399c89e83c2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/miosa/shims.ex:956-962 | lib/optimal_system_agent/budget/budget.ex:473-479 | lib/optimal_system_agent/budget/treasury.ex:311-317 \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":"lib/miosa/shims.ex"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fd665f925b922744d7c9da6955aba404c1292c88bbd61dae8e2df1ccc99819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/memory/coordinator.ex:256-262 | lib/optimal_system_agent/agent/memory/coordinator.ex:270-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/memory/coordinator.ex:256\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":"lib/optimal_system_agent/agent/memory/coordinator.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed48fcb6398cf8f05c745caf3ea18664574e1af458d0626ad26b27bc13f4a608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/agent/scheduler/persistence.ex:156-161 | lib/optimal_system_agent/agent/scheduler/persistence.ex:182-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/persistence.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dfa34eeef7c6ce18f444d8b30995d5a12d65cb4195a3d94724c8d73b2e86f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/optimal_system_agent/channels/cli/commands.ex:2755-2763 | lib/optimal_system_agent/channels/cli/commands.ex:2822-2829 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2755}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e9e898c807c793853afa16b29ff1f821842433945cad725ae1191f897db2f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:141-148 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:143-150 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc58b0a9bd17ff7eaeb021706e57e02bbd68899b1b05420ac353c6e7fdab210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 24): lib/optimal_system_agent/tools/builtins/browser.ex:46-59 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:55-59 | lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:76-91 | lib/optimal_system_agent/tools/builtins/create_skill/tool.ex:40-53 | lib/optimal_system_agent/tools/builtins/cross_team_query/tool.ex:42-55 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:87-102 | lib/optimal_system_agent/tools/builtins/delegate/tool.ex:135-148 | lib/optimal_system_agent/tools/builtins/diff.ex:40-47 | lib/optimal_system_agent/tools/builtins/expand_output.ex:58-72 | lib/optimal_system_agent/tools/builtins/file_grep/tool.ex:40-50 | lib/optimal_system_agent/tools/builtins/file_transform/tool.ex:68-78 | lib/optimal_system_agent/tools/builtins/goal/update_tool.ex:57-72 | lib/optimal_system_agent/tools/builtins/knowledge.ex:29-42 | lib/optimal_system_agent/tools/builtins/monitor/tool.ex:45-60 | lib/optimal_system_agent/tools/builtins/peer_claim_region/tool.ex:42-55 | lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:42-56 | lib/optimal_system_agent/tools/builtins/pty/pty_start.ex:46-59 | lib/optimal_system_agent/tools/builtins/remote_trigger/tool.ex:42-56 | lib/optimal_system_agent/tools/builtins/save_skill.ex:45-58 | lib/optimal_system_agent/tools/builtins/security_intel.ex:176-189 | lib/optimal_system_agent/tools/builtins/skill_manager.ex:46-59 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:67-81 | lib/optimal_system_agent/tools/builtins/task_write/tool.ex:98-111 | lib/optimal_system_agent/tools/builtins/team_tasks/tool.ex:47-60 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/browser.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/browser.ex:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/optimal_system_agent/tools/builtins/peer_review/tool.ex:57\u0060 calls \u0060verdicts\u0060 and \u0060lib/optimal_system_agent/tools/builtins/computer_use/tool.ex:60\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"22748cc6a12e7dcf2754db9fb84558ee8fa820c0ffde53fb6a8ea94b5d6ffcdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): canopy/backend/lib/canopy_web/controllers/activity_controller.ex:18-22 | canopy/backend/lib/canopy_web/controllers/audit_controller.ex:20-24 | canopy/backend/lib/canopy_web/controllers/memory_controller.ex:17-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060canopy/backend/lib/canopy_web/controllers/audit_controller.ex:25\u0060 calls \u0060where\u0060, \u0060ilike\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/activity_controller.ex:23\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/activity_controller.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee644190f6d37f7b9a45338a9b04cfc7ab17d9dfc962146db7224f3fa42abc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/optimal_system_agent/conversations/strategies/weighted.ex:155-161 | lib/optimal_system_agent/memory/scoring.ex:84-90 | lib/optimal_system_agent/memory/store.ex:805-811 \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":"lib/optimal_system_agent/conversations/strategies/weighted.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0be6fd6a6a378b4d31e95475d7ce2a7531fd2b1009e3a1a52df2d534b283a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex:321-329 | lib/optimal_system_agent/agent/loop/tool_orchestrator.ex:608-616 \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 \u0060lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex:321\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"416f8feb3dbae17d530a31371b2730272a18b3d1cc8b0f02744743d7c0f8da51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/agent/loop/tool_executor.ex:1481-1485 | lib/optimal_system_agent/agent/loop/tool_executor.ex:1493-1497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"45725f67a0260db94a73739d8ffe3a44ae57fbdb2bd3292e159a96a5dcb84c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/auth/providers/qwen.ex:260-265 | lib/optimal_system_agent/auth/providers/xai.ex:203-208 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/qwen.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/auth/providers/qwen.ex:254\u0060 calls \u0060normalize\u0060 and \u0060lib/optimal_system_agent/auth/providers/xai.ex:197\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":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d67348536294945a8337e4210cb286245f9f255f03d74124001dfc27e071bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/channels/http/auth.ex:54-58 | lib/optimal_system_agent/channels/http/auth.ex:74-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":"lib/optimal_system_agent/channels/http/auth.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabbb2d3aeb52da679f2e90ed774fdb6784addd48dc73b1b3b8786e14ce1221d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:52-56 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:49-53 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5840aed94947e8fbc5250f32671e07e51b3464c95c6ad899baa75c7e3b033b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): lib/optimal_system_agent/open_computers/remote/client.ex:70-74 | lib/optimal_system_agent/open_computers/session.ex:320-324 | lib/optimal_system_agent/remote/client.ex:338-340 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/remote/client.ex:338\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":"lib/optimal_system_agent/open_computers/remote/client.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e29dccbff7ffeebd3ac7877a59c531ff311e822d3be05709b23d0511821df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/security/surface_map.ex:351-357 | lib/optimal_system_agent/security/surface_map.ex:498-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/security/surface_map.ex:351\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/surface_map.ex"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d020c995abbf5a87d3cb5c4712365bcfdba1812bee4daddcc8169f611e1880a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/diff.ex:95-101 | lib/optimal_system_agent/tools/builtins/diff.ex:123-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/diff.ex:95\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":"lib/optimal_system_agent/tools/builtins/diff.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8cc29c8b11eccb3086844035d66e805ab963cf819d708105fa2db8c5b72cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/code_symbols/prompt.ex:8-30 | lib/optimal_system_agent/tools/builtins/file_glob/prompt.ex:11-29 | lib/optimal_system_agent/tools/builtins/notebook_edit/prompt.ex:18-69 \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":"lib/optimal_system_agent/tools/builtins/code_symbols/prompt.ex"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9c21da524ac8385dbe75d17479de8d40d9104fd9e693934623f493ad67d72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): lib/optimal_system_agent/tools/builtins/exit_plan_mode/ui.ex:5-17 | lib/optimal_system_agent/tools/builtins/progress_note/ui.ex:18-30 | lib/optimal_system_agent/tools/builtins/task_output/ui.ex:18-36 | lib/optimal_system_agent/tools/builtins/task_resume/ui.ex:18-36 | lib/optimal_system_agent/tools/builtins/task_stop/ui.ex:18-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/exit_plan_mode/ui.ex"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3826e4f962d6806596b018c5c947e05dbfd211481211726092c26a2e8c0a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/multi_file_edit/prompt.ex:8-23 | lib/optimal_system_agent/tools/builtins/task_write/prompt.ex:24-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/prompt.ex"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"57af48b7e54d237e940cc98e84553f50102db3f20f1d79d0e681343bf5954dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 4): lib/optimal_system_agent/tools/builtins/session_search.ex:25-107 | lib/optimal_system_agent/tools/builtins/task_output.ex:25-107 | lib/optimal_system_agent/tools/builtins/task_stop.ex:25-107 | lib/optimal_system_agent/tools/builtins/task_write.ex:27-115 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/tools/builtins/session_search.ex\u0060 and \u0060lib/optimal_system_agent/tools/builtins/task_output.ex\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"lib/optimal_system_agent/tools/builtins/session_search.ex"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f6d7a3777e5413d28d1c0921847c535572a6ea8d85809b12ef1167b6aba755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/vault_checkpoint.ex:5-38 | lib/optimal_system_agent/tools/builtins/vault_wake.ex:5-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":"lib/optimal_system_agent/tools/builtins/vault_checkpoint.ex"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"25539b200d01452516fae036cef6f9522eb294189f9f9451606ea786b2e0210b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): canopy/backend/lib/canopy/adapters/cursor.ex:33-49 | canopy/backend/lib/canopy/adapters/gemini.ex:33-49 | canopy/backend/lib/canopy/adapters/openclaw.ex:33-49 \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":"canopy/backend/lib/canopy/adapters/cursor.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf35fde27f20cb4fd4277ce8cbb5c38dc9a32e69c5790fb68dc97a601d2f020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): canopy/backend/lib/canopy/costs.ex:144-148 | canopy/backend/lib/canopy_web/controllers/cost_controller.ex:131-135 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy/costs.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/cost_controller.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 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":"canopy/backend/lib/canopy/costs.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e782519808cc4e637d00683d46d0548b212c4cd7ed1d7414541623379fb24f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): canopy/backend/lib/canopy_web/controllers/agent_controller.ex:270-274 | canopy/backend/lib/canopy_web/controllers/alert_controller.ex:161-165 | canopy/backend/lib/canopy_web/controllers/budget_controller.ex:119-123 | canopy/backend/lib/canopy_web/controllers/comment_controller.ex:54-58 | canopy/backend/lib/canopy_web/controllers/gateway_controller.ex:113-117 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:130-134 | canopy/backend/lib/canopy_web/controllers/integration_controller.ex:157-161 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:199-203 | canopy/backend/lib/canopy_web/controllers/memory_controller.ex:132-136 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:127-131 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:167-171 | canopy/backend/lib/canopy_web/controllers/skill_controller.ex:139-143 | canopy/backend/lib/canopy_web/controllers/template_controller.ex:50-54 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:84-88 | canopy/backend/lib/canopy_web/controllers/webhook_controller.ex:237-241 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:229-233 | lib/optimal_system_agent/channels/http/api/shared.ex:94-100 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/project_controller.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/agent_controller.ex"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c978a3ae4787a0ce28326a96e6827fa5c1d993705fabd8eacfe06198b743eb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/miosa/shims.ex:934-938 | lib/optimal_system_agent/budget/treasury.ex:289-293 \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":"lib/miosa/shims.ex"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"0986ed8c6e8fbf147abe847a824d85f5648e7c1d054846d8e0a7a79b3e94a044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/miosa/shims.ex:942-946 | lib/optimal_system_agent/budget/treasury.ex:297-301 \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":"lib/miosa/shims.ex"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"1371373faf18d391fa0fe7b179c1b4e0c0f1984befbd49bf3d8ebe71d3c7f8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/miosa/shims.ex:1167-1173 | lib/optimal_system_agent/signal/signal.ex:63-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/signal/signal.ex:61\u0060 calls \u0060to_cloud_event\u0060, \u0060t\u0060 and \u0060lib/miosa/shims.ex:1164\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/miosa/shims.ex"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b989c630718ec453f6d9bb0b875bb4a9d9eaeb4bad5d80e724757aa1a783485a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): lib/optimal_system_agent/agent/ask_user_mode.ex:228-233 | lib/optimal_system_agent/agent/coordinator_mode.ex:71-76 | lib/optimal_system_agent/agent/loop/goal_tracker.ex:2100-2105 | lib/optimal_system_agent/agent/plan_store.ex:181-186 | lib/optimal_system_agent/tools/builtins/task_wait/depth.ex:112-117 | lib/optimal_system_agent/tools/builtins/task_wait/rewait_guard.ex:84-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/ask_user_mode.ex:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/agent/plan_store.ex:178\u0060 calls \u0060clear\u0060 and \u0060lib/optimal_system_agent/tools/builtins/task_wait/rewait_guard.ex:81\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/ask_user_mode.ex"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e9a4831ccab8c767934bcb3da09e2f0e1a1b0c85c2345b9bbd309490e5b55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/agent/attendance.ex:345-350 | lib/optimal_system_agent/agent/fleet/settings_coverage.ex:182-187 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/attendance.ex:345\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":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c11981d2b0a40993c41507a493715cf3c7bb2aa5f3128b4830dbb9fe1b3f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/optimal_system_agent/agent/batch_cadence.ex:283-293 | lib/optimal_system_agent/tools/builtins/file_edit/drift_guard.ex:217-227 | lib/optimal_system_agent/tools/file_state.ex:583-593 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/batch_cadence.ex:283\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":"lib/optimal_system_agent/agent/batch_cadence.ex"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a2285b710cd31f877aa3f4eb22bba2df6f27b0ee0eccf2a1c3608e27df06b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): lib/optimal_system_agent/agent/batch_cadence.ex:297-315 | lib/optimal_system_agent/agent/cost_observations.ex:137-155 | lib/optimal_system_agent/tools/builtins/file_edit/drift_guard.ex:231-249 | lib/optimal_system_agent/tools/file_state.ex:599-617 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/batch_cadence.ex:297\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":"lib/optimal_system_agent/agent/batch_cadence.ex"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"5845e476fc9b104fb8a4b5d085e4edf9c529617ccc904b93d115bc820b810130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/fleet.ex:1397-1403 | lib/optimal_system_agent/orchestrator.ex:3591-3597 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/agent/fleet.ex:1394\u0060 calls \u0060completion_summary\u0060 and \u0060lib/optimal_system_agent/orchestrator.ex:3586\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44220c10fd833ab8bcce549c0ad336317e23bcea752e46e2f048aa5a3521a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/jailbreak.ex:196-203 | lib/optimal_system_agent/agent/voice.ex:211-218 \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":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"27806779d41dd1ef94a73d1c11533b8a4950228c8cb0234691fb480d39a81a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/agent/loop.ex:2349-2354 | lib/optimal_system_agent/agent/loop/react_loop.ex:4407-4412 \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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a16611564ad67a39ce8ef2418107ce504f0e30dc32ace2e46005a8978294f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/optimal_system_agent/agent/loop/doom_loop/stall.ex:322-327 | lib/optimal_system_agent/agent/loop/regulation/signals.ex:156-161 | lib/optimal_system_agent/agent/loop/regulation/surprise.ex:91-96 \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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c5d8c93fadfbd8ff711b6dc76b7c35690aa5a94013627d2b315898bb8b2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/agent/loop/regulation/pain_channel.ex:179-189 | lib/optimal_system_agent/local_models/installer.ex:121-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/loop/regulation/pain_channel.ex:179\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":"lib/optimal_system_agent/agent/loop/regulation/pain_channel.ex"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6e671dfa9bc19fdb246c5a187e282de2a3955295130fbcad3a5b4c296d1840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/optimal_system_agent/agent/loop/verification_evidence.ex:1195-1205 | lib/optimal_system_agent/security/anomaly_queue.ex:226-236 | lib/optimal_system_agent/security/class_queue.ex:217-227 | lib/optimal_system_agent/security/login_session.ex:389-399 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/loop/verification_evidence.ex:1195\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":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9f2b0b809270905bacf71754be537e15dbc3b2b09016e0262f4082c2319415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:480-490 | lib/optimal_system_agent/agent/tasks/tracker.ex:738-748 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. 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":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"426579d47009a02b93eef572897204de316f8bc1ddb184b4852ec56c99d63947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/agent/tasks.ex:201-210 | lib/optimal_system_agent/agent/tasks/tracker.ex:653-662 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/tasks.ex:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0d163532fcb4039ecf0640f320cfe679317a6cc802fb1a33f7e3b8c1e314ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:562-567 | lib/optimal_system_agent/agent/workflow.ex:797-802 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9a8d9370561a351f5f1703cc40a4005254e7442012b558b793651dff297cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/agent/tasks/workflow.ex:571-576 | lib/optimal_system_agent/agent/workflow.ex:806-811 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/tasks/workflow.ex\u0060 and \u0060lib/optimal_system_agent/agent/workflow.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 285 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"301f4426e49e1ba5c38455d93c0ca73d9c50a5969b082ced241dfa86be052150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/optimal_system_agent/auth/providers/bedrock.ex:334-344 | lib/optimal_system_agent/auth/providers/claude_cli.ex:612-622 | lib/optimal_system_agent/auth/providers/copilot_cli.ex:400-410 \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":"lib/optimal_system_agent/auth/providers/bedrock.ex"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5e8242828ab1db7dc8bc1557a2c2f09de767e3df4767ad063bbf50349f2ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): lib/optimal_system_agent/auth/providers/copilot.ex:359-369 | lib/optimal_system_agent/auth/providers/minimax.ex:392-402 | lib/optimal_system_agent/auth/providers/openai_codex.ex:499-509 | lib/optimal_system_agent/auth/providers/qwen.ex:350-360 | lib/optimal_system_agent/auth/providers/xai.ex:275-285 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/copilot.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/auth/providers/copilot.ex:359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/auth/providers/copilot.ex:357\u0060 calls \u0060access_token\u0060, \u0060t\u0060, \u0060term\u0060 and \u0060lib/optimal_system_agent/auth/providers/openai_codex.ex:497\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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"152ddf2a75b59ce3dff954e1727f16bada1dcfa80e39635b54162d06b59d0e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/auth/providers/qwen.ex:186-194 | lib/optimal_system_agent/auth/providers/xai.ex:168-176 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/auth/providers/qwen.ex\u0060 and \u0060lib/optimal_system_agent/auth/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a57d8b07f2a9418e9e6adf85ea09f85ca3c82574731398be87c10a79d56147d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/optimal_system_agent/channels/http/api/approval_routes.ex:142-150 | lib/optimal_system_agent/channels/http/api/issue_routes.ex:197-205 | lib/optimal_system_agent/channels/http/api/project_routes.ex:327-335 \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":"lib/optimal_system_agent/channels/http/api/approval_routes.ex"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e177e226d642aba087d72051933e51b52ae7155270ba3a11565c6becda3ce34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/optimal_system_agent/channels/http/api/approval_routes.ex:159-167 | lib/optimal_system_agent/channels/http/api/issue_routes.ex:214-222 \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":"lib/optimal_system_agent/channels/http/api/approval_routes.ex"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"719e379e34fbe87d4f61a40bc66e102b561fcc42f370db8febe8d424c072aba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/cli/opencomputers.ex:589-593 | lib/optimal_system_agent/open_computers/config.ex:131-135 \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":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c40901e15a0322e191a8fa80a5791c0f1a94d2ec267c6938152bba5062d68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/git.ex:226-231 | lib/optimal_system_agent/workspace/topology.ex:714-719 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/git.ex:226\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":"lib/optimal_system_agent/git.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cbe5a58e7a2ef920efa2319c88ee7317a41d1048a4e6bfa296575b9f546f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:102-108 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:99-105 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:102\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d9041c5446017a74e1e36473fa056f6e02b1d2a9f564d3f8e190e7b7ce5946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:116-121 | lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex:113-118 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex\u0060 and \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex:116\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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"292a7cb6ba6cde452e2c131b9b5d555eb292db039f147f9bc79eb88e9a0008cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/providers/anthropic.ex:857-863 | lib/optimal_system_agent/providers/openai_compat.ex:1060-1066 \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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d897be7833b998b11fbe5d8cd174a36c8f5e07017a6f75de44078c442503e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/providers/anthropic.ex:1664-1670 | lib/optimal_system_agent/providers/google.ex:577-583 \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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ba0a63f3cf9690119a253da2c1c793b222f602ac6812ed9fd183623df57e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:135-142 | lib/optimal_system_agent/providers/copilot_cli.ex:134-141 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/optimal_system_agent/providers/claude_cli.ex:135\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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb61abfe0972ba687bd74a8cb792fa978661d5a02dabe846f8ed05b5d9f82bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/providers/claude_cli.ex:445-451 | lib/optimal_system_agent/providers/copilot_cli.ex:380-386 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/providers/claude_cli.ex\u0060 and \u0060lib/optimal_system_agent/providers/copilot_cli.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac7027d5dc784b2d27b37bc2c39d6860cecc8cd51e1f9de236259930b13d57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/optimal_system_agent/providers/cohere.ex:145-154 | lib/optimal_system_agent/providers/ollama.ex:1554-1563 | lib/optimal_system_agent/providers/openai_compat.ex:1380-1389 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/optimal_system_agent/providers/openai_compat.ex:1376\u0060 calls \u0060encode_text_preserving_cache\u0060, \u0060encode_text\u0060 and \u0060lib/optimal_system_agent/providers/cohere.ex:141\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cohere.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3150a574c7677d0d70e813587f829ad21c5c6b041d6b8048814b4fed90234aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/security/chain_summary.ex:237-242 | lib/optimal_system_agent/security/sarif_report.ex:247-251 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/chain_summary.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab69bdca91a63001239f9eaf7a2f02b7189ff61a9146ed4ee8c6deaf8e7d03f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/optimal_system_agent/security/code_fix_store.ex:16-21 | lib/optimal_system_agent/security/notes_store.ex:37-42 | lib/optimal_system_agent/security/playbook_store.ex:22-27 | lib/optimal_system_agent/security/steer_store.ex:17-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/code_fix_store.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c84bdca1b95ceaa03b919862976edd96447812f856d5da15c903ddda392912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/security/code_fix_store.ex:75-81 | lib/optimal_system_agent/security/notes_store.ex:137-143 \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":"lib/optimal_system_agent/security/code_fix_store.ex"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"69151e1931cf6abff60271a5833dd8d6c73e7142b78dd71b1961dec92222ab84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/security/oob.ex:466-472 | lib/optimal_system_agent/skills/validator.ex:619-625 \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":"lib/optimal_system_agent/security/oob.ex"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"259477b0a8d3bcb4e454d00186b806c5b2f7d9ea79b41ac3d7b1a4979c8e57ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:59-63 | lib/optimal_system_agent/tools/builtins/file_glob/handler.ex:23-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex:59\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":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d98851bc8d7094b7baa4d0c9e7f7b194fc41f1d20796b6be3bfd78df8baa970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex:175-184 | lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_x11.ex:222-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":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2411e2997cabaf82b632413dc828840dc27897802a562b42e054687b1c88ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/dir_list/tool.ex:37-46 | lib/optimal_system_agent/tools/builtins/enter_plan_mode/tool.ex:29-38 | lib/optimal_system_agent/tools/builtins/exit_plan_mode/tool.ex:28-37 \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":"lib/optimal_system_agent/tools/builtins/dir_list/tool.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe3177a524b19b148adc3ff8717bc911e6989b40d9f865fcd5c45e7d6900fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/download/tool.ex:42-56 | lib/optimal_system_agent/tools/builtins/pty/pty_send.ex:38-48 | lib/optimal_system_agent/tools/builtins/use_skill.ex:51-64 \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":"lib/optimal_system_agent/tools/builtins/download/tool.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfd15e60918f2ef72932e6a7e00fff914feaa2649ec156b14c44667ce3e55b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): lib/optimal_system_agent/tools/builtins/file_glob/tool.ex:36-49 | lib/optimal_system_agent/tools/builtins/session_search/tool.ex:50-63 | lib/optimal_system_agent/tools/builtins/sleep/tool.ex:31-45 | lib/optimal_system_agent/tools/builtins/tool_search/tool.ex:50-63 | lib/optimal_system_agent/tools/builtins/vault_inject.ex:19-32 | lib/optimal_system_agent/tools/builtins/web_fetch/tool.ex:37-50 | lib/optimal_system_agent/tools/builtins/web_search/tool.ex:37-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_glob/tool.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1946a18ab9f220ab6ede680a93b6a0adda15ea34cf07a5b621daa076f96d204b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/optimal_system_agent/tools/builtins/file_glob/ui.ex:22-28 | lib/optimal_system_agent/tools/builtins/file_grep/ui.ex:29-35 | lib/optimal_system_agent/tools/builtins/file_read/ui.ex:28-34 \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":"lib/optimal_system_agent/tools/builtins/file_glob/ui.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"35991c166ad7e0eb8562e7a4653c09eb2c5cfca7d74614de3d7fdd699ba4229f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/file_grep/backend.ex:256-269 | lib/optimal_system_agent/tools/legacy_adapter.ex:269-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/builtins/file_grep/backend.ex:256\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":"lib/optimal_system_agent/tools/builtins/file_grep/backend.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"efac39d4a7d155187b964cd62b1268ebe887730c342bece7ae8f09fadfdb68d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/task_output/tool.ex:48-57 | lib/optimal_system_agent/tools/builtins/task_stop/tool.ex:49-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_output/tool.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48dace5a20983eb915865cc440f5b958e500fddd74be721062c079e3a3c1b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): canopy/backend/lib/canopy_web/controllers/alert_controller.ex:67-74 | canopy/backend/lib/canopy_web/controllers/goal_controller.ex:81-88 | canopy/backend/lib/canopy_web/controllers/issue_controller.ex:115-122 | canopy/backend/lib/canopy_web/controllers/project_controller.ex:73-80 | canopy/backend/lib/canopy_web/controllers/schedule_controller.ex:83-90 | canopy/backend/lib/canopy_web/controllers/user_controller.ex:60-67 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:91-98 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy_web/controllers/goal_controller.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/project_controller.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060canopy/backend/lib/canopy_web/controllers/alert_controller.ex:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/alert_controller.ex"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1463f7d421a3ac2499bc40845c5b075272c4eee4e412f91c5c2b2333dc3ad0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): canopy/backend/lib/canopy_web/controllers/project_controller.ex:102-110 | canopy/backend/lib/canopy_web/controllers/workspace_controller.ex:188-196 \u2014 before extracting anything, compare \u0060canopy/backend/lib/canopy_web/controllers/project_controller.ex\u0060 and \u0060canopy/backend/lib/canopy_web/controllers/workspace_controller.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/project_controller.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6585cb96ee9d1dc22e5154fdd1160cce91c3a462ffdc07a4a2d6a2322a7fa07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/optimal_system_agent/agent/compact_restore.ex:30-37 | lib/optimal_system_agent/agent/loop/proactive_compaction.ex:664-671 | lib/optimal_system_agent/memory/flush.ex:559-566 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/compact_restore.ex:30\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":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14056bb21f3e0c4e8144716be55598ce6f6c5f6f17a1b94387787d3bb84dde4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/agent/plan_store.ex:71-75 | lib/optimal_system_agent/agent/progress_ledger.ex:97-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/agent/plan_store.ex:71\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":"lib/optimal_system_agent/agent/plan_store.ex"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc70a0a190107403f844fd5e50b585c289fa28f658f63cad85fe6badd763194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/agent/session_persistence/jsonl.ex:246-255 | lib/optimal_system_agent/agent/session_persistence/record_lock.ex:111-120 \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 \u0060lib/optimal_system_agent/agent/session_persistence/jsonl.ex:246\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":"lib/optimal_system_agent/agent/session_persistence/jsonl.ex"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1967da02054e4c75e26e870ffb8c490fae182269e65d97c2c8842d4498705e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/auth/providers/claude_cli.ex:111-118 | lib/optimal_system_agent/auth/providers/copilot_cli.ex:107-114 \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 \u0060lib/optimal_system_agent/auth/providers/claude_cli.ex:111\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":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bacf0fc2ed0f43daad2ee15175f3b336bcc806558738bc1b0c262407ad839e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/optimal_system_agent/fs_checkpoint/server.ex:123-132 | lib/optimal_system_agent/providers/catalog.ex:906-915 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/fs_checkpoint/server.ex:123\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":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e412edc10367ba4a61964daa913bbccdb755eec25aee26a416798edd6c74d88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/local_models.ex:620-625 | lib/optimal_system_agent/miosa/platform.ex:79-84 \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":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"588f034dcebcbc65dd10ef6ace30dce0bf012b7594b6c571248f7291a327ece1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/optimal_system_agent/speculative/tools/start_speculative/ui.ex:22-33 | lib/optimal_system_agent/verification/tools/verify_loop/ui.ex:22-33 \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":"lib/optimal_system_agent/speculative/tools/start_speculative/ui.ex"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fced7ff94df1f8275b84248cc08f6938081454aa4af76cb9e0910014bdaca8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): lib/optimal_system_agent/teams/manager.ex:386-390 | lib/optimal_system_agent/teams/nervous_system.ex:142-146 | lib/optimal_system_agent/teams/nervous_system.ex:174-178 | lib/optimal_system_agent/teams/nervous_system.ex:221-225 | lib/optimal_system_agent/teams/nervous_system.ex:280-284 | lib/optimal_system_agent/teams/nervous_system.ex:392-396 | lib/optimal_system_agent/teams/nervous_system.ex:456-460 | lib/optimal_system_agent/teams/nervous_system.ex:539-543 | lib/optimal_system_agent/teams/nervous_system.ex:649-653 \u2014 there are 9 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/manager.ex"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b02a4ffb427e746475ab18c48430d549156395d6db38d862e70bbf3ee66444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/tools/bounded_cmd.ex:377-381 | lib/optimal_system_agent/tools/builtins/file_grep/constants.ex:66-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/tools/bounded_cmd.ex:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/bounded_cmd.ex"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ef69d2c5f8a087986c377b241c7748cf7b23dc1ad38f1d07f296680bf35cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/optimal_system_agent/tools/builtins/task_write/handler.ex:23-28 | lib/optimal_system_agent/tools/builtins/team_tasks/handler.ex:20-25 \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":"lib/optimal_system_agent/tools/builtins/task_write/handler.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b16a48413234cec617247907b32c7d481c289f9b75e109dd5244f0bf345f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/miosa/shims.ex:1157-1162 | lib/optimal_system_agent/signal/signal.ex:51-56 \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":"lib/miosa/shims.ex"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fa65bcd0757139e7b55b755be88aa5478866e8eb34e484393981cf3bebc382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/agent/loop/checkpoint.ex:119-123 | lib/optimal_system_agent/agent/loop/checkpoint.ex:712-716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f837bdfcedaa272a30c7dcb555fc1bfbe74d8b6c9884d013a45e869192fe9baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/agent/loop/goal_tracker.ex:1726-1732 | lib/optimal_system_agent/agent/loop/goal_verifier.ex:2031-2037 \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":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af5b1859ea9f5ab66a3225696b5fbee8d8eef190c1324d4baf9b36661932539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/optimal_system_agent/agent/task_tracker.ex:144-151 | lib/optimal_system_agent/agent/tasks/tracker.ex:518-525 \u2014 before extracting anything, compare \u0060lib/optimal_system_agent/agent/task_tracker.ex\u0060 and \u0060lib/optimal_system_agent/agent/tasks/tracker.ex\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. 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":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f089d4cff7a04eab10c38a404fb99a7cfba0020d3a248f6f0222a874ea97d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/channels/cli/commands.ex:849-853 | lib/optimal_system_agent/channels/cli/commands.ex:956-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/channels/cli/commands.ex:849\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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a484dfe8b80cf00fc370a53afcc8c1062ad169d643a1d1e527f682fd8eb8b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/optimal_system_agent/channels/dingtalk.ex:149-154 | lib/optimal_system_agent/channels/feishu.ex:182-187 | lib/optimal_system_agent/channels/wecom.ex:137-142 \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":"lib/optimal_system_agent/channels/dingtalk.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02852e5a1e0dd4cce037ac9f446cb3d289eea82e805541bdc56f899a66fd6bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/providers/ollama.ex:1746-1750 | lib/optimal_system_agent/providers/openai_compat.ex:905-909 \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 \u0060lib/optimal_system_agent/providers/ollama.ex:1746\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":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d5978ebf54006a8b83f1793983432e023335c1351d2382171585bffc272b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/optimal_system_agent/telemetry/metrics.ex:210-214 | lib/optimal_system_agent/telemetry/metrics.ex:218-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/telemetry/metrics.ex:210\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":"lib/optimal_system_agent/telemetry/metrics.ex"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"344e07b1cd44016ebf6a8bf25dd306b22ddca6ae02ffdd8c90b32b5af8ff95d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Formula/miosa.rb:48-55 | Formula/osa.rb:67-74 | Formula/osagent.rb:48-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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Formula/miosa.rb"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"88befff65aec3b7e800c0dc17430ac543813c3268ea61b1a8e88f62a26be54ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201344 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:3031-3062 | priv/rust/tui/src/app/event_loop.rs:3150-3193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/event_loop.rs:3031\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":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"906a0e02518797136d12caa4a0bff24407be6e24b6438e3cb6a3e458ca463e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201344 lines \u00D7 3): priv/rust/tui/src/dialogs/command_palette.rs:161-204 | priv/rust/tui/src/dialogs/permissions.rs:464-466 | priv/rust/tui/src/dialogs/picker.rs:164-207 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/command_palette.rs\u0060 and \u0060priv/rust/tui/src/dialogs/picker.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/command_palette.rs:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060priv/rust/tui/src/dialogs/permissions.rs:464\u0060 is reached only past a guard at line 378 that tests \u0060area.width\u0060 and leaves the function early, and \u0060priv/rust/tui/src/dialogs/command_palette.rs:161\u0060 reads \u0060area.width\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48e17eeb70b820063f524fc4ca6fdf04a4a75cae75727d3657d5d41ee619634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): priv/rust/tui/src/app/update.rs:1204-1238 | priv/rust/tui/src/app/update.rs:1450-1483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/update.rs:1204\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7589501dad860b42f215115cf67d756b39107c320774f2308135478f7cee4f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): priv/rust/tui/src/app/handle_backend.rs:2387-2415 | priv/rust/tui/src/app/handle_backend.rs:2448-2472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_backend.rs:2387\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"668bff3bd2ab2fd42bc278e10e7907e5b23cc3e79b05d156c19e3257b1d1554d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 5): priv/rust/tui/src/dialogs/memory_browser.rs:201-219 | priv/rust/tui/src/dialogs/permissions_manager.rs:254-276 | priv/rust/tui/src/dialogs/persona_picker.rs:233-255 | priv/rust/tui/src/dialogs/skills_browser.rs:305-327 | priv/rust/tui/src/dialogs/tools_browser.rs:281-303 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/permissions_manager.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/memory_browser.rs:201\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e498a545d9cf8cf8d768c4b6a7c1405dbf5da34529b95cd56951f479d1f03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): priv/rust/tui/src/components/completion_panel.rs:353-374 | priv/rust/tui/src/dialogs/cost_dashboard.rs:280-302 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/components/completion_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/cost_dashboard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/completion_panel.rs:353\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":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c7811b2b7ad859609ea622ebf192d0082120ac804c6234aaa918a3edaab360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): priv/rust/tui/src/dialogs/persona_picker.rs:317-339 | priv/rust/tui/src/dialogs/tools_browser.rs:367-389 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/persona_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/persona_picker.rs:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/persona_picker.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4ec17230c40c27e2fa4694d49d6a4af9951071457c574c4715416f27302fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 5): priv/rust/tui/src/dialogs/memory_browser.rs:95-138 | priv/rust/tui/src/dialogs/permissions_manager.rs:148-191 | priv/rust/tui/src/dialogs/persona_picker.rs:132-175 | priv/rust/tui/src/dialogs/skills_browser.rs:190-233 | priv/rust/tui/src/dialogs/tools_browser.rs:180-223 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/permissions_manager.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/memory_browser.rs:95\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":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5bde1b34e4972e344d78f05f7a7e847daabbe68271cd935f74e47f8692a675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): priv/rust/tui/src/tools/mod.rs:822-841 | priv/rust/tui/src/tools/mod.rs:870-887 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/mod.rs:822\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/mod.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f8aca1467bf83804d2e8a1beed2b4b190b584f173f5144a10f2c089aea9402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): priv/rust/tui/src/dialogs/channels_panel.rs:103-121 | priv/rust/tui/src/dialogs/doctor_panel.rs:159-177 | priv/rust/tui/src/dialogs/hooks_viewer.rs:130-148 | priv/rust/tui/src/dialogs/memory_browser.rs:108-126 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:144-162 | priv/rust/tui/src/dialogs/permissions_manager.rs:161-179 | priv/rust/tui/src/dialogs/persona_picker.rs:145-163 | priv/rust/tui/src/dialogs/skills_browser.rs:203-221 | priv/rust/tui/src/dialogs/tasks_panel.rs:161-179 | priv/rust/tui/src/dialogs/tools_browser.rs:193-211 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:103\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3124675d2e40a79f51089370cd04e818c823a14c40839fbed53ba6dcf0c7801c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:312-330 | priv/rust/tui/src/dialogs/sessions.rs:331-349 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/file_picker.rs:312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"636712ec18a5606a84d9a30bd601768e67935a59e3e979c4f14df18f8007821b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): priv/rust/tui/src/render/markdown.rs:2203-2220 | priv/rust/tui/src/render/markdown.rs:2257-2273 | priv/rust/tui/src/render/markdown.rs:2326-2343 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:2203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa6759059b243f52a79191b4a992b3e9ab682142f360451b840d3ca9facf64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:2991-3006 | priv/rust/tui/src/app/event_loop.rs:3131-3148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/event_loop.rs:2991\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":2991}}}],"partialFingerprints":{"codehealthFindingId/v1":"d938ff94b995196a3e78ca5925d991114d050a896fa6cb3ef88e73cb3340caa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:1316-1333 | priv/rust/tui/src/app/handle_dialogs.rs:1367-1380 \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 \u0060priv/rust/tui/src/app/handle_actions.rs:1316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn foreground_task(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/app/handle_dialogs.rs:1381\u0060 calls \u0060recompute_layout\u0060 and \u0060priv/rust/tui/src/app/handle_actions.rs:1334\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce8e986b3d8f462ef08b15b4f90e12dbb578ac16b229d47e51b08506fc27848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): priv/rust/tui/src/dialogs/overdrive_confirm.rs:30-44 | priv/rust/tui/src/dialogs/quit_confirm.rs:50-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/overdrive_confirm.rs:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/dialogs/quit_confirm.rs:45\u0060 calls \u0060Char\u0060, \u0060contains\u0060, \u0060Some\u0060 and \u0060priv/rust/tui/src/dialogs/overdrive_confirm.rs:28\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/overdrive_confirm.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b2b5e089004c10250e7a14ad442908a7c692c002ea5fc2303ee6bf310f00e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 9): priv/rust/tui/src/dialogs/channels_panel.rs:180-196 | priv/rust/tui/src/dialogs/doctor_panel.rs:250-266 | priv/rust/tui/src/dialogs/mcp_servers.rs:182-198 | priv/rust/tui/src/dialogs/memory_browser.rs:213-225 | priv/rust/tui/src/dialogs/permissions_manager.rs:268-284 | priv/rust/tui/src/dialogs/persona_picker.rs:247-263 | priv/rust/tui/src/dialogs/skills_browser.rs:319-335 | priv/rust/tui/src/dialogs/tasks_panel.rs:259-275 | priv/rust/tui/src/dialogs/tools_browser.rs:295-311 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:180\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab51b4cbd8d01d6aff77d765ebc137373a315c6951f4c86e2e951a8244191985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): priv/rust/tui/src/dialogs/claude_login.rs:567-583 | priv/rust/tui/src/dialogs/claude_login.rs:625-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/claude_login.rs:567\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":"priv/rust/tui/src/dialogs/claude_login.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cb0fae45ecb88dedaab2cb3ae3a4a5d180b684d3b6d3229de4b02aab9bc4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): priv/rust/tui/src/view/onboarding_flow.rs:359-375 | priv/rust/tui/src/view/onboarding_flow.rs:562-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"097de7ffcd0c509965c72134955c7bb3803dcb72685cdb3b06a7308b6dbb33db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 3): priv/rust/tui/src/app/update.rs:1009-1019 | priv/rust/tui/src/app/update.rs:1210-1225 | priv/rust/tui/src/app/update.rs:1456-1471 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/update.rs:1009\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/app/update.rs:1021\u0060 calls \u0060prune_orphaned_attachments\u0060 and \u0060priv/rust/tui/src/app/update.rs:1226\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2ab1889bdfef7423865df13ab48de3d5c127725ed0893d9619bef893ca1320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:343-352 | priv/rust/tui/src/app/handle_actions.rs:376-391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:343\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3072524bb21a1c4f25e7b99127412e5486734b73070f3e768abdd9f9ae5192f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:2700-2714 | priv/rust/tui/src/components/chat/welcome.rs:253-268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":2700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d062793593d8ccb3a0c98e0cb169f7628cb0cc6459ee748a721e51b380badfa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): priv/rust/tui/src/components/chat/message.rs:618-633 | priv/rust/tui/src/components/chat/message.rs:659-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/components/chat/message.rs:634\u0060 calls \u0060saturating_sub\u0060 and \u0060priv/rust/tui/src/components/chat/message.rs:677\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7173c80614d083c473e0f8dccbb9f074968423e367349bfc0e175cbcab4cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): priv/rust/tui/src/dialogs/skills_browser.rs:434-448 | priv/rust/tui/src/dialogs/tasks_panel.rs:356-370 | priv/rust/tui/src/dialogs/tools_browser.rs:380-394 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tasks_panel.rs\u0060 as WHOLE FILES: this scan already matched 12 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. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/skills_browser.rs:434\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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a317651043f8f20ad3c17afa1fdfb173faaab4eaab0e0d9e5d05dd9e1c558bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/app/commands.rs:937-951 | priv/rust/tui/src/app/commands.rs:959-973 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/commands.rs:937\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68135beb706570329919bdfdc8547b985dedf2dad31b0b0cda9eb72d7936b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:1794-1808 | priv/rust/tui/src/app/event_loop.rs:1823-1837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/event_loop.rs:1794\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be3aaa6db749f5a16f8160b65692cdbc9937488d204e5a20545dbc9dd7916b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/components/chat/message.rs:556-570 | priv/rust/tui/src/components/chat/message.rs:606-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/chat/message.rs:556\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":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"3883e97030bbd35044daa5d39c2176508d026c940b31df3149ea941f67104f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:3407-3421 | priv/rust/tui/src/render/markdown.rs:1639-1653 \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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a97f40386e6167cb8e94aede06cf2684cf4f48136ce38fbefff906db7923f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:359-373 | priv/rust/tui/src/dialogs/sessions.rs:400-417 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/file_picker.rs:359\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":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea51f1dcfeb089c8fc62280b95e067517984d19f2366046e58c5e1e55809e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1716-1735 | priv/rust/tui/src/dialogs/onboarding.rs:1747-1767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1716\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3de5bbef7d17afe572cd98ae4466edaaffcbafaed4d9fe97f768a38dd0c3dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/dialogs/reasoning.rs:205-219 | priv/rust/tui/src/dialogs/sessions.rs:356-370 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/reasoning.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/reasoning.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a114daccd49fbebce3492c09873ab8790ca3764081698093e9793b844e21fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 9): priv/rust/tui/src/dialogs/config_editor.rs:345-356 | priv/rust/tui/src/dialogs/file_picker.rs:248-259 | priv/rust/tui/src/dialogs/model_picker.rs:1520-1531 | priv/rust/tui/src/dialogs/overdrive_confirm.rs:73-84 | priv/rust/tui/src/dialogs/plan_review.rs:128-140 | priv/rust/tui/src/dialogs/quit_confirm.rs:102-115 | priv/rust/tui/src/dialogs/reasoning.rs:164-175 | priv/rust/tui/src/dialogs/rewind.rs:148-159 | priv/rust/tui/src/dialogs/sessions.rs:268-279 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/config_editor.rs:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"339f795d1df1fd8c8015c5904ac8499386960314d5f9d564552c5837d1b5def2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): priv/rust/tui/src/dialogs/doctor_panel.rs:329-342 | priv/rust/tui/src/dialogs/memory_browser.rs:285-296 | priv/rust/tui/src/dialogs/persona_picker.rs:329-342 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/doctor_panel.rs:329\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/doctor_panel.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8016c3549df47724b0a9ff5168390b5e58050388614e68190edccd329404b875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): priv/rust/tui/src/dialogs/skills_browser.rs:350-363 | priv/rust/tui/src/dialogs/tasks_panel.rs:285-298 | priv/rust/tui/src/dialogs/tools_browser.rs:326-339 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tasks_panel.rs\u0060 as WHOLE FILES: this scan already matched 12 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. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/skills_browser.rs:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad83fabb252ddf07a6ccabdf68c226878111d63f6aa3f3bead3f6cde4cef5326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): priv/rust/tui/src/components/chat/mod.rs:628-641 | priv/rust/tui/src/components/chat/mod.rs:661-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/chat/mod.rs:628\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/mod.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"0391aec1c86f5b722244911977abdf1891646f05242a7ddfa05799c2deb53e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): priv/rust/tui/src/dialogs/mcp_approval.rs:234-247 | priv/rust/tui/src/dialogs/trust.rs:146-159 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/mcp_approval.rs\u0060 and \u0060priv/rust/tui/src/dialogs/trust.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/mcp_approval.rs:234\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ffffcb2fd748ba6c22f8a0040d18f6edcfc1abb3bf72e4659ee6edc0d171d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1737-1750 | priv/rust/tui/src/dialogs/onboarding.rs:1769-1782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80fdc2f3a0d3cad5b0d07236cf29f463763bca08561cf8fa95f04a0e9dc849b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): priv/rust/tui/src/render/latex.rs:308-321 | priv/rust/tui/src/render/latex.rs:375-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/latex.rs:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/latex.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69fadf510abf7255ac7d2fc34baf35cf4bdc8096c6a0720cf037b8d9a8b4ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): priv/rust/tui/src/render/markdown.rs:368-381 | priv/rust/tui/src/render/markdown.rs:409-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0948979284bb104b606899552ae34c61e3d41860b5b9f31ab0c9db9b702c0f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): priv/rust/tui/src/tools/references.rs:148-161 | priv/rust/tui/src/tools/references.rs:185-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/references.rs:148\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/references.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a91934558ebb4a713735d8f6c87a0431997c736a17f212fbfff9b4630de6537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): priv/rust/tui/src/dialogs/memory_browser.rs:319-331 | priv/rust/tui/src/dialogs/permissions_manager.rs:395-407 | priv/rust/tui/src/dialogs/persona_picker.rs:372-384 | priv/rust/tui/src/dialogs/skills_browser.rs:471-483 | priv/rust/tui/src/dialogs/tools_browser.rs:417-429 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/permissions_manager.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/memory_browser.rs:319\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":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b327dc9759772a4e7484a30faf8a6945a6aced157ce30bf13e63e889549cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/app/commands.rs:1133-1145 | priv/rust/tui/src/app/commands.rs:1158-1170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/commands.rs:1133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn execute_backend_command(\u0026mut\u0060 in one and \u0060crate) fn execute_backend_command_quiet(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd37da7a86b248952e497eb031ee8cee36de17a14826a8dd294c3d78a73bdc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:398-410 | priv/rust/tui/src/client/sse.rs:1569-1581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:398\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eca2577e7a8e29a889ad45fd06f69b79910561c64f111191088a457cd3f9510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/components/activity.rs:1489-1501 | priv/rust/tui/src/components/activity.rs:1519-1531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/activity.rs:1489\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e1e2e2ee72b60b6d4587481a4df32e7822fdf6b0006088fd67d2cc9a7abac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): priv/rust/tui/src/components/chat/thinking_box.rs:290-302 | priv/rust/tui/src/components/chat/thinking_box.rs:352-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/chat/thinking_box.rs:290\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":"priv/rust/tui/src/components/chat/thinking_box.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d697058bc7c6d91dc49f452e547738c320aeb15b5b338af2858c901dc5414e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/dialogs/mcp_approval.rs:187-199 | priv/rust/tui/src/dialogs/trust.rs:93-105 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/mcp_approval.rs\u0060 and \u0060priv/rust/tui/src/dialogs/trust.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/mcp_approval.rs:202\u0060 calls \u0060wrap_two\u0060 and \u0060priv/rust/tui/src/dialogs/trust.rs:108\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"44911a9d8c057b9428247666f19717bfec48393a95402e1181724503e9f2a114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 17): priv/rust/tui/src/dialogs/channels_panel.rs:148-159 | priv/rust/tui/src/dialogs/context_breakdown.rs:175-186 | priv/rust/tui/src/dialogs/cost_dashboard.rs:248-259 | priv/rust/tui/src/dialogs/doctor_panel.rs:204-215 | priv/rust/tui/src/dialogs/hooks_viewer.rs:175-186 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:125-136 | priv/rust/tui/src/dialogs/mcp_servers.rs:137-148 | priv/rust/tui/src/dialogs/memory_browser.rs:172-182 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:189-200 | priv/rust/tui/src/dialogs/permissions_manager.rs:216-227 | priv/rust/tui/src/dialogs/persona_picker.rs:200-211 | priv/rust/tui/src/dialogs/sandbox_picker.rs:140-151 | priv/rust/tui/src/dialogs/skills_browser.rs:272-283 | priv/rust/tui/src/dialogs/status_dashboard.rs:117-128 | priv/rust/tui/src/dialogs/tasks_panel.rs:227-238 | priv/rust/tui/src/dialogs/theme_picker.rs:121-132 | priv/rust/tui/src/dialogs/tools_browser.rs:248-259 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/context_breakdown.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/channels_panel.rs:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"99828aff437111ac8021380be59016fc995654fad363519065f061a1852e73b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): priv/rust/tui/src/dialogs/channels_panel.rs:206-216 | priv/rust/tui/src/dialogs/doctor_panel.rs:282-292 | priv/rust/tui/src/dialogs/memory_browser.rs:239-249 | priv/rust/tui/src/dialogs/permissions_manager.rs:301-311 | priv/rust/tui/src/dialogs/persona_picker.rs:278-289 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:206\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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40f044e443469ff2563f2170bc403ebd501515c1051212c429228b8cea666aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:3070-3081 | priv/rust/tui/src/app/event_loop.rs:3199-3210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/event_loop.rs:3070\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d351226190bbd484dacdc5ddc3d370dc6d97a2f2ec31afe4abf648528f1a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): priv/rust/tui/src/components/agents/mod.rs:1200-1211 | priv/rust/tui/src/components/agents/mod.rs:1495-1504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/agents/mod.rs:1200\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4089555691cb15c4d7ec1ea7cd55e05a8a8d8adfb135b620d31bc6a7137438d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:1325-1336 | priv/rust/tui/src/dialogs/model_picker.rs:1350-1361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7834e3e73ce6d74b485f9501f97b1323bc5ec8bf2c1180cf40906534e2c911f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): priv/rust/tui/src/dialogs/config_editor.rs:348-358 | priv/rust/tui/src/dialogs/file_picker.rs:251-261 | priv/rust/tui/src/dialogs/onboarding.rs:1068-1078 | priv/rust/tui/src/dialogs/reasoning.rs:167-177 | priv/rust/tui/src/dialogs/rewind.rs:151-161 | priv/rust/tui/src/dialogs/sessions.rs:271-281 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bb18a3f83f7b4b765aa3a3b2d105cc6bb99a5f949e8e972a8f76d55df02514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): priv/rust/tui/src/dialogs/doctor_panel.rs:275-285 | priv/rust/tui/src/dialogs/memory_browser.rs:232-242 | priv/rust/tui/src/dialogs/permissions_manager.rs:294-304 | priv/rust/tui/src/dialogs/persona_picker.rs:271-281 | priv/rust/tui/src/dialogs/skills_browser.rs:343-353 | priv/rust/tui/src/dialogs/tools_browser.rs:319-329 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/doctor_panel.rs:275\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":"priv/rust/tui/src/dialogs/doctor_panel.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6803fa20ecb3f8432ae876e921cd123fb00bd24c272db6d65d21969d3a0973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): priv/rust/tui/src/dialogs/channels_panel.rs:266-278 | priv/rust/tui/src/dialogs/doctor_panel.rs:332-344 | priv/rust/tui/src/dialogs/memory_browser.rs:288-298 | priv/rust/tui/src/dialogs/permissions_manager.rs:362-374 | priv/rust/tui/src/dialogs/persona_picker.rs:332-344 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:266\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b9806a097409f5a8921a521f218e79c76523e13aafb66de087e638c0d717c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): priv/rust/tui/src/client/http.rs:173-189 | priv/rust/tui/src/client/http.rs:207-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/http.rs:173\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":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8cf300fad523e3f71cbc755517701fd994cc1a291a005d98af45c9b03f9e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1590-1598 | priv/rust/tui/src/components/input/mod.rs:2525-2535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ab4bc9286c8a9f21dc8d44c2f4fbe2ecfdf42c886067c08d8aa6c8f16e245b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:875-885 | priv/rust/tui/src/dialogs/onboarding.rs:950-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:875\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/onboarding.rs:886\u0060 calls \u0060clear\u0060 and \u0060priv/rust/tui/src/dialogs/onboarding.rs:961\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d1a0f1461dcfefd318d61b000721cab0e99af7b4cd7cdb9239497e18b65621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): priv/rust/tui/src/dialogs/picker.rs:241-251 | priv/rust/tui/src/dialogs/reasoning.rs:213-220 \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 \u0060priv/rust/tui/src/dialogs/picker.rs:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/picker.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d821df52e277f526232be156afb0f83c0d38724ee5deea8749a51bae7a5e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): priv/rust/tui/src/dialogs/sandbox_picker.rs:95-105 | priv/rust/tui/src/dialogs/theme_picker.rs:81-89 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/sandbox_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/theme_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/sandbox_picker.rs:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb5f0a0abbdb2fe578bd31e516d4bd8fe57b3a2de654e37a1f1121f92536ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): priv/rust/tui/src/render/markdown.rs:1430-1440 | priv/rust/tui/src/render/markdown.rs:1880-1890 \u2014 both copies are in the same file, so extract the block 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28099b35125be945f8c5243e70348e068ec8315889861dc8df2e88c4c6799a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): priv/rust/tui/src/dialogs/memory_browser.rs:194-203 | priv/rust/tui/src/dialogs/persona_picker.rs:226-235 | priv/rust/tui/src/dialogs/skills_browser.rs:298-307 | priv/rust/tui/src/dialogs/tasks_panel.rs:252-261 | priv/rust/tui/src/dialogs/tools_browser.rs:274-283 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/persona_picker.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/memory_browser.rs:194\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":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"897e6102abc0151f4a8f7c7d475823eb1ecacd92d6826bde82dd95cdba360a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): priv/rust/tui/src/dialogs/memory_browser.rs:296-305 | priv/rust/tui/src/dialogs/permissions_manager.rs:372-381 | priv/rust/tui/src/dialogs/persona_picker.rs:342-351 | priv/rust/tui/src/dialogs/skills_browser.rs:448-457 | priv/rust/tui/src/dialogs/tools_browser.rs:394-403 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/permissions_manager.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/memory_browser.rs:296\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"223aa32712d6e33a1946aa78cf331919c2dd3f7a7b295c03a9cde699232bbd1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): priv/rust/tui/src/dialogs/channels_panel.rs:276-285 | priv/rust/tui/src/dialogs/doctor_panel.rs:342-351 | priv/rust/tui/src/dialogs/mcp_servers.rs:226-235 | priv/rust/tui/src/dialogs/tasks_panel.rs:370-379 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65fe55a8339af017a5388ba20dd107f27afc05fdb98d053baf191469236b56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): priv/rust/tui/src/components/agents/mod.rs:1362-1371 | priv/rust/tui/src/components/agents/mod.rs:1392-1401 | priv/rust/tui/src/components/agents/mod.rs:1417-1426 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/agents/mod.rs:1362\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/components/agents/mod.rs:1361\u0060 calls \u0060into\u0060 and \u0060priv/rust/tui/src/components/agents/mod.rs:1391\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/mod.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"28357fdedf4064fb5e86e7c42ebb233efe194d4c1c793a73e9bf6e31c967bd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): priv/rust/tui/src/dialogs/file_picker.rs:309-318 | priv/rust/tui/src/dialogs/model_picker.rs:2011-2019 | priv/rust/tui/src/dialogs/sessions.rs:328-337 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/file_picker.rs:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fcd7ac024c5041b562e8e7c6dc8de0abf5ffc5b0d3649e012e3316d530c4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): priv/rust/tui/src/render/markdown.rs:2166-2175 | priv/rust/tui/src/render/markdown.rs:2252-2261 | priv/rust/tui/src/render/markdown.rs:2322-2330 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:2166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d6c53f9214d5ea0378ab81b8f76e0caf8d633a7a5930188c2efc995428819a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:196-205 | priv/rust/tui/src/app/handle_actions.rs:217-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:196\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dd42f634594efc8f15df1b2b6ebe9d7330e47fed9955f4eb83a880f42da9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/dialogs/config_editor.rs:432-441 | priv/rust/tui/src/dialogs/reasoning.rs:228-238 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/reasoning.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/config_editor.rs:432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1a1794d46f95574123738aa697363dee2d928eb49d4930ff5954636ef90836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/dialogs/context_breakdown.rs:249-258 | priv/rust/tui/src/dialogs/context_breakdown.rs:302-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/context_breakdown.rs:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/context_breakdown.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16dd6cd13bdbe451999a804e6153bc60a2a57ebe1bdebc51186ab7f22b5bb8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1354-1363 | priv/rust/tui/src/dialogs/onboarding.rs:1390-1399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5769d889202d266e002c096befac1dd8c62b63a568567fdadd9e98af37fadaad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): priv/rust/tui/src/render/markdown.rs:319-326 | priv/rust/tui/src/render/markdown.rs:402-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:319\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1e3d6181712345fbe8c13866dac83594bcd5a3c17de069205138a5c2783e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/render/markdown.rs:2535-2544 | priv/rust/tui/src/render/markdown.rs:2545-2554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0cc9d47b4f7bd453a3f30d5e246aaf75ecb187e24b9d6ba07a091d21de2874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/view/onboarding_flow.rs:260-269 | priv/rust/tui/src/view/onboarding_flow.rs:904-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/view/onboarding_flow.rs:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"82be7adc463bdc96af8ea92cccefc0a0d7f398343caaba016869f696c768eaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 18): priv/rust/tui/src/components/completion_panel.rs:327-335 | priv/rust/tui/src/dialogs/channels_panel.rs:152-160 | priv/rust/tui/src/dialogs/context_breakdown.rs:179-187 | priv/rust/tui/src/dialogs/cost_dashboard.rs:252-260 | priv/rust/tui/src/dialogs/doctor_panel.rs:208-216 | priv/rust/tui/src/dialogs/hooks_viewer.rs:179-187 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:129-137 | priv/rust/tui/src/dialogs/mcp_servers.rs:141-149 | priv/rust/tui/src/dialogs/memory_browser.rs:175-183 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:193-201 | priv/rust/tui/src/dialogs/permissions_manager.rs:220-228 | priv/rust/tui/src/dialogs/persona_picker.rs:204-212 | priv/rust/tui/src/dialogs/sandbox_picker.rs:144-152 | priv/rust/tui/src/dialogs/skills_browser.rs:276-284 | priv/rust/tui/src/dialogs/status_dashboard.rs:121-129 | priv/rust/tui/src/dialogs/tasks_panel.rs:231-239 | priv/rust/tui/src/dialogs/theme_picker.rs:125-133 | priv/rust/tui/src/dialogs/tools_browser.rs:252-260 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/components/completion_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/cost_dashboard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"117d6a1838db515c003250e8237bd6973ff7912908967171e5c33e9839bf4952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): priv/rust/tui/src/dialogs/file_picker.rs:239-247 | priv/rust/tui/src/dialogs/model_picker.rs:1511-1519 | priv/rust/tui/src/dialogs/reasoning.rs:155-163 | priv/rust/tui/src/dialogs/rewind.rs:139-147 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dacfefc4e17f263cb7158f68f7ac8be82dcbc7f41aa2f00d6e6cf7031ad1f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): priv/rust/tui/src/components/notify.rs:74-82 | priv/rust/tui/src/notification/kitty.rs:56-64 | priv/rust/tui/src/notification/progress.rs:73-81 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/notify.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc76e03176255ef20e9aba72da209c067329783c776928525b7b06329f223ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): priv/rust/tui/src/dialogs/mcp_approval.rs:186-194 | priv/rust/tui/src/dialogs/onboarding.rs:1065-1073 | priv/rust/tui/src/dialogs/trust.rs:92-100 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/mcp_approval.rs\u0060 and \u0060priv/rust/tui/src/dialogs/trust.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/mcp_approval.rs:186\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":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"122028b235b8d9afdc7c6b720bb5d70230eef6793a4867a90107c2675f3ef985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): priv/rust/tui/src/tools/search.rs:56-64 | priv/rust/tui/src/tools/search.rs:117-125 | priv/rust/tui/src/tools/search.rs:205-213 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/search.rs:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/search.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e2c8e81c8a98ee1a2bfa762ffe84c404e61459ac952799edb38cf2a2948972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/components/chat/message.rs:1088-1096 | priv/rust/tui/src/components/chat/message.rs:1099-1107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bbd906f52a6152147fdbb4befaa584f839638d618f6686972bf573d3847562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1296-1302 | priv/rust/tui/src/util/fuzzy.rs:112-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/input/mod.rs:1296\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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"5907a19a0a3f8bae7c346d45b943914e11d02b2fa2dc8c7c1448cae12b1aa79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1567-1575 | priv/rust/tui/src/components/input/mod.rs:2511-2519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53f2f2599c61d2f38b682117b6f939ca111a8767bb47fd80a1f9b198ff59da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1739-1747 | priv/rust/tui/src/components/input/mod.rs:1769-1777 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/input/mod.rs:1739\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89832eb1f18612aeee44f8ecc21b5445d3c862f8c3644dc80b694343d64badd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/dialogs/claude_login.rs:436-444 | priv/rust/tui/src/dialogs/claude_login.rs:504-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/claude_login.rs:436\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/claude_login.rs:446\u0060 calls \u0060set\u0060, \u0060max\u0060 and \u0060priv/rust/tui/src/dialogs/claude_login.rs:515\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":"priv/rust/tui/src/dialogs/claude_login.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e134d010e2ed3576496fe28dfe55bbb0aa6fb38204911f3be66118ccd9ea919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/dialogs/command_palette.rs:309-317 | priv/rust/tui/src/dialogs/picker.rs:307-315 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/command_palette.rs\u0060 and \u0060priv/rust/tui/src/dialogs/picker.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/command_palette.rs:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/command_palette.rs:320\u0060 calls \u0060to_lowercase\u0060, \u0060contains\u0060 and \u0060priv/rust/tui/src/dialogs/picker.rs:318\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca61b0da9eb818de2511bbaee964e54679eb7b6f8e5c03de011e2079a2920036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:302-310 | priv/rust/tui/src/dialogs/model_picker.rs:1634-1641 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/file_picker.rs:302\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17d4bd5ab1daee79fbed976a086e29cb592ec175b3c8831c44234c81d958a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1497-1505 | priv/rust/tui/src/dialogs/onboarding.rs:1798-1806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1497\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"24034f08d15cf3b86f9b45a77539aa6fbcfa74fdb72c2d123f408ba29a0d783c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): priv/rust/tui/src/dialogs/permissions.rs:212-218 | priv/rust/tui/src/tools/file.rs:641-649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/permissions.rs:212\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d5e2b2509641f5aebdded62179133829c544e00cda55300b5c0312cd3b75e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): priv/rust/tui/src/tools/file.rs:65-73 | priv/rust/tui/src/tools/file.rs:213-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/file.rs:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/tools/file.rs:212\u0060 calls \u0060default\u0060, \u0060fg\u0060 and \u0060priv/rust/tui/src/tools/file.rs:62\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":"priv/rust/tui/src/tools/file.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"01288e66f9b4feb825566a8b235650795824faab7de2a1bb0693746249e55ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/voice/transcribe.rs:556-564 | priv/rust/tui/src/voice/transcribe.rs:620-628 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/voice/transcribe.rs:556\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/voice/transcribe.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacf1fab193ef8eecd5ecdfb09e4a218ba33674f698a7db374f66d952b36f3fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 17): priv/rust/tui/src/dialogs/channels_panel.rs:137-144 | priv/rust/tui/src/dialogs/context_breakdown.rs:164-171 | priv/rust/tui/src/dialogs/cost_dashboard.rs:237-244 | priv/rust/tui/src/dialogs/doctor_panel.rs:193-200 | priv/rust/tui/src/dialogs/hooks_viewer.rs:164-171 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:114-121 | priv/rust/tui/src/dialogs/mcp_servers.rs:126-133 | priv/rust/tui/src/dialogs/memory_browser.rs:161-168 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:178-185 | priv/rust/tui/src/dialogs/permissions_manager.rs:205-212 | priv/rust/tui/src/dialogs/persona_picker.rs:189-196 | priv/rust/tui/src/dialogs/sandbox_picker.rs:129-136 | priv/rust/tui/src/dialogs/skills_browser.rs:261-268 | priv/rust/tui/src/dialogs/status_dashboard.rs:106-113 | priv/rust/tui/src/dialogs/tasks_panel.rs:216-223 | priv/rust/tui/src/dialogs/theme_picker.rs:110-117 | priv/rust/tui/src/dialogs/tools_browser.rs:237-244 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/context_breakdown.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/channels_panel.rs:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c8f417f2e5d35fe3ebb185fd7ac38bfc94eb16231be15eac5e7d0ad89af071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): priv/rust/tui/src/dialogs/channels_panel.rs:290-297 | priv/rust/tui/src/dialogs/hooks_viewer.rs:261-268 | priv/rust/tui/src/dialogs/mcp_servers.rs:247-254 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:326-333 | priv/rust/tui/src/dialogs/tasks_panel.rs:384-391 | priv/rust/tui/src/dialogs/theme_picker.rs:256-263 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/hooks_viewer.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/channels_panel.rs:290\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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b1ad717659af2f7ce66de52b98ff9dc878d764ecb7ab14ef4930144d691bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): priv/rust/tui/src/dialogs/config_editor.rs:374-381 | priv/rust/tui/src/dialogs/model_picker.rs:2006-2012 | priv/rust/tui/src/dialogs/reasoning.rs:184-191 | priv/rust/tui/src/dialogs/rewind.rs:168-174 | priv/rust/tui/src/dialogs/sessions.rs:322-329 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/config_editor.rs:374\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c3fe79b30d268f2f2d56a9dd4605388e254900117506291cb4bd0db305956c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): priv/rust/tui/src/dialogs/config_editor.rs:398-405 | priv/rust/tui/src/dialogs/model_picker.rs:1715-1722 | priv/rust/tui/src/dialogs/model_picker.rs:2044-2051 | priv/rust/tui/src/dialogs/reasoning.rs:212-219 | priv/rust/tui/src/dialogs/sessions.rs:363-370 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 5 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":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e10cb7625a0fc334868625cd020691acfd750a0c779cadbedaa4d9de6e7973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): priv/rust/tui/src/app/commands.rs:1141-1148 | priv/rust/tui/src/app/commands.rs:1166-1173 | priv/rust/tui/src/app/handle_actions.rs:1014-1021 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/commands.rs:1141\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"124887b81559f95bc21675b430b3e8f8ca5f352128eeba8e45f68c6762ce8f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): priv/rust/tui/src/client/http.rs:1478-1486 | priv/rust/tui/src/client/http.rs:1494-1502 | priv/rust/tui/src/client/http.rs:1510-1518 \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":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c0746bd13eb4c3bd95271dfe81a4860d208d85e10d0ae6987a7343cae27c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): priv/rust/tui/src/components/chat/message.rs:1088-1093 | priv/rust/tui/src/components/chat/message.rs:1099-1104 | priv/rust/tui/src/components/chat/message.rs:1110-1117 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/message.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d83f626cf70bd03a15eaf430797f1e66c5080d137697364b103fb270002e3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): priv/rust/tui/src/app/commands.rs:274-280 | priv/rust/tui/src/app/handle_dialogs.rs:988-995 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_dialogs.rs:988\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e97e6f7b5f6a23c90faa9aefb3dc4c9e1632c46b727ebd7615b73652345c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:1784-1792 | priv/rust/tui/src/app/event_loop.rs:1814-1821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/event_loop.rs:1784\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"64527ad6dda0bba7dbd35decdfead9cc8d693b0ade0ad93ff84a7f7e18b409f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:2149-2156 | priv/rust/tui/src/app/handle_actions.rs:2161-2168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:2149\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75704807d6f3f8de4dc111c30f3999b456672ee7acec0141851fd5d611377ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/app/handle_dialogs.rs:1099-1106 | priv/rust/tui/src/app/handle_dialogs.rs:1119-1126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_dialogs.rs:1119\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_survey_key(\u0026mut\u0060 in one and \u0060crate) fn decline_survey(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"597c2048936acdab7e28c4a641c46ffbda4c21a76791243362dd10ced64374a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1752-1759 | priv/rust/tui/src/components/input/mod.rs:1821-1828 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/input/mod.rs:1752\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"279d5127d15faaad66e946a760e8f2927364729bd4b980ee14d8721bf0617bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/command_palette.rs:296-303 | priv/rust/tui/src/dialogs/config_editor.rs:463-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/command_palette.rs:296\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e7e2f2b0f69d9528966b65157f95c6ff31ff1c2ace96daa2560ea8be0ce6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:381-388 | priv/rust/tui/src/dialogs/reasoning.rs:244-251 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/reasoning.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/file_picker.rs:381\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f15fccfebe535f2153dc6d8f539d090578e3b0f8f338af80d52db4d750f6171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1284-1291 | priv/rust/tui/src/dialogs/onboarding.rs:1468-1475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2111da56046433892ca4c750390c56de5d3e1afb4515630bfd79204ff708fbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): priv/rust/tui/src/render/markdown.rs:224-231 | priv/rust/tui/src/render/markdown.rs:233-240 | priv/rust/tui/src/render/markdown.rs:241-246 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"535b1bd6d1a2947a4e454c23b4a2ae0d26a4ae52447f9d49f8bed453eda8f469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/tools/mod.rs:846-853 | priv/rust/tui/src/tools/mod.rs:900-907 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/mod.rs:846\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/mod.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c1072f3084c75216a0146ff07c041712925435146393be16a6903a98abb5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 19): priv/rust/tui/src/dialogs/channels_panel.rs:134-140 | priv/rust/tui/src/dialogs/context_breakdown.rs:161-167 | priv/rust/tui/src/dialogs/cost_dashboard.rs:234-240 | priv/rust/tui/src/dialogs/doctor_panel.rs:190-196 | priv/rust/tui/src/dialogs/hooks_viewer.rs:161-167 | priv/rust/tui/src/dialogs/keybindings_viewer.rs:111-117 | priv/rust/tui/src/dialogs/mcp_approval.rs:170-172 | priv/rust/tui/src/dialogs/mcp_servers.rs:123-129 | priv/rust/tui/src/dialogs/memory_browser.rs:159-164 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:175-181 | priv/rust/tui/src/dialogs/permissions_manager.rs:202-208 | priv/rust/tui/src/dialogs/persona_picker.rs:186-192 | priv/rust/tui/src/dialogs/sandbox_picker.rs:126-132 | priv/rust/tui/src/dialogs/skills_browser.rs:258-264 | priv/rust/tui/src/dialogs/status_dashboard.rs:103-109 | priv/rust/tui/src/dialogs/tasks_panel.rs:213-219 | priv/rust/tui/src/dialogs/theme_picker.rs:107-113 | priv/rust/tui/src/dialogs/tools_browser.rs:234-240 | priv/rust/tui/src/dialogs/trust.rs:83-89 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/context_breakdown.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/dialogs/sandbox_picker.rs:125\u0060 calls \u0060saturating_sub\u0060 and \u0060priv/rust/tui/src/dialogs/mcp_approval.rs:170\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0194643c71e5d0f92f676f3124ac3f0be1d9584d01099dd94c1e0e3cfe4055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): priv/rust/tui/src/dialogs/doctor_panel.rs:302-308 | priv/rust/tui/src/dialogs/memory_browser.rs:258-264 | priv/rust/tui/src/dialogs/persona_picker.rs:301-307 | priv/rust/tui/src/dialogs/tasks_panel.rs:337-343 | priv/rust/tui/src/dialogs/tools_browser.rs:356-362 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/doctor_panel.rs:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/tools_browser.rs:363\u0060 calls \u0060truncate_chars\u0060, \u0060saturating_sub\u0060, \u0060cols\u0060 and \u0060priv/rust/tui/src/dialogs/tasks_panel.rs:344\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/doctor_panel.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba702ec66186313f28a037c63adb3e5280b3638a1ba9bdddddae288ba919246e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): priv/rust/tui/src/client/http.rs:1386-1392 | priv/rust/tui/src/client/http.rs:1482-1488 | priv/rust/tui/src/client/http.rs:1498-1504 | priv/rust/tui/src/client/http.rs:1514-1520 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/http.rs:1386\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/http.rs"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"200d3d6ad9956e4e0ec32571a91e5022f9a5408606e119fc4ba8dbac721c49ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): priv/rust/tui/src/render/markdown.rs:2170-2176 | priv/rust/tui/src/render/markdown.rs:2202-2208 | priv/rust/tui/src/render/markdown.rs:2256-2262 | priv/rust/tui/src/render/markdown.rs:2325-2331 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/render/markdown.rs:2170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/render/markdown.rs:2177\u0060 calls \u0060peek\u0060, \u0060Some\u0060, \u0060next\u0060 and \u0060priv/rust/tui/src/render/markdown.rs:2209\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":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a033099807dcb300ca04f4396735993ef85422b5b520fa9fce89d4d75f976ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/app/commands.rs:1181-1187 | priv/rust/tui/src/app/handle_actions.rs:1392-1398 \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 \u0060priv/rust/tui/src/app/commands.rs:1181\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f8432a10af8f72efdd7ee49295932cc01ee028fc8367564a366af75011d31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/app/event_loop.rs:1352-1358 | priv/rust/tui/src/app/event_loop.rs:1409-1418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab4ac7353bcd44bbb6e9d129597818ffe1902a46fa0516e70706ae37db4b001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:1681-1687 | priv/rust/tui/src/app/handle_actions.rs:1696-1702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:1681\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"0661e08b8c4eb826b36f3fb703fffbd6f5cba27d4dd3d09de5a21b45a9350587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:1750-1756 | priv/rust/tui/src/app/handle_actions.rs:1966-1972 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:1750\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdb2ccee2db53405c277dbc2c923b099b1bcf2eeebaad41247678c11a0097cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/app/handle_dialogs.rs:1212-1218 | priv/rust/tui/src/app/keymap_dispatch.rs:279-285 \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 \u0060priv/rust/tui/src/app/handle_dialogs.rs:1212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn cancel_selected_agent(\u0026mut\u0060 in one and \u0060crate) fn kill_all_agents(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"234ad427945d9a3cf999f50c3e979a77a4a9eefb509921eb0522911d5b84be02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/components/agents/render.rs:719-726 | priv/rust/tui/src/components/agents/render.rs:751-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/agents/render.rs:719\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe9d59a61636260958a1bef5977ba9dc3bc28a24866b11e3d942b57bab21fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:3390-3396 | priv/rust/tui/src/render/markdown.rs:1630-1636 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/input/mod.rs:3390\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":3390}}}],"partialFingerprints":{"codehealthFindingId/v1":"858661c7ad4d4f0307b429b13adb8c169ef0151a60119f7095ef7f052ceb7e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): priv/rust/tui/src/dialogs/channels_panel.rs:248-252 | priv/rust/tui/src/dialogs/doctor_panel.rs:307-313 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:248\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"568bdd53f4ab9989cac0c5fae0556bfbe924b21ac317cac71c3a53073951bdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/dialogs/command_palette.rs:153-159 | priv/rust/tui/src/dialogs/picker.rs:154-160 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/command_palette.rs\u0060 and \u0060priv/rust/tui/src/dialogs/picker.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/picker.rs:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"84869a32c43921bd74a49d7751562efdcffa802319c93d4b59fcbdb0c3750721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/dialogs/context_breakdown.rs:316-322 | priv/rust/tui/src/dialogs/status_dashboard.rs:272-278 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/context_breakdown.rs\u0060 and \u0060priv/rust/tui/src/dialogs/status_dashboard.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/context_breakdown.rs:316\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":"priv/rust/tui/src/dialogs/context_breakdown.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3deb0bfa34955c112046ffdb7f0622404ea36757239343a3820d6369cf2ea607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/dialogs/sandbox_picker.rs:173-179 | priv/rust/tui/src/dialogs/theme_picker.rs:141-147 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/sandbox_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/theme_picker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb0b4ff96d9bacfcaaca3e58ce582dcd50a99d9daeeb13e905c9b596bc7febf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): priv/rust/tui/src/dialogs/command_palette.rs:153-159 | priv/rust/tui/src/dialogs/file_picker.rs:239-244 | priv/rust/tui/src/dialogs/model_picker.rs:1511-1516 | priv/rust/tui/src/dialogs/picker.rs:154-159 | priv/rust/tui/src/dialogs/reasoning.rs:155-160 | priv/rust/tui/src/dialogs/rewind.rs:139-144 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/command_palette.rs\u0060 and \u0060priv/rust/tui/src/dialogs/picker.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060priv/rust/tui/src/dialogs/command_palette.rs:160\u0060 calls \u0060title\u0060, \u0060styled\u0060, \u0060modal_title\u0060 and \u0060priv/rust/tui/src/dialogs/file_picker.rs:245\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/command_palette.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"179c2a37152a78828d0b64dd87383c3e7b911dcc73857035bb72d396e708ab1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): priv/rust/tui/src/app/handle_actions.rs:2150-2156 | priv/rust/tui/src/app/handle_actions.rs:2162-2168 | priv/rust/tui/src/app/handle_actions.rs:2173-2179 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_actions.rs:2150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a226e583ea79e200a6c5b0522692bfb76ab0582b00ee9a6541fa2f60fc9e3f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): priv/rust/tui/src/dialogs/channels_panel.rs:247-252 | priv/rust/tui/src/dialogs/doctor_panel.rs:306-312 | priv/rust/tui/src/dialogs/tools_browser.rs:360-365 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:247\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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c353a6bfd165d57f1fdf1f80d006e0b146b577deac6e71d7bdde5e92eb0ea302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/app/handle_actions.rs:1003-1009 | priv/rust/tui/src/app/handle_dialogs.rs:363-368 \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 \u0060priv/rust/tui/src/app/handle_actions.rs:1003\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"0040823799a53f263f7af5e1369416d8aff35a23ce27d0c7636f4ec049649f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/clipboard.rs:233-238 | priv/rust/tui/src/components/osc8.rs:229-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/clipboard.rs:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/clipboard.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ebb7e1ef389e597a3fe736fdd76bc62c1d34cef1095991c31899aae4dcda40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:1619-1624 | priv/rust/tui/src/dialogs/model_picker.rs:2003-2008 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/model_picker.rs:1619\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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c34f79cfea863b4807363aedf66add2997c12ed87d893f5cfe445ea94b0df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:2551-2556 | priv/rust/tui/src/dialogs/onboarding.rs:614-621 \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 \u0060priv/rust/tui/src/dialogs/model_picker.rs:2551\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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1627235bba3b7e076d72c79ab46b4c76c41c0b7502b24bd05ed748f321d1206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/dialogs/skills_browser.rs:178-183 | priv/rust/tui/src/dialogs/tools_browser.rs:168-173 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 301 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/skills_browser.rs:178\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cbcbc06be34beab4f72f583c86d5c4d471ff5b8156acf5d8feaba7fdbfcafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): priv/rust/tui/src/dialogs/config_editor.rs:380-384 | priv/rust/tui/src/dialogs/file_picker.rs:309-313 | priv/rust/tui/src/dialogs/model_picker.rs:1640-1644 | priv/rust/tui/src/dialogs/model_picker.rs:2011-2015 | priv/rust/tui/src/dialogs/reasoning.rs:190-194 | priv/rust/tui/src/dialogs/rewind.rs:173-177 | priv/rust/tui/src/dialogs/sessions.rs:328-332 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c44f4e2f895800e425f761bef6571734f650a575ab4402e5da398780ac67b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): priv/rust/tui/src/dialogs/config_editor.rs:375-381 | priv/rust/tui/src/dialogs/model_picker.rs:1959-1963 | priv/rust/tui/src/dialogs/model_picker.rs:2007-2012 | priv/rust/tui/src/dialogs/reasoning.rs:185-191 | priv/rust/tui/src/dialogs/rewind.rs:169-174 | priv/rust/tui/src/dialogs/sessions.rs:323-329 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/config_editor.rs\u0060 and \u0060priv/rust/tui/src/dialogs/model_picker.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/config_editor.rs:375\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":"priv/rust/tui/src/dialogs/config_editor.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"725b9f87854640288c1ada0271db747e1855c9fe32bf1a38581ddcb4cf5f2a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): priv/rust/tui/src/dialogs/channels_panel.rs:98-102 | priv/rust/tui/src/dialogs/hooks_viewer.rs:125-129 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:139-143 | priv/rust/tui/src/dialogs/tasks_panel.rs:156-160 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/hooks_viewer.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/channels_panel.rs:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"57053ebb43f2e88b9a24dc5838c0cadf13da30950bda980bcf0fe8d98fe114bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/app/commands.rs:1006-1010 | priv/rust/tui/src/app/handle_dialogs.rs:739-743 \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 \u0060priv/rust/tui/src/app/commands.rs:1006\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f12e2b2c6701250634b1bb244be5613fe5f6e86162aa5b60b25d7036262f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/components/completion_panel.rs:277-284 | priv/rust/tui/src/dialogs/cost_dashboard.rs:216-223 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/components/completion_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/cost_dashboard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/completion_panel.rs:277\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":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6204058ef63adec52c28b740355a109f20f958a927c2233a84cbb4680aaa5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:234-238 | priv/rust/tui/src/dialogs/sessions.rs:249-253 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5592af4886a4dc84214dca2260deae799032228625fcfc1e9348bfbd22fe8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:1953-1959 | priv/rust/tui/src/dialogs/model_picker.rs:1990-1996 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e74426752d563e1bf7acf3b64718866e98afefc61326750bbf14b28c4006e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 14): priv/rust/tui/src/dialogs/channels_panel.rs:131-133 | priv/rust/tui/src/dialogs/cost_dashboard.rs:231-233 | priv/rust/tui/src/dialogs/doctor_panel.rs:187-189 | priv/rust/tui/src/dialogs/hooks_viewer.rs:158-160 | priv/rust/tui/src/dialogs/mcp_servers.rs:120-122 | priv/rust/tui/src/dialogs/memory_browser.rs:156-158 | priv/rust/tui/src/dialogs/metrics_dashboard.rs:172-174 | priv/rust/tui/src/dialogs/onboarding.rs:1039-1043 | priv/rust/tui/src/dialogs/permissions_manager.rs:199-201 | priv/rust/tui/src/dialogs/persona_picker.rs:183-185 | priv/rust/tui/src/dialogs/reasoning.rs:150-154 | priv/rust/tui/src/dialogs/skills_browser.rs:255-257 | priv/rust/tui/src/dialogs/tasks_panel.rs:210-212 | priv/rust/tui/src/dialogs/tools_browser.rs:231-233 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/cost_dashboard.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/dialogs/channels_panel.rs:131\u0060 calls \u0060min\u0060 and \u0060priv/rust/tui/src/dialogs/onboarding.rs:1039\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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e59551f141f715bf1b26628001bc16343e1463b6fa78093d461a44787b1368d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1182-1186 | priv/rust/tui/src/dialogs/onboarding.rs:1211-1215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1182\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"991da8af9d9a743003d3ce65a586039f8978c60fe61e360248cc065a2905a010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/render/markdown.rs:2359-2366 | priv/rust/tui/src/render/markdown.rs:2369-2376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"729faa3f21a5f251e63d249ee7c03d55c7ad77e497ded2eada4d5f5de369b02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): priv/rust/tui/src/dialogs/skills_browser.rs:103-130 | priv/rust/tui/src/dialogs/tools_browser.rs:93-120 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 301 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060priv/rust/tui/src/dialogs/skills_browser.rs:98\u0060 calls \u0060iter\u0060, \u0060any\u0060, \u0060to_lowercase\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs:88\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e6d48526b54ba93a1e6add3590987b84e39bf5fdacc4ade3f0cfe8b6568b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): priv/rust/tui/src/dialogs/skills_browser.rs:133-151 | priv/rust/tui/src/dialogs/tools_browser.rs:123-141 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 301 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e77069f855e374083368882d0e8129c8b70a3b34c5bd877e96eb8b8534c38b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/channels_panel.rs:65-72 | priv/rust/tui/src/dialogs/tasks_panel.rs:73-80 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tasks_panel.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaac2da51a458e134efb0746b81eb23b62ecf4a1afc6a798fcbed42ade2ccfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:138-146 | priv/rust/tui/src/dialogs/sessions.rs:107-115 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"10069bbcba20683531335ff7cdb2cdae30e0d84d678273b6ca74489fd5bbbf17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/dialogs/file_picker.rs:148-153 | priv/rust/tui/src/dialogs/sessions.rs:117-122 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b662f9f27efba653d4488400b966376b510c0c0fc33282b4a7752e0234a520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): priv/rust/tui/src/dialogs/memory_browser.rs:42-50 | priv/rust/tui/src/dialogs/permissions_manager.rs:67-75 | priv/rust/tui/src/dialogs/skills_browser.rs:74-82 | priv/rust/tui/src/dialogs/tools_browser.rs:68-76 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/memory_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/permissions_manager.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/memory_browser.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"508b662563afa0d8ebe1dde7ffbe859687c1035d41d629e62f0ced9a8912de3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/dialogs/skills_browser.rs:154-158 | priv/rust/tui/src/dialogs/tools_browser.rs:144-148 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tools_browser.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 301 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"743e048b8c8aeed33249882cb4061ffbb5ec095adbdfb179b17c1a7db9fe37e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:810-822 | priv/rust/tui/src/client/sse.rs:844-860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:810\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"2508c1e7b889186f44a20c39640f544f46b11a58a2b52fbbfd08682e010cdb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): priv/rust/tui/src/tools/diagnostics.rs:38-52 | priv/rust/tui/src/tools/todos.rs:30-44 \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 \u0060priv/rust/tui/src/tools/diagnostics.rs:38\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":"priv/rust/tui/src/tools/diagnostics.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3047003766e55782ac02c74a2e7ba1b209975aab5ef16e1d5efbc917d44d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:2337-2349 | priv/rust/tui/src/dialogs/model_picker.rs:2350-2357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/model_picker.rs:2337\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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2337}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c637e7ee86e0ea509054e6eecd7eba1f6a1a78e450cde14fe9f87f8bc72763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): priv/rust/tui/src/app/handle_dialogs.rs:1360-1372 | priv/rust/tui/src/app/handle_dialogs.rs:1403-1413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/handle_dialogs.rs:1360\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaa02882c8212dc75b581231602b88e11ae9bef6c35b6e5f5c8547e1d75c15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): priv/rust/tui/src/tools/monitor.rs:35-47 | priv/rust/tui/src/tools/sleep.rs:34-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/monitor.rs: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. 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":"priv/rust/tui/src/tools/monitor.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f9dd394eb681ce3cbf848bcaa47f60ab69da540b2048765435eda2581841f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:2117-2128 | priv/rust/tui/src/client/sse.rs:2383-2394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:2117\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0cfc150785ba7dac267bc70663b95069710cb041113c8a46c64585eca1cb8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:2277-2287 | priv/rust/tui/src/client/sse.rs:2329-2336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:2277\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":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3920e949c86c71775124c332abdf33003f16f8f400757e094147caaa30e2100b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): priv/rust/tui/src/dialogs/channels_panel.rs:276-285 | priv/rust/tui/src/dialogs/doctor_panel.rs:342-351 | priv/rust/tui/src/dialogs/mcp_servers.rs:226-235 | priv/rust/tui/src/dialogs/memory_browser.rs:296-305 | priv/rust/tui/src/dialogs/permissions_manager.rs:372-381 | priv/rust/tui/src/dialogs/persona_picker.rs:342-351 | priv/rust/tui/src/dialogs/sandbox_picker.rs:270-280 | priv/rust/tui/src/dialogs/skills_browser.rs:448-457 | priv/rust/tui/src/dialogs/tasks_panel.rs:370-379 | priv/rust/tui/src/dialogs/tools_browser.rs:394-403 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/channels_panel.rs\u0060 and \u0060priv/rust/tui/src/dialogs/doctor_panel.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060priv/rust/tui/src/dialogs/channels_panel.rs:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/channels_panel.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"675aa06a83c1e1d323f22c3c2e2b3c323bc4f3449d8fb68bce04f4cfc521634c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:2395-2405 | priv/rust/tui/src/client/sse.rs:2496-2506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:2395\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9735238ede4b7dc3431bc73df68176a0e363075248b229f2879e8ac5e8a514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1539-1547 | priv/rust/tui/src/dialogs/onboarding.rs:1781-1790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1539\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":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73b05ed8bc05aeac26f9cc82ef7e07241eb24954f5de38c33660fab058a4bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): priv/rust/tui/src/app/commands.rs:942-951 | priv/rust/tui/src/app/commands.rs:964-973 | priv/rust/tui/src/app/commands.rs:1031-1040 | priv/rust/tui/src/app/commands.rs:1101-1110 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/commands.rs:942\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cb0004ef10a6d649f2a9678b2d46b4f7ede7a1919453a41786c3f3f1e9b61e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): priv/rust/tui/src/voice/transcribe.rs:568-577 | priv/rust/tui/src/voice/transcribe.rs:632-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/voice/transcribe.rs:568\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":"priv/rust/tui/src/voice/transcribe.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"635b32a996d7e570a9ffe5802ca26fb29cedece0e6b37afabcfed59487f5ac15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): priv/rust/tui/src/dialogs/onboarding.rs:1229-1238 | priv/rust/tui/src/dialogs/onboarding.rs:1422-1431 | priv/rust/tui/src/dialogs/onboarding.rs:1492-1501 | priv/rust/tui/src/dialogs/onboarding.rs:1557-1566 | priv/rust/tui/src/dialogs/onboarding.rs:1709-1718 | priv/rust/tui/src/dialogs/onboarding.rs:1793-1802 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060priv/rust/tui/src/dialogs/onboarding.rs:1433\u0060 calls \u0060is_empty\u0060 and \u0060priv/rust/tui/src/dialogs/onboarding.rs:1568\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4942b0e5cb0e32773fe2d4dd902b7986174bd4b6d7af55ebcb63f67e9905602e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): priv/rust/tui/src/dialogs/onboarding.rs:1538-1544 | priv/rust/tui/src/dialogs/onboarding.rs:1572-1578 | priv/rust/tui/src/dialogs/onboarding.rs:1779-1787 | priv/rust/tui/src/dialogs/onboarding.rs:1883-1890 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1538\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":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5d36cf6666a61924b07fc76c5513fb7e9ab4b584087213352c4ca540de971b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/view/onboarding_flow.rs:939-947 | priv/rust/tui/src/view/onboarding_flow.rs:953-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/view/onboarding_flow.rs:939\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e47b89dc875bc0bcced0b377de3f1a2edc94b282269fc8148d146a4cd8268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:1802-1810 | priv/rust/tui/src/client/sse.rs:2029-2037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"c626cafd28c6f88239b608e262dd2bcdef09eefe192d94ac443295055aacccd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): priv/rust/tui/src/tools/search.rs:85-93 | priv/rust/tui/src/tools/search.rs:148-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/tools/search.rs:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/search.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd9d303086be67306dc2311e476244c5c4d2c9856338735fcfdf83eac84b6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/rewind.rs:306-313 | priv/rust/tui/src/dialogs/sessions.rs:443-451 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/rewind.rs\u0060 and \u0060priv/rust/tui/src/dialogs/sessions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/rewind.rs:306\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/rewind.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ce43607e31b2a0efd51a0d33befa087431b0e4015c3b1bc02889e9509a3e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:1754-1761 | priv/rust/tui/src/client/sse.rs:1768-1775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d984194a3b8b3d8339d80ed2ef195b474f9ac5da097accd0667e76093fffe420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/model_picker.rs:1701-1708 | priv/rust/tui/src/dialogs/model_picker/local.rs:534-541 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/model_picker.rs:1701\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57934e3252d9e343e63dab88cd06abcdcacb5ba624661289e6fbffab777972a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): priv/rust/tui/src/dialogs/mcp_approval.rs:239-246 | priv/rust/tui/src/dialogs/onboarding.rs:1321-1328 | priv/rust/tui/src/dialogs/trust.rs:151-158 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/mcp_approval.rs\u0060 and \u0060priv/rust/tui/src/dialogs/trust.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/mcp_approval.rs:239\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":"priv/rust/tui/src/dialogs/mcp_approval.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efd8ea76b7e3fbce10204391263b43c7433761504494c31b78ec15f105cf850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): priv/rust/tui/src/dialogs/status_dashboard.rs:142-149 | priv/rust/tui/src/dialogs/status_dashboard.rs:170-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/status_dashboard.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4bd0c9abb6e7445aec37cd396bab5669a98ab94330405bbea944f364773387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:799-805 | priv/rust/tui/src/client/sse.rs:833-839 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:799\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f38d2b689485e7be3440d2cda54e274ff6a57dfafbffeb7897274a9637c24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): priv/rust/tui/src/client/sse.rs:2122-2128 | priv/rust/tui/src/client/sse.rs:2388-2394 | priv/rust/tui/src/client/sse.rs:2489-2495 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:2122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":2122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a6609db3f13e7aeeb1762ebe0393ae0cc1df953046eee61d83654d9891d0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): priv/rust/tui/src/dialogs/file_picker.rs:264-270 | priv/rust/tui/src/dialogs/reasoning.rs:180-186 | priv/rust/tui/src/dialogs/rewind.rs:164-170 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/file_picker.rs\u0060 and \u0060priv/rust/tui/src/dialogs/reasoning.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/file_picker.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5d5a855a44ad22a5be81e814de2a95f31e8ba7faf846828738379bd8c76789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/client/sse.rs:526-532 | priv/rust/tui/src/client/sse.rs:574-580 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/client/sse.rs:526\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf5821ccdcab2883e574c0fb8bc49377bf63421add901b42f806cb38f0db7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1336-1342 | priv/rust/tui/src/dialogs/onboarding.rs:1508-1514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bb2af48272fc6454687285f83e12d801c7df251ff97c5c7915f09022c0b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/voice/transcribe.rs:581-586 | priv/rust/tui/src/voice/transcribe.rs:645-650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/voice/transcribe.rs:581\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":"priv/rust/tui/src/voice/transcribe.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3b79b3165c122e18d05e6870b460b3ec320838ea8d290ceece8b57cc92084d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1192-1196 | priv/rust/tui/src/dialogs/onboarding.rs:1201-1206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1192\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"de062cedaf8dec7725b16daeb96d34646edd102d7c4a73cca516b6dd75d3340c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/components/input/mod.rs:1170-1175 | priv/rust/tui/src/components/input/mod.rs:2458-2462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d588a73fd79542bb846aa77e108eae25027d1aa9c1fbd0fbe2e8a2d3484c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/dialogs/onboarding.rs:1175-1179 | priv/rust/tui/src/dialogs/onboarding.rs:1212-1216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/dialogs/onboarding.rs:1175\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/onboarding.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd61bc7d4951e8e8d25718608e374d4ea5e77ccbe4568dfe7763884d66a570b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/app/update.rs:697-702 | priv/rust/tui/src/app/update.rs:776-781 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/app/update.rs:697\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7748654d64c28e5b6ddecd6e7a95037aacd5057f2cf25bc4a974eb6e2d3e2cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): priv/rust/tui/src/components/completion_panel.rs:177-182 | priv/rust/tui/src/components/completion_panel.rs:197-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060priv/rust/tui/src/components/completion_panel.rs:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/completion_panel.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bc635c8079087b2bb6debfb0df0e329f93f0d8803deb4ae3b865e839ce1636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): priv/rust/tui/src/config/cli.rs:7-11 | priv/rust/tui/src/config/mod.rs:155-159 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/config/cli.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d192631b500d56580b8e195bf79581abb993755e3a05f5cd959d2624c861472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): priv/rust/tui/src/dialogs/skills_browser.rs:163-168 | priv/rust/tui/src/dialogs/tasks_panel.rs:137-142 | priv/rust/tui/src/dialogs/tools_browser.rs:153-158 \u2014 before extracting anything, compare \u0060priv/rust/tui/src/dialogs/skills_browser.rs\u0060 and \u0060priv/rust/tui/src/dialogs/tasks_panel.rs\u0060 as WHOLE FILES: this scan already matched 12 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cfee9fcbbdaa2ec5537cbe20b47b0ae352986221caf0b22add92328e1ae661"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (71 shared lines): bench/swebench/run_bench.py:561-672 | bench/swebenchpro/run_bench.py:489-592 \u2014 These two members are variants of one another: 71 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":"bench/swebench/run_bench.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6787a95034f585d8943e5225bbdbb80baa56c021aab2b437db5eb2bcd7ede688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): bench/recoverybench/delta_report.py:212-258 | bench/terminalbench/report.py:805-1050 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/recoverybench/delta_report.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd4e81eed5f7fef8600294471791f8ef81beb78f9248280ea2b47c0ee280d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): bench/swebench/run_bench.py:203-251 | bench/swebenchpro/run_bench.py:56-102 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd411a07f1d467f16f98788552c4bb9aab3fa72416015ab237038f0ebf69aea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): bench/swebench/run_bench.py:94-184 | bench/swebenchpro/dataset.py:201-276 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"488deb765c43ae90b6b4a3abb3964ec94c039ed43cdf0870bd99cd2252c989c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/optimal_system_agent/sandbox/e2b.ex:107-139 | lib/optimal_system_agent/sandbox/vercel.ex:102-127 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/e2b.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"71620fff7b75767014e8fcb8c1ec6985d3ba38e549277344ff2539f9cb8b8f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:212-222 | lib/optimal_system_agent/sandbox/miosa_cli.ex:227-237 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd3801cc46b0fdf9b6dc62c0e944ef3f2c1c8c15d05884b7607eeecd8f2bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/sandbox/e2b.ex:157-166 | lib/optimal_system_agent/sandbox/e2b.ex:171-179 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/e2b.ex"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"688e6d697192f1aa3ffa9f4f45aea5379d28be136ea52e59510427307f5742cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): bench/modelsweep/paired.py:40-48 | bench/terminalbench/paired_report.py:46-54 | bench/terminalbench/reprice.py:131-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/modelsweep/paired.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb107fbf55f71a2d3a83c2726be74f6896a0784444b127dc898c9375492720b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): bench/terminalbench/failure_shape.py:112-124 | scripts/engagement_replay.py:143-155 \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":"bench/terminalbench/failure_shape.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d184c6ef4d2f1323da5e6808f3ca964274eed59c0d349a1b3a9a0b2a77db89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:60-69 | lib/optimal_system_agent/sandbox/miosa_cli.ex:77-85 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d376d9d1b8250d7186cb8539612e286dfd3d1874781b2f269ffb37a3f55dcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:158-162 | lib/optimal_system_agent/sandbox/miosa.ex:167-171 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d20802f267d2f90acd80e7043879241dcc7e05f14c76cce51b7a7cb01731d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): bench/swebench/airgap.py:581-584 | bench/swebench/cwd_audit.py:65-68 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/airgap.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"70891d13d54525cd3e7677c74a4e35d2bf71787959da8fb5a6194bdfd6116d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): bench/swebench/run_bench.py:676-694 | bench/swebenchpro/workspace.py:376-387 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b373c093c2cbe8ecb525e66d80b7e9bfd3df328e943b6121e14eede6a2a9f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): bench/swebench/run_bench.py:49-53 | bench/swebenchpro/dataset.py:52-59 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1abdda811379b67a58b9af7c1dfc7104f25a09abbed0b19ce460c1d3f48e61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): bench/osabench/fixtures/acme/lib/acme/accounts.ex:5-9 | bench/osabench/fixtures/acme/lib/acme/newsletter.ex:5-9 | bench/osabench/fixtures/acme/lib/acme/users.ex:5-10 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/osabench/fixtures/acme/lib/acme/accounts.ex"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"069bf573b1fbd8ef4bd3abb9e2de48162ea240f04ed21e9ce99d398038cdaa70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): bench/swebench/run_bench.py:188-191 | bench/swebenchpro/evaluate.py:277-280 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1dd464dc6d08ff0878ad19d404edd797b1cd3fbf264512ca58dbcb80a1ad9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): bench/headtohead/report_h2h.py:584-589 | bench/swebench/report.py:753-758 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/headtohead/report_h2h.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b82c3ab1e8a068e28ae8b8a1801268bee52df31060158d87dc9510efe035292"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:202-207 | lib/optimal_system_agent/sandbox/miosa_cli.ex:215-222 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a692f4506972c30881f5c52d666614967bc7fd22e2c60f5467f3fd834f235627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:245-248 | lib/optimal_system_agent/sandbox/miosa_cli.ex:252-255 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"196b696572e8124949538f8e1c4c71a6631b8c60a205741b99e4c1ad2d56ca47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): bench/scaffold/paired.py:64-69 | bench/swebenchpro/ablation.py:53-61 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/scaffold/paired.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"90251a280d2ae9eb41b4e127809eb75fb54f18fa441f08574fadf7bb3206ebd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): bench/headtohead/attribution.py:209-214 | bench/terminalbench/report.py:116-125 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/headtohead/attribution.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c54fa7b79473ae8d9e0d37d603c5e87239d7696b431b376ce501e3703371166"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): bench/recoverybench/run_bench.py:93-99 | bench/terminalbench/run_bench.py:162-168 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/recoverybench/run_bench.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"475a9fb47abba488db5c49fa2e6e431f133d0925591f07c20c7705814379f6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): bench/terminalbench/driver/osa_headless.py:281-288 | bench/terminalbench/report.py:435-437 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/terminalbench/driver/osa_headless.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"35616ba47f022d161409ff7df0fb306beb4274681a56041746e50d12c87d0cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): bench/swebench/runners.py:296-304 | bench/swebenchpro/runners.py:226-229 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/runners.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b19608fec231640b48224d50cfa8bb46aadf97d268da5364728a9aeb190b412"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): bench/headtohead/report_h2h.py:56-57 | bench/swebench/report.py:227-228 | bench/terminalbench/report.py:106-107 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/headtohead/report_h2h.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f7742ccfd418f875c4589eb02bb3803e15844f10715dbfe72aa5c7181c78b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/optimal_system_agent/sandbox/miosa.ex:140-142 | lib/optimal_system_agent/sandbox/miosa_cli.ex:141-144 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b106d088840350fc17ce63214b256254915f679282757723e10e3f49bcab49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/optimal_system_agent/sandbox/miosa.ex:182-192 | lib/optimal_system_agent/sandbox/miosa_cli.ex:194-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/optimal_system_agent/sandbox/miosa.ex:182\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":"lib/optimal_system_agent/sandbox/miosa.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"74587476336065c1123a43ebccd62f62bde09694becf0afefc8d38e5ec0790a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): lib/optimal_system_agent/bench/report.ex:108-115 | lib/optimal_system_agent/bench/report.ex:254-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench/report.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac739aeb716a9bb7ee920d4cbbaef684f6cc173fde33451889f37fb10089c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/optimal_system_agent/sandbox/docker.ex:151-157 | lib/optimal_system_agent/sandbox/vercel.ex:169-175 \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":"lib/optimal_system_agent/sandbox/docker.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0332effa064eb4becb11db449563571748338635e1a2ceabfea356fca16dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/optimal_system_agent/sandbox/docker.ex:151-155 | lib/optimal_system_agent/sandbox/host.ex:28-32 | lib/optimal_system_agent/sandbox/vercel.ex:169-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sandbox/docker.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"883672d96df6103f38aa8a66a46775999d3701450569ca87edcce23793710a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): bench/bus_bench.exs:16-21 | bench/goldrush_bench.exs:17-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bus_bench.exs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d465d3563607b948943749f89830e52e6dcad740aa6272ff22fafdab7b27823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201342 lines \u00D7 2): bench/swebench/run_bench.py:561-602 | bench/swebenchpro/run_bench.py:489-524 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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. 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":"bench/swebench/run_bench.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc94198e64f610e6b54223206bc110a7a96e8bee8831f009f799953290f6d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201343 lines \u00D7 2): bench/swebench/run_bench.py:94-136 | bench/swebenchpro/dataset.py:201-235 \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":"bench/swebench/run_bench.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b4215b5949e219222127a6a053edbfbfd5a3cb9214f6803ad57a8b2a75def1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201326 lines \u00D7 2): bench/swebench/runners.py:252-277 | bench/swebenchpro/runners.py:188-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/runners.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07ca49a5ffedb469de7f80e8e34c79605464941aca73c3a3b0e36fb38277e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): bench/swebench/run_bench.py:230-249 | bench/swebenchpro/run_bench.py:81-100 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9de09f84edbeac7ff9c83f8fca79da9209534b873629f123d0e4b99011b7317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): bench/swebench/run_bench.py:520-538 | bench/swebenchpro/run_bench.py:386-402 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"729aa9a53ec88951ddf84cad8f8c812878190fe7d9726ffc856cf2e13a9333b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): bench/swebench/report.py:722-736 | bench/terminalbench/report.py:1323-1340 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/report.py:722\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":"bench/swebench/report.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bbc601b319badc9ccebc2cf7b2f9d0ebf4da86575c6d478d7d3000d985a28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): bench/swebench/run_bench.py:206-223 | bench/swebenchpro/run_bench.py:58-74 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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":"bench/swebench/run_bench.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f4457482f6a9bba6c5f320c50686773690a904ed2b34103a23c25d79cc6ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): bench/swebench/run_bench.py:485-499 | bench/swebenchpro/run_bench.py:327-341 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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. 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":"bench/swebench/run_bench.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"726d95de1f5dd6b9095eab32675ada7c696151deb8fabfc1ad15dc81165a8d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): bench/swebench/run_bench.py:637-650 | bench/swebenchpro/run_bench.py:562-574 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:637\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"54592a35d84edf108227df591ca278bdd642ff68b82325139864ddc0d61ede19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): bench/swebench/run_bench.py:658-670 | bench/swebenchpro/run_bench.py:579-590 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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":"bench/swebench/run_bench.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"39997ebc8d2ef40aca4a4cc26116bff55d1bd072c36c028486c15d6a46a1ee97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): bench/terminalbench/probeset.py:507-519 | bench/terminalbench/reprice.py:65-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":"bench/terminalbench/probeset.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b66b96fc0d6b8ed2f3bca8434f56463a1c1ed7a68b706fa47e3c5b169c2387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): bench/recoverybench/delta_report.py:214-224 | bench/terminalbench/report.py:809-821 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/recoverybench/delta_report.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee94eb3139a257b14852c285f9b133250b2559c60fa7529cd5b2653d8ba310a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): bench/swebench/airgap.py:610-621 | bench/swebench/cwd_audit.py:115-123 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/airgap.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"468e688fb79ca9cf7d0509655eafc6fcd2eb9950df1c61b12fca975e67276791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): bench/swebench/run_bench.py:335-346 | bench/swebenchpro/run_bench.py:158-168 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060bench/swebenchpro/run_bench.py:157\u0060 calls \u0060add_argument\u0060 and \u0060bench/swebench/run_bench.py:335\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e97e20c75d183f656b8ab435901f27abcc332ea6eceeedc0734b8beb0049de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): bench/swebench/run_bench.py:146-156 | bench/swebenchpro/dataset.py:240-250 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060bench/swebench/run_bench.py:157\u0060 calls \u0060extend\u0060, \u0060sample\u0060 and \u0060bench/swebenchpro/dataset.py:252\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/run_bench.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bcc2aa0d165e73d9e73a2af24e74f4125614b82a2e0e5a6dbe39c869421a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): bench/swebench/runners.py:210-220 | bench/swebenchpro/runners.py:152-159 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebench/runners.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0621fb2defab5fdd694c89f513958fdb5d7054cd4d3fd642f20dd878d3290a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): bench/headtohead/report_h2h.py:85-92 | bench/recoverybench/delta_report.py:219-226 | bench/terminalbench/report.py:814-823 \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":"bench/headtohead/report_h2h.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f496246d94fbab71373fb0a8b4579e64ac89a8eb527e43ae5f5846cc3d9fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): bench/headtohead/attribution.py:396-405 | bench/terminalbench/report.py:598-607 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/headtohead/attribution.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfc15c1c20d0aeee54652ec9555c635771b8be3d0c039344bdb2a426b3254e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): bench/swebench/run_bench.py:620-629 | bench/swebenchpro/run_bench.py:541-550 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:620\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":"bench/swebench/run_bench.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"201093b54d0639c4ec82b7d0894232fa7126b3a31ed6c8fd84521e3ad11b1dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): bench/swebench/run_bench.py:383-391 | bench/swebenchpro/run_bench.py:207-215 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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. 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":"bench/swebench/run_bench.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc0bf65bb49abf1f7b6a99b5f6b9351a3557c598c03438924302f7cd36921a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): bench/swebench/run_bench.py:293-298 | bench/swebenchpro/run_bench.py:106-113 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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":"bench/swebench/run_bench.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38de0e54ccc6122672bed7ad958fe1d64931e8d325679bb55769a9ebc21d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): bench/swebench/run_bench.py:302-306 | bench/swebenchpro/run_bench.py:118-122 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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":"bench/swebench/run_bench.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62539b70622bfa59209b91944dab6b2416e5ecaaa9fb328642bead3b1a49f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): bench/swebench/run_bench.py:464-469 | bench/swebenchpro/run_bench.py:314-318 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:464\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":"bench/swebench/run_bench.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45eec08f489579bd55d421a33213f224397b817b6a18c9010f08dd7cf5d4172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): bench/swebenchpro/shared.py:61-67 | bench/swebenchpro/shared.py:111-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/swebenchpro/shared.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9115eb49b6d3435a2c8adcdd565c08cf340c1c8bf5e09b4d53d244956011cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): bench/recoverybench/delta_report.py:620-625 | bench/terminalbench/report.py:1362-1367 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \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":"bench/recoverybench/delta_report.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"00803a0ef3d6e299d06a06e66037230a6bcf860aa50d8a8d5586eb336e8c0ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): bench/recoverybench/run_bench.py:103-108 | bench/terminalbench/controls.py:83-88 | bench/terminalbench/run_bench.py:172-177 \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. 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":"bench/recoverybench/run_bench.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"013c20631c1b04433fc01d37bbaa46b16ace80030928e010406fde1c5951be53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): bench/swebench/run_bench.py:397-401 | bench/swebenchpro/run_bench.py:222-226 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060bench/swebenchpro/run_bench.py:221\u0060 calls \u0060write_text\u0060, \u0060join\u0060 and \u0060bench/swebench/run_bench.py:396\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":"bench/swebench/run_bench.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6178b1d95e22797df1a3f0ba9665ee2383d58aa79bbe77958e7370c30e6c3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): bench/swebench/run_bench.py:541-546 | bench/swebenchpro/run_bench.py:404-409 \u2014 \u0060bench/swebench/run_bench.py\u0060 and \u0060bench/swebenchpro/run_bench.py\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 15 separate duplicated blocks between them, totalling at least 202 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/swebench/run_bench.py:541\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060bench/swebench/run_bench.py:547\u0060 calls \u0060log\u0060 and \u0060bench/swebenchpro/run_bench.py:410\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":"bench/swebench/run_bench.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"50afebbb381f3632cf6b54100bc8ada63397499177e85c655b73fe0cf131f86d"}},{"ruleId":"D12","level":"warning","message":{"text":"Unbounded dependency requirement: postgrex: Runtime dependency \u0060:postgrex\u0060 is declared \u0060\u0022\u003E= 0.0.0\u0022\u0060 in canopy/backend/mix.exs, which has no upper bound \u2014 every future MAJOR release of \u0060:postgrex\u0060 satisfies it, so the next unlocked resolve can pull a breaking change. Use \u0060~\u003E\u0060 (e.g. \u0060\u0022~\u003E 1.0\u0022\u0060) to bound the requirement to a compatible range."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fcbc7082662e7dcc321686efdf20be35007c155396c10a8ef7dacec2a4eb4176"}},{"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":"624ed186fcf9ab65a5225473bc882e504dd52d211af249afee15c8b1820c2ecd"},"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":"9a985ba796ca05ebfbfcde5a0415220c8a89333560e72209104ae9e1f50b61ab"},"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: priv/rust/tui/src/app/handle_backend.rs: priv/rust/tui/src/app/handle_backend.rs changed 104 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 421 in App::handle_backend_event at line 141. 38 of those changes were fix/bug commits, and the other 66 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/handle_backend.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c04b177b78d1bdf93a893ec7a366327cc53f63f8e3c7a567ecce6e83612b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/app/commands.rs: priv/rust/tui/src/app/commands.rs changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in App::handle_command at line 128. 14 of those changes were fix/bug commits, and the other 34 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/commands.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/commands.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd567705ef5de5e0d4b04217c4c1a9c83570cc508a296964fec9ec43e9eb99c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/app/event_loop.rs: priv/rust/tui/src/app/event_loop.rs changed 88 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in App::run at line 826. 41 of those changes were fix/bug commits, and the other 47 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/event_loop.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/event_loop.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbc2e42131e9591a8b60b6988dbe52f60fc426b446d9836f6ae7948f5c6c5a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/client/sse.rs: priv/rust/tui/src/client/sse.rs changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 118 in osa_tui::client::sse::parse_system_event at line 1142. 16 of those changes were fix/bug commits, and the other 26 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/client/sse.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/client/sse.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5681f37f694ea16983bddcb67ad6f9d24736c8227e907130703a26dfd9375cb4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/app/update.rs: priv/rust/tui/src/app/update.rs changed 71 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in App::handle_key at line 239. 30 of those changes were fix/bug commits, and the other 41 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/update.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/update.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca5a17e19d8acd8eabf2f25d61e8a384743235ec8bcdfb86cd399ebd952eba2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/input/mod.rs: priv/rust/tui/src/components/input/mod.rs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in InputComponent::handle_event at line 2293. 19 of those changes were fix/bug commits, and the other 20 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/input/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":"priv/rust/tui/src/components/input/mod.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b222b38ec3cfc61e864e466721ee6e6e3bd9e5095724e21b907ad6a5068f5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/status_bar.rs: priv/rust/tui/src/components/status_bar.rs changed 45 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in StatusBar::draw at line 1295. 12 of those changes were fix/bug commits, and the other 33 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/status_bar.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/status_bar.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"416002ccf662027d241d111222232f47c8ed170f35ecec3dd9dec6d04d2d7e70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/agent/loop/react_loop.ex: lib/optimal_system_agent/agent/loop/react_loop.ex changed 73 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ReactLoop.handle_result at line 1767. 31 of those changes were fix/bug commits, and the other 42 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/react_loop.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"113a3d54cc7280ffe753dba680fc2134f8993d7c0d1a57c8f67b0fd837525ec5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/activity.rs: priv/rust/tui/src/components/activity.rs changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in Activity::draw at line 2240. 16 of those changes were fix/bug commits, and the other 27 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/activity.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/activity.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c342fdae6bacae917903181434f530e76cb3f95e144b9d1ab3aa24cd74d2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/agents/render.rs: priv/rust/tui/src/components/agents/render.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in Agents::draw_tree at line 19. 8 of those changes were fix/bug commits, and the other 15 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/agents/render.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/agents/render.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a666fb60d6d53d34c74b37ca6337457e38147fc9a515b658eea3d4d15ce7f5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/render/markdown.rs: priv/rust/tui/src/render/markdown.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 97 in osa_tui::render::markdown::parse_inline at line 2005. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/render/markdown.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/render/markdown.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc358bbce55c0810c865bcb50cedc88fc21a2501cf47bcc8e75d991f7b5b3683"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/orchestrator.ex: lib/optimal_system_agent/orchestrator.ex changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in Orchestrator.run_fresh_subagent at line 289. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/orchestrator.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b05e4bd433e15d64cd51256f5466b9f23aef400da1f213621b4abcff71847d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/app/handle_actions.rs: priv/rust/tui/src/app/handle_actions.rs changed 67 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in App::handle_agent_response at line 239. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/handle_actions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8916ae539c467e0ea2b3af5a424d52792b8c623706f5cda385afcf050e8b0619"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/agent/loop.ex: lib/optimal_system_agent/agent/loop.ex changed 73 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Loop.init at line 1283. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa88bc34569350caca2bc3f1980687ecfc4f523abf4618943663efe0c0ec60eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/onboarding.ex: lib/optimal_system_agent/onboarding.ex changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Onboarding.build_health_check_request at line 2877. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/onboarding.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"2086ff9d93642d73845d55130884ca89d855a827c6ff006bb8cec14388d2f4d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/channels/cli/commands.ex: lib/optimal_system_agent/channels/cli/commands.ex changed 51 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Commands.cmd_goal at line 3014. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/channels/cli/commands.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5bac28d85ec8b73e4f7b62fe3f844fb85b506babbfe11a9115e627a972850c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/tools/builtins/delegate/handler.ex: lib/optimal_system_agent/tools/builtins/delegate/handler.ex changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Handler.build_config at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/delegate/handler.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5e9775ff57a5ee673651312251c8a67bf1020932ab380d85689794828915c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/agent/loop/llm_client.ex: lib/optimal_system_agent/agent/loop/llm_client.ex changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in LLMClient.llm_chat_stream at line 785. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/llm_client.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc013fb99e434559749b8df04b39421fcabeb70f363a3342faea0ed0fbceddc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/providers/anthropic.ex: lib/optimal_system_agent/providers/anthropic.ex changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Anthropic.format_messages at line 1039. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/anthropic.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c9db27e8151df74d68c0b233553e31dc651b26ba24132eedcdceaafbe1ff17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/providers/ollama.ex: lib/optimal_system_agent/providers/ollama.ex changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Ollama.cloud_stream_loop at line 473. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/ollama.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/ollama.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb97fa215148a577607f9063954f4372fe98e75b958ac7732a3568f92764458b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/terminalbench/run_bench.py: bench/terminalbench/run_bench.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in run_bench.main at line 308. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/terminalbench/run_bench.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":"bench/terminalbench/run_bench.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc6b7fc5c4c7e7fb779b7d4b49705f6205ed8a2cfb5748ea7363e4e6340f207"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/terminalbench/report.py: bench/terminalbench/report.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in report.build at line 804. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/terminalbench/report.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":"bench/terminalbench/report.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b985c5a060a63d6e40dcb43ff6fafb1189e474951800d497c841e623e643c7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/render/markdown_stream.rs: priv/rust/tui/src/render/markdown_stream.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in osa_tui::render::markdown_stream::inline_preview at line 277. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/render/markdown_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":"priv/rust/tui/src/render/markdown_stream.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bbdc62b13603ff604999fbf590e9e78e72cedeb556b9b3c24d56622388198a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/model_picker.rs: priv/rust/tui/src/dialogs/model_picker.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ModelPicker::handle_providers_key at line 668. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/model_picker.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"507081ba5df18fff0ba9aca9da4b9b29af7b25744fce1def2a78c5f05473374a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/tools/collapse.rs: priv/rust/tui/src/tools/collapse.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ToolKind::noun at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/tools/collapse.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/collapse.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8d4745c51ebe37ee3da31ad974de25191fdfc2b25677ec21b8e33cb47db83a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/permissions.rs: priv/rust/tui/src/dialogs/permissions.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Permissions::draw_inline at line 376. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/permissions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/permissions.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"746b82a67d24a77781c7ec42a9ba43d44d2901253c009500c6590b747bb02322"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/app/keymap_dispatch.rs: priv/rust/tui/src/app/keymap_dispatch.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in App::dispatch_action at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/app/keymap_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":"priv/rust/tui/src/app/keymap_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed903f2e2450bafa2364e88fe9aa759ca8eacf09976d7ee80930dafa5a936df6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/terminalbench/driver/osa_headless.py: bench/terminalbench/driver/osa_headless.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in osa_headless.main at line 448. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/terminalbench/driver/osa_headless.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":"bench/terminalbench/driver/osa_headless.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"8050d80e79c832784f987aae00a336a86c235d057ae87ff84b2afa27748ee7d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/observability.ex: lib/optimal_system_agent/observability.ex changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Observability.current_reasoning at line 304. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/observability.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/observability.ex"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fc4bcf398a7f60341c5b18691f12cd9a936b6ab8a59748077b85a3ad956d88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/terminalbench/datasets.py: bench/terminalbench/datasets.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in datasets.main at line 610. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/terminalbench/datasets.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":"bench/terminalbench/datasets.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e631aca80ad40f81c2b4400c197b3f581f37861e8fd724ad46a030a1e96eed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/swebench/report.py: bench/swebench/report.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in report.summary_md at line 529. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/swebench/report.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":"bench/swebench/report.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a21f9ef93e5f3960f35c8e4ecb5ffb135788c584fbad007d8f1e2949f1420fd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/input/completions.rs: priv/rust/tui/src/components/input/completions.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Completions::draw_in 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/input/completions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/input/completions.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e27088be46207babcb1f8e9e567a5df2ef60bca8aba6ebcb4e266388b9dae7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/sessions.rs: priv/rust/tui/src/dialogs/sessions.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SessionBrowser::draw at line 248. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/sessions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sessions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cdc2fcb69b94e4efe69ccbce5d0785a970e6415e545557199ef0879ac13f73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/terminalbench/osa_agent.py: bench/terminalbench/osa_agent.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OsaAgent.populate_context_post_run at line 1050. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/terminalbench/osa_agent.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":"bench/terminalbench/osa_agent.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab7bfb569e1df7fefd5b2f1bd3782811e77b326cdd536cc730e2b976ca6fa69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/config/cli.rs: priv/rust/tui/src/config/cli.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Cli::parse_from at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/config/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":"priv/rust/tui/src/config/cli.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7c152edd35e9ef6044a66ed944a01a0fba959f4f6658270b3f9a41cbed16cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/swebenchpro/run_bench.py: bench/swebenchpro/run_bench.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in run_bench.main at line 193. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/swebenchpro/run_bench.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":"bench/swebenchpro/run_bench.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b0b9ea0f4d2ddc1ed40f56e51c84a6e7e4f857ebc72be5ee2b6e4b40fbd21d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/view/onboarding_flow.rs: priv/rust/tui/src/view/onboarding_flow.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in osa_tui::view::onboarding_flow::completed_step_summary at line 202. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/view/onboarding_flow.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/view/onboarding_flow.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aa93fa3b0c8ae338ac75b9565b01f3026eb7550a74cac7355eb77876364880"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/survey.rs: priv/rust/tui/src/dialogs/survey.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SurveyDialog::draw_inline at line 681. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/survey.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/survey.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c808b00362f2eb02673dfca9633b66d4982bd0a269f7f6a4061ead947868503"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/components/sidebar.rs: priv/rust/tui/src/components/sidebar.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Sidebar::draw at line 366. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/sidebar.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/sidebar.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eb7e00e1a14e00ab9e33b4fcc81f6dcb50da6d1fa55d547478aba1b8c4303c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/tools/web.rs: priv/rust/tui/src/tools/web.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in WebSearchRenderer::render 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/tools/web.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/tools/web.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0684e91eef7e852405c5777858dcab76b5febb73152b41f37545115d907d4de5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/failure_species.py: scripts/failure_species.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in failure_species.main at line 348. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- scripts/failure_species.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/failure_species.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"65756704e539648846910500c615f75bfb0a39b410e37dde731f52ac0de9416c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/headtohead/report_h2h.py: bench/headtohead/report_h2h.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in report_h2h.report_md at line 284. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/headtohead/report_h2h.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":"bench/headtohead/report_h2h.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"850d38687634032efce1b4208e88584ecaeddedf9c55323ff9a255bb67c21880"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/report/render.py: bench/report/render.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in render.render at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/report/render.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":"bench/report/render.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52e926ad63de4c63f7c8f2ebc9bcb105abfc8cdab7b1250fff857343a8ee6fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/sandbox_picker.rs: priv/rust/tui/src/dialogs/sandbox_picker.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SandboxPicker::draw at line 116. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/sandbox_picker.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/sandbox_picker.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc82049b66bc3230e5861bdda7682bc226e309e2d12207a1d5847e4f0083e61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/swebench/run_bench.py: bench/swebench/run_bench.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in run_bench.main at line 292. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/swebench/run_bench.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":"bench/swebench/run_bench.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aacdcd7cc5e068877c195bd5f6e2872e4fe4edbbeb87b6e6584579a02a128f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/headtohead/attribution.py: bench/headtohead/attribution.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in attribution.classify at line 278. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/headtohead/attribution.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":"bench/headtohead/attribution.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9551cdac3d280611a3cab09120757ecce58bf478f14e5a6e8ad712df330906c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bench/headtohead/run_h2h.py: bench/headtohead/run_h2h.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in run_h2h.main at line 373. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- bench/headtohead/run_h2h.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":"bench/headtohead/run_h2h.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b751923e2f104bbd1a3c49272e00b3d8f0d4c8bbb91d0ae5351c8578470508"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/rewind.rs: priv/rust/tui/src/dialogs/rewind.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in RewindDialog::draw 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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/rewind.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/rewind.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c194c5c2c55734a2fa73d035206a7bc1ba5c8ff1fe1efff1eb8bd584d4f17b54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/channels/cli/events.ex: lib/optimal_system_agent/channels/cli/events.ex changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Events.register_orchestrator_handler at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/channels/cli/events.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/events.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"93303853caa211976b9d69d3121f16f095e3663ce5d6d50bdd8039be63411142"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: priv/rust/tui/src/dialogs/skills_browser.rs: priv/rust/tui/src/dialogs/skills_browser.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SkillsBrowser::draw at line 251. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/dialogs/skills_browser.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/dialogs/skills_browser.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1367663c11d30f64eeeff870477ee360a0023b25e7321c46dc3af1d6ba932a82"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/optimal_system_agent/memory/skill_generator.ex: lib/optimal_system_agent/memory/skill_generator.ex changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SkillGenerator.do_generate_from_pattern at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/memory/skill_generator.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/skill_generator.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcc0ef0816bb15b21e3f4ab61e4bff85acf8ecdb019372ac1df4a927c92f0d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: priv/rust/tui/src/main.rs: priv/rust/tui/src/main.rs changed 29 times in last 90 days and 15 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 osa_tui::run at line 165), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201CRelease v1.0.191: fix the tmux chrome-fossil bug (the real one) (#265)\u201D; \u201Crelease: v1.0.87 - fix chunked streaming, measured off a real wire trace\u201D; \u201Cwip: checkpoint the in-flight audit and fix work\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/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":"priv/rust/tui/src/main.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb67528d22fd75846a906037798b0e8b7f9894061edd80f2766637b9c939e59"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: priv/rust/tui/src/components/chat/welcome.rs: priv/rust/tui/src/components/chat/welcome.rs changed 15 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 14 (its worst body is osa_tui::components::chat::welcome::welcome_lines at line 33), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tui,runtime): resize stranded a copy of the interface per step; the live region now fits any terminal; banner named a model OSA was not running; v1.0.57\u201D; \u201Cfix(tui): audit sweep \u2014 14 rendering defects across 3 root causes; v1.0.40\u201D; \u201Cfix(tui): crash \u002B reconnect fixes, @-file flow, and no-key onboarding guidance\u201D; \u201Cfix(tui): stop the slash/resize render crash; fix duplicated welcome; grow composer; declutter startup\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- priv/rust/tui/src/components/chat/welcome.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/components/chat/welcome.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4d430c7422e869c6b2ed4708b6be2e2362efc835b54b61307a4ec6f292030d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/providers/error_catalog.ex: lib/optimal_system_agent/providers/error_catalog.ex changed 14 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is ErrorCatalog.harness_error? at line 411), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201CFix v1.0.182: retry transient empty/5xx provider responses instead of halting (#254)\u201D; \u201Crelease: v1.0.69 - fix an error, without leaving the session\u201D; \u201Cfix(providers): stop compacted tool-call arguments from poisoning every provider\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/error_catalog.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/error_catalog.ex"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4166ee233433553dec5dd19f2d5d1de1ac44e2174cca892cdf43c27bf6220e97"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/verification_gate.ex: lib/optimal_system_agent/agent/loop/verification_gate.ex changed 14 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is VerificationGate.triaged at line 451), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CShip v1.0.172: image-paste crash fix, full model pricing, background-marker strip (#231)\u201D; \u201Cfix(loop): a teammate you were waiting for did not count as work in flight\u201D; \u201Cfix(verification): a compiler object file was passing as a discriminating test\u201D; \u201Cfix(verification): our own test policy was destroying the deliverable\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/verification_gate.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_gate.ex"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"717d741207530ba287d125215803a175af7152331189d5b0a78ba0560fde68dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/pricing.ex: lib/optimal_system_agent/agent/pricing.ex changed 13 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 9 (its worst body is Pricing.confidence at line 900), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.201: Opus 5.5 \u002B GPT-6 Sol/Luna, faster replies, lean-prompt setting, sticky default model, Ollama 401 fix (#281)\u201D; \u201Cfix(pricing): a vendor\u0027s dated rate card reached through the reseller\u0027s namespace\u201D; \u201Cfix(pricing): a reselling gateway billed at its upstream\u0027s list price\u201D; \u201Cfix(pricing): bill the hour and the published cache rate, not one number each\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/pricing.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b9f6767e722442ce541f448f218892b4574bd81fcfc0d9dd1929d9bb63e894"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/file_grep/handler.ex: lib/optimal_system_agent/tools/builtins/file_grep/handler.ex changed 13 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 9 (its worst body is Handler.try_ripgrep at line 321), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: make the full suite green \u2014 58 failures to 2 (1 environmental by design)\u201D; \u201Cfix: OSA could not read /tmp on macOS (#126)\u201D; \u201Cfix(tools): the deadline freed the turn and leaked the process\u201D; \u201Cfix(loop): a working session said it did not exist\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/file_grep/handler.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bc1831ac534b361c2c3555d20794936fe5452c96fac3883b6b71d1ad8dd182"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex: lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex 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 7 (its worst body is StreamingToolExecutor.drain_to_messages at line 413), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201Cfix(loop): nobody could say whether a human was there to answer\u201D; \u201Cfix(loop): the Anthropic streaming path ran two edits to one file at once\u201D; \u201Cfix(permissions): the session workspace was not an allowed path anywhere\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db8dcd1849fa9a980d46f0268bd8186e7cbaaf5290d32649eed3cd66f52a043"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/guardrails.ex: lib/optimal_system_agent/agent/loop/guardrails.ex 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 5 (its worst body is Guardrails.bug_report? at line 501), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(loop): the announcement backstop read the whole chat as one turn\u201D; \u201Cfix(loop): the announcement backstop matched a vocabulary, not a shape\u201D; \u201Cfix(loop): the announcement backstop had no word for \u0022I\u0027ll examine\u0022\u201D; \u201Cfix(loop): the backstop for \u0022let me write it now\u0022 could not see turn 1\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/guardrails.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/guardrails.ex"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d12669b8e22a432b1abf777f19f545a08df3dbbbd5eacce9dd83b9c90e8200e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/providers/anthropic_models.ex: lib/optimal_system_agent/providers/anthropic_models.ex 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 6 (its worst body is AnthropicModels.ladder_value at line 632), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201Cv1.0.201: Opus 5.5 \u002B GPT-6 Sol/Luna, faster replies, lean-prompt setting, sticky default model, Ollama 401 fix (#281)\u201D; \u201Cfix: a Fable session no longer opens at 36% context (#127)\u201D; \u201Cfix(pricing): rates carry their own expiry date, and reach it by themselves\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/anthropic_models.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic_models.ex"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc521a40233b145294b23b92086642597d70f9f9b7b8eca95f4397937c67cad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/mix/tasks/osa.run.ex: lib/mix/tasks/osa.run.ex changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is Run.run at line 21), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: three capability decisions that a proxy was answering for them\u201D; \u201Cfix(cli): --effort documented the wrong ladder and swallowed its own rejection\u201D; \u201Cfix(security): the escape-sequence fix covered the loud paths, not the quiet ones\u201D; \u201Cfix(telemetry): the machine-readable output format streamed no tool calls at all\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/mix/tasks/osa.run.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.run.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfa100fc4b7d96ef49a2725da75ec434ea818e31b90ca396e5e73d6af30c741"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/store/session_transcript.ex: lib/optimal_system_agent/store/session_transcript.ex 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 3 (its worst body is SessionTranscript.save_turn at line 35), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix persistent goal controls and wrapped CLI input (#113)\u201D; \u201Cfix(sessions): /clear left the discarded conversation as the newest one\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix: @-mentions attach, transcript persistence, bounded context, turn recap (audit wave)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/store/session_transcript.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"649d3c320ba72ef33e1086ca198cb98e844119cff2789286b46506ad6deaf935"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/compaction_thresholds.ex: lib/optimal_system_agent/agent/loop/compaction_thresholds.ex 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 3 (its worst body is CompactionThresholds.configured_ceiling at line 77), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.205: live reasoning watchdog, honest compaction, glued-word and double-answer fixes (#285)\u201D; \u201Cv1.0.201: Opus 5.5 \u002B GPT-6 Sol/Luna, faster replies, lean-prompt setting, sticky default model, Ollama 401 fix (#281)\u201D; \u201Cfix(compaction): the compact point is the model\u0027s window, not a constant\u201D; \u201Cfix(compaction): three defects that each failed silently\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/compaction_thresholds.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/compaction_thresholds.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"69aa1e8ff2a8309b1583e3c00d99165a1215f77c279cbca0e158732954b80bda"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/task_notifications.ex: lib/optimal_system_agent/agent/task_notifications.ex 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 5 (its worst body is TaskNotifications.await_claim at line 257), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201Cfix(loop): a result that came back while the turn was ending was never read\u201D; \u201Cwip: checkpoint the in-flight audit and fix work\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/task_notifications.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_notifications.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fde53540de7a52fe7e9ddcc09ae0ec49ce243f6b687aeab654f3cc4e664a6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/fast_path.ex: lib/optimal_system_agent/agent/fast_path.ex 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 7 (its worst body is FastPath.select_tools at line 77), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CShip v1.0.172: image-paste crash fix, full model pricing, background-marker strip (#231)\u201D; \u201CFix TUI resize recovery and add native skills (#109)\u201D; \u201Cfix(providers): the capabilities that reported a plausible zero\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/fast_path.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d301766140fa26596ab163f248d42b3dc4cd8a031ce6e1d9b31d6ee5a8a9d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/verification_evidence.ex: lib/optimal_system_agent/agent/loop/verification_evidence.ex 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 6 (its worst body is VerificationEvidence.covered_after? at line 190), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(verification): a compiler object file was passing as a discriminating test\u201D; \u201Cfix(verification): our own test policy was destroying the deliverable\u201D; \u201Cfix(verification): the gate charged a one-line fix the price of authoring a module\u201D; \u201Cfix(agent): the verification gate was satisfiable without evidence\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/verification_evidence.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8180b49ad294dac2afe8333fe3d97bffdb3440a5cdca29f60b1b85d6e1eb7dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/cli/doctor/inspection.ex: lib/optimal_system_agent/cli/doctor/inspection.ex 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 7 (its worst body is Inspection.prompt_override_rows at line 146), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(doctor): report the fail-closed pin, not the mode it overrides\u201D; \u201Cfix(harness): stop first-meet loops and explorer nests\u201D; \u201Cfix(security): a hostile repo only had to rename its settings file\u201D; \u201Cfix: osa doctor walked the entire checkout; subagents ignored the model\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/cli/doctor/inspection.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eadc079f9b0e3bb2aec045f9157adcb2d61fda65d013c6e43667869a889245"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/mcp/transport/stdio.ex: lib/optimal_system_agent/mcp/transport/stdio.ex 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 5 (its worst body is Stdio.check_memory at line 398), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: a leaking MCP server and a wedged tool call can no longer take a machine or a turn down in silence (#125)\u201D; \u201Cfix(mcp): quiet the boot into one summary line instead of a wall of warnings\u201D; \u201Cfix(mcp): match owner pid in stdio EXIT handler (was reaping live child on pgid probe)\u201D; \u201Charden(round2): untouched-surface fixes \u002B copy polish \u002B 2 real bugs from de-flaking\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/mcp/transport/stdio.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45564a0a40193741cc899181dd1579c271bb0778c407296130a21d70d5f498c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/security/threat_intel.ex: lib/optimal_system_agent/security/threat_intel.ex 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 8 (its worst body is ThreatIntel.enrich at line 70), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(security): repair main\u0027s compile errors \u002B port fix203 contract fixes\u201D; \u201Cfix(threat_intel): remove space in if expression to fix Elixir syntax\u201D; \u201Cfix(threat_intel): use int_max in days_between call site\u201D; \u201Cfix(threat_intel): rename max to int_max to avoid Kernel.max/2 conflict\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/security/threat_intel.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/threat_intel.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2e8fd2dd67efd38907ce2d11f1f30808bc47bc10448553ab9ababb8f9f4b6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/file_state.ex: lib/optimal_system_agent/tools/file_state.ex 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 10 (its worst body is FileState.read_status at line 321), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix v1.0.179: backlog cleanup \u2014 base URL, unicode ledger, linger race, latent crashes, test flakiness (#250)\u201D; \u201Cfix: make the full suite green \u2014 58 failures to 2 (1 environmental by design)\u201D; \u201Cfix(doom-loop): the 43.5% duplicate rate was a 60-char display field\u201D; \u201Cwip: checkpoint the in-flight audit and fix work\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/file_state.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6506b7f59d894eedcc4b2c6cac34f8683ef82bf9dab36c946b86777e2195fd5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/memory/store.ex: lib/optimal_system_agent/memory/store.ex 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 8 (its worst body is Store.index_entry at line 698), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(boot): stop two more boot-time crashes found chasing the Bus fix live\u201D; \u201Cfix: memory/mcp/permissions correctness \u002B curate toolset (80 -\u003E 72)\u201D; \u201Cfix: @-mentions attach, transcript persistence, bounded context, turn recap (audit wave)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/memory/store.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e5af0c01f5ba57314a59a10a38b4e39dca428fc798ea6cfe1d44697e50f07f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/utils/mojibake.ex: lib/optimal_system_agent/utils/mojibake.ex 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 8 (its worst body is Mojibake.incomplete_tail_start at line 106), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix v1.0.175: repair Windows-1252 mojibake (glm/z.ai em-dashes, quotes, bullets) (#234)\u201D; \u201Cfix(loop): recover reasoning models that stall after thinking; \u002B2 follow-up bugs (#185)\u201D; \u201Cfix: double-encoded mojibake \u002B mid-turn steer immediate \u0026 visible (#184)\u201D; \u201Cfix(streaming): repair UTF-8-as-Latin-1 mojibake split across deltas (#167)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/utils/mojibake.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/utils/mojibake.ex"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab89cc2b5d8970dac75a7d94976aa2d77ab4602f4515a421134f2a8a19b14660"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/safety/dangerous_commands.ex: lib/optimal_system_agent/agent/safety/dangerous_commands.ex changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is DangerousCommands.check_variant at line 452), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cv1.0.203: stream integrity, self-healing transcripts, safer deletes, send-now, background tasks, resize crash fix (#283)\u201D; \u201Cfix(safety): the circuit breaker could be stalled by padding, not just fooled\u201D; \u201Cfix(runtime): boot as root, split the circuit breaker, scope session settings\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/safety/dangerous_commands.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/dangerous_commands.ex"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d25cbb061019d6be654dfc81b70066105b4fd70e39ce72f07b6babc5d9a0faf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/providers/catalog.ex: lib/optimal_system_agent/providers/catalog.ex 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 Catalog.cache_fresh? at line 449), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CRelease v1.0.188: /goal clear ghost fix \u002B measured est-tok/s in model picker (#262)\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(backend): command fail-fast (no stdin, reject dangling operators, 120s cap); glm-5.2 context window 200k; billing token/usd_pricing fields\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/catalog.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9bf95382d6e034e3893fd302b52608d8ea07413801006a5effe161ab9097d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/cli.ex: lib/optimal_system_agent/cli.ex 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 10 (its worst body is CLI.update at line 113), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): boot as root, split the circuit breaker, scope session settings\u201D; \u201Cfix(agent): three bugs the benchmarks found\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/cli.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdf95573126c67e36a5634896f0356657191563538b5570a09b3c0e3ca4ffd8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/workspace/fast_worktree.ex: lib/optimal_system_agent/workspace/fast_worktree.ex changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is FastWorktree.sweep at line 402), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\u201D; \u201Cfix(install): resolve ~/.osa at runtime everywhere (prebuilt-release correctness)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/workspace/fast_worktree.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree.ex"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"00697c6322ab9515867f30bf48ffbf96fe84729bae7dcacae27bfd40f6aedc5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/context_discovery.ex: lib/optimal_system_agent/agent/context_discovery.ex 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 8 (its worst body is ContextDiscovery.do_discover at line 68), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\u201D; \u201Cfix: @-mentions attach, transcript persistence, bounded context, turn recap (audit wave)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/context_discovery.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edc892588b7011b391d85ce59af63f50174fd499f710edafcc7d687c63f74de"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/security/cvss.ex: lib/optimal_system_agent/security/cvss.ex 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 8 (its worst body is Cvss.valid_values? at line 162), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: synchronize release lockfile and enforce clean compiler gates\u201D; \u201Cfix(providers): gate platform-authorization annotation on operator-armed override (#228)\u201D; \u201Cfix(security): repair main\u0027s compile errors \u002B port fix203 contract fixes\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/security/cvss.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/cvss.ex"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f034428c085ded169d5d63ab86604bea008ea557e602ac903421858237dbc51f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/goal/handler.ex: lib/optimal_system_agent/tools/builtins/goal/handler.ex 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 7 (its worst body is Handler.validate_create at line 32), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CRelease v1.0.187: goal-loop lockout fix, /goal auto toggle, MCP test isolation (#261)\u201D; \u201Cfix: a goal is bounded by budget, not by counters (#132)\u201D; \u201Cfix(goal): the freeze had no exit for an agent whose work changed direction\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/goal/handler.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/goal/handler.ex"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"645b47dc968c0d1dc4bb1a39460a8fcf6f5281c92decb9cf959b6810c1144de0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/jailbreak.ex: lib/optimal_system_agent/agent/jailbreak.ex 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 Jailbreak.bundled at line 144), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(jailbreak): make the operator override honest, warm the defaults (#218)\u201D; \u201Cno-mistakes(document): fix stale jailbreak precedence wording in fallback seed\u201D; \u201Cno-mistakes(review): remove duplicated jailbreak arm/poll/seed, fix moduledoc newline\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/jailbreak.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5d015f85ea183a864fe964f86ad3a7430bdcf8fa173656bcc66b00570a4223"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/release_notes.ex: lib/optimal_system_agent/release_notes.ex 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 7 (its worst body is ReleaseNotes.split_sections at line 353), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(update): only trust local git tags inside the OSA repo\u201D; \u201Cfix(update): a check that could not find out reported \u0022up to date\u0022\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/release_notes.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/release_notes.ex"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"80be2a344736be2fbfa34e6514d49d5685cf16b4a76aceeb950d7a19769e19f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/safety/path_policy.ex: lib/optimal_system_agent/agent/safety/path_policy.ex 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 7 (its worst body is PathPolicy.check_write at line 349), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: make the full suite green \u2014 58 failures to 2 (1 environmental by design)\u201D; \u201Cfix: OSA could not read /tmp on macOS (#126)\u201D; \u201Cfix(permissions): the session workspace was not an allowed path anywhere\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/safety/path_policy.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/path_policy.ex"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"973215c959d754ce4c6ddc4a92aa0088ded33dda4d8aaf9ef27e0dfa1791842c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/enter_worktree/handler.ex: lib/optimal_system_agent/tools/builtins/enter_worktree/handler.ex 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 7 (its worst body is Handler.do_create at line 92), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(security): escape sequences reached the terminal, and git ran hostile repo config\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/enter_worktree/handler.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/enter_worktree/handler.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad3425d4f51992626e0aaef40241f0aa1235e0b2c49705ce90c3e23cbbef31c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/providers/replicate.ex: lib/optimal_system_agent/providers/replicate.ex 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 6 (its worst body is Replicate.poll_prediction at line 137), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(providers): compaction sent \u0022model\u0022: null, and only compaction could\u201D; \u201Cfix(providers): mid-turn steering stays in the conversation on Google and Replicate; v1.0.54\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/providers/replicate.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/replicate.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26d615d1e937cd9c1e6b965c018e5b307692b3c887f04e448e91072930b43b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/cli/update.ex: lib/optimal_system_agent/cli/update.ex changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is Update.set_update_enabled at line 165), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(update): a check that could not find out reported \u0022up to date\u0022\u201D; \u201Cfix(update): check GitHub Releases, not the dead api.miosa.ai (503); v1.0.35\u201D; \u201Cfix(install): resolve ~/.osa at runtime everywhere (prebuilt-release correctness)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/cli/update.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4302b2a01a07b4857244e65b6773b9cd76795797813ebb54362ab598ea4a3ff4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/ask_user/handler.ex: lib/optimal_system_agent/tools/builtins/ask_user/handler.ex 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 4 (its worst body is Handler.execute at line 44), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(loop): nobody could say whether a human was there to answer\u201D; \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(agent,tui): ask-user deadlock, invisible tasks, discarded delegation, doom-loop aborts; v1.0.47\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/ask_user/handler.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/ask_user/handler.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a5015b1da98681beb42d67905960a0d83ed8683a460b372eaf6442cb6ae753"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/permission_mode.ex: lib/optimal_system_agent/agent/permission_mode.ex 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 PermissionMode.load_from_disk at line 216), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): boot as root, split the circuit breaker, scope session settings\u201D; \u201Cfix(permissions): block writes before asking; isolate sticky-mode store\u201D; \u201Cfix(permissions): make overdrive durable \u2014 disk-backed sticky store, read as source-of-truth\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/permission_mode.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e919e1a9a6043bbb8f146829f8ddda67107f9e58a240963bc9dddfdfba51f47"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/security/attack_chain_reasoner.ex: lib/optimal_system_agent/security/attack_chain_reasoner.ex 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 4 (its worst body is AttackChainReasoner.explore_from at line 164), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(security): attack_chain_reasoner \u2014 explore_from/2 accepts node-map roots (hosts/1 returns maps), edge metadata uses :evidence_quality\u201D; \u201Cfix(providers): gate platform-authorization annotation on operator-armed override (#228)\u201D; \u201Cfix(security): repair main\u0027s compile errors \u002B port fix203 contract fixes\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/security/attack_chain_reasoner.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_chain_reasoner.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f716a7e1abf42ed01e3ee873b96e3465f2912fa12bf9947af6c8ac08be55f77f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/security/attack_orchestrator.ex: lib/optimal_system_agent/security/attack_orchestrator.ex 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 AttackOrchestrator.handle_cast at line 115), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix v1.0.179: backlog cleanup \u2014 base URL, unicode ledger, linger race, latent crashes, test flakiness (#250)\u201D; \u201Cfix(security): repair main\u0027s compile errors \u002B port fix203 contract fixes\u201D; \u201Cfix(attack_orchestrator): replace Map.get in guard with pattern match \u2014 fixes compile error\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/security/attack_orchestrator.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_orchestrator.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"951c20a460eb980becf615c2f43085ea0f9b519ca6efb1c69c97fd8a4d0c02d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/loop/doom_loop/reasoning_only.ex: lib/optimal_system_agent/agent/loop/doom_loop/reasoning_only.ex 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 3 (its worst body is ReasoningOnly.check at line 87), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(loop): empty generation halts even in an attended session (#186)\u201D; \u201Cfix(loop,tui): a guard\u0027s advice was the answer, and a stale daemon was silent\u201D; \u201Cfix(loop): detect provider cut-offs and never deliver one as the answer\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/loop/doom_loop/reasoning_only.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/doom_loop/reasoning_only.ex"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b34ebc8d9859087660decf3237c42c219825100edaef64c3902e0b11f59166a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/file_grep/constants.ex: lib/optimal_system_agent/tools/builtins/file_grep/constants.ex 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 3 (its worst body is Constants.ripgrep_timeout_ms at line 65), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: OSA could not read /tmp on macOS (#126)\u201D; \u201Cfix(loop): a working session said it did not exist\u201D; \u201Cfix(file_grep): the search that answered \u0022not found\u0022 after reading 0.9% of the tree\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/file_grep/constants.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/constants.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"595e6706f0afa710259b01b993d236630d95f0be1dd17f5ef39d6ce1e2c72ce5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/tools/builtins/send_message/tool.ex: lib/optimal_system_agent/tools/builtins/send_message/tool.ex 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 Tool.name at line 20), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tools): five tools were documented on every request and callable on none\u201D; \u201Cfix(providers): honour the configured model, and stop sending an invalid shape\u201D; \u201Cwip: checkpoint the in-flight audit and fix work\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/tools/builtins/send_message/tool.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/tool.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3edbe6d5cf3dd5a7f0b7bcd8d917b9cacf8bc5f4c6fbb48cc7b7afb73d106a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/context_engine/router.ex: lib/optimal_system_agent/agent/context_engine/router.ex 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 3 (its worst body is Router.active at line 50), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(context-engine): realign the contract with the compaction API v1.0.48 left\u201D; \u201Cfix(security,plugins): gate plugin loading behind opt-in, verify files before compiling\u201D; \u201Cfix(context-engine): align behaviour contract with real implementations\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/context_engine/router.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_engine/router.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a49615912ffcff9c7062b2f91fe373a4fd4874fd0f0cc89b9091f1a9d97ba5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/channels/http/rate_limiter.ex: lib/optimal_system_agent/channels/http/rate_limiter.ex 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 4 (its worst body is RateLimiter.check_and_consume at line 101), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(providers,context): prompt caching was 100% miss; list content crashed five providers; v1.0.56\u201D; \u201Cfix(local): stop loopback rate-limiting \u002B label workspace by launch dir\u201D; \u201Charden(round2): untouched-surface fixes \u002B copy polish \u002B 2 real bugs from de-flaking\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/channels/http/rate_limiter.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/rate_limiter.ex"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f09737d824edc578b49af5e4ffacb0138eab84a6f8fd4c85ac6f01711e2afd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/optimal_system_agent/agent/worktree.ex: lib/optimal_system_agent/agent/worktree.ex changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is Worktree.cleanup at line 94), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tools,providers,context,security): broken web fetch, wrong-provider /model, premature compaction; v1.0.48\u201D; \u201Cfix(security,update): harden git against hostile repo config; verified updates; v1.0.46\u201D; \u201Cfix(install): resolve ~/.osa at runtime everywhere (prebuilt-release correctness)\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-11..2026-10-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-11 01:18:43 -04:00\u0027 --until=\u00272026-10-09 01:18:43 -04:00\u0027 --full-history --no-merges -- lib/optimal_system_agent/agent/worktree.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74813e2b3c886b8b1f4320339c4872347a55eca136450017c92fccf092eafd5"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/windows/ScreenShare/Program.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"064fba921e1586a4cb4e33613baf8640e9d66054353741bab0a19b227f4e35a7"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/windows/ScreenShare/Program.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f23a28f02f5d451dcc8c8f5592dc0e52e56106d573dfcea18b9e7b4fe722941"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/windows/ScreenShare/VncServer.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8227940817a4378eeaf38bc5e0b41d3543f081ddde880a2a48e5bfb7922879d5"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"native/windows/ScreenShare/VncServer.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cfde19cafb292c10f3ac3b3788c041b8bb4ea1f081f6073b87b501db68d48b"}},{"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":"39414a9333943fd1ccea0c068758450e48d15e34a6714df7b3277a5f6850c72c"},"properties":{"commitSha":"eaed819de06c9e5ddfe52aa53e4851443c08866f"}},{"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"7070679db20129dbe75f385966a738be46ea377b4b9ec31e1c136200d056cc27"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"774e84eaf65696bacc627959839c1af1927b88e5fcbe02a78f7a8b8671c240ba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"bc17439367157c6f6ff8590f4dfe29bc3a0ce4e328d99df310f8a49a2877af10"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"866f5db9e17cba13054be81498300d5689d6380b38ab693dd948f99e20adbff5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"311f2b1dd969a2ef73985fc36dd91e65e3d6a6cb49a0706cd68e381199f12c7c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"05dd1cc6a6536213feac72458953b3ecc92da85b7219289a9d2c68054660f8e9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"6e22fa714af38036b109f9493501c28af262c3a9a1a2d30d80f7ec23c8ecb75e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"82a1893f62fe8dee3fcdaad2e3da3e94b86729172346ee8d336b86cb9d8780c6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"34d991f3a7b8480911904f3a9de2cdf1bb563ab42e29fe2c1ac53ae9a840c3ff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"4a04264eaf0a90ed63886610c9e2251cf5431cabd6d952016a10ea99155c6aad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"9d8137e2843a4d9ace312984d4d1b8b07998cf19f7a31e2c7e904de2ca9c84a6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"075bd706c28fbb77c3941c6702cb165179fd3bb5bf6b56b1656809629ed7b39d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"20a58ad9f9cb310430e9c5e95624eaf2167a356ff0c35a038ff8384f40cadc1a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"03574e61b3ca75a0494efffa8b7907e4e9b0b1acc13e92f6a6ba6b082fef3f56"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"95c1f29ffdaa8da5df838b2101f90e3622d1351f04f7e20c783e28d7f77adcc9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"35646e068c2e43daf424c16322147840f53e3b7034c2753b9ea8643c03063e67"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"f2eab9c4649b8a8d61fd7d15115ad266b2d77b80bd73d78e9776b1e98f5832a5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"dfe3bf0e78466d7e55aa1ccdf73b34a5b52dde26ea1121df07d7a5fa530d2f12"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"49e797a08710a35b3ba8a32d67fd840819ad3ef64ba0f3df680d4597556c9c34"},"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":"ad6ecef1824230a76210a8f40cf212b926bd166feeae733d161209ac96c6da6a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"b21ef51d97f04d1a8b921e635aca9ef4e877341aa2c3b0f6eaeabc61234774b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"1f1ed6491963bb182df6438abab54c62032a30d6d13957263957aeae36610f16"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f92241376401502a76b0521c8325ec5ac4b2679a6c13f66166ec884cf715b80"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"63c4a093cd4d8270d8663d7b47af1062c73ee032c2d6873d217251d788ab2402"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"6504d8d1633fd2629c17cb911821ef9d4b240f323d5e1ebac2df01ac4726a04a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"07f9cc8005a8a55cef2d398fb1b7924caef69ec6e9fbfd04630402a54297cc4a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"858eb7f80b7507dfba0c3f1f3da34922e68eec00c263f8d42558fd15e99292b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"f96de53a9c41aa9762bf4bb7d8c6ceb5328ca215e45d4016e18c2ff1458e371c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"e7aea5ad354bb944fe749ff0e5f574830ccdd11e2edd1cb16678dd3d93b52205"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"9395aedffa38f0a637bdf86ae2f3e4f9bbc5290a19c47325f084a1da5114266c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"8f26cf859b21a29d8199401b33bcf3af3c7310d1527e0674e2e7f9168d28c86d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"0bf32e7279f3ac62b6831412a5aabb18c6a74db5b29f84faccf95e0f4f9f681a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"855451eb322b80e9c22309f05343d55d411160048b3059476c34034cdd161958"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64aee044c1f4dd4bb7a77441c8cfb2ad1960dbe2c5bbb6dcc4a3af1fa08e7b62"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"78812dc4f7ecb7cfd4205a986b56e4a7973d47d54098cee8b3ac9c69f9d4bca5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"da273051154273eb2305dd1d8ef65e7c586e4ad3683d35277bc675abb8be52f8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"48da202c3eba3dd2ae2569b93533fcae30f70ac9fb2323aa8cdd5a83b65f4b49"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"ab78ee5146a58a270340bd7690efcc916c73971063aa10fda5e87c3c04d91aec"},"taxa":[{"id":"CWE-494","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":"fae80d470e849b13ecfdc4b481809a99daa2a91a09509029cbcc5fb3cefa20ea"},"taxa":[{"id":"CWE-494","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":"344eed1d30b841d4395a0d2a42f73e89c89ab8150671f04d407237398edd9322"},"taxa":[{"id":"CWE-494","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":"9af78bfbf6f8a0d096eedf5a71a269088fe4ad771244f051d721b9d7b2810069"},"taxa":[{"id":"CWE-494","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":"94a6938b9c08823225b73bca47c2126772f1fc6a3b91afb88c93a2a9998f4f25"},"taxa":[{"id":"CWE-494","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":"b06496cf4cef670ec466f44d53c20197e55a3af790ff80a949559ea00e0c0436"},"taxa":[{"id":"CWE-494","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":"8b1f4f34cf5ee3989b65c2df4b36be1fb40f7581f1447cdaaa121711c61af3ef"},"taxa":[{"id":"CWE-494","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":"337e92c4ad2b75ae81a8a1636610c152cb774a650159b8bd11ecc6ebf632aa25"},"taxa":[{"id":"CWE-494","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":"16bbb9ac11d02bff035d01892b3629e373aadf2253cc8e33978a15a00a28b709"},"taxa":[{"id":"CWE-494","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":"a47132c836a1724677643c42d9868da84ca1760b278d09eb6ff8bd04091de1d9"},"taxa":[{"id":"CWE-494","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":"05280b098a559754bf2c55bb55b86674ecbbafbd476636083f9b0122b087b7e3"},"taxa":[{"id":"CWE-494","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":"a07bc0dfcc74e48914eb23236e55045d253b8170af6aef6d5b56febf1b1bde21"},"taxa":[{"id":"CWE-494","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":"cc4c96c3fb9caf16e4158cd820dba0d184d967f0ba0dfcd532a7da8e45b01f19"},"taxa":[{"id":"CWE-494","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":"5b81483f0de6c8a100b0dbdf581a611d647581c3add82614497bae56955fa71c"},"taxa":[{"id":"CWE-494","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":"ff0e558eed353a84ec27fddc0b45715e3c162fb735fd7c54d0c6d5db10b4686b"},"taxa":[{"id":"CWE-494","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":"af81e603636d26d605aeb5fa08b5982dace2a6e615a0bd5668f149f6b5bd76a9"},"taxa":[{"id":"CWE-494","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":"46750b8841d0a9ffb7f15c3bb79168502c2f2d68061e096b40f2de7eb62b028a"},"taxa":[{"id":"CWE-494","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":"43080c46cf7aeda7dd8729133cd97e762b7f009be49c24929931f112f9197253"},"taxa":[{"id":"CWE-494","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":"80cabd38c2e7bfb10e67d6afbd2b43c916d102d99075fec8d50d2d375f291f95"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-73","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9dce10810a09676dcdaadde4132fe3273bf917a315226aa8a9921d2102f55845"},"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":"fc370ad983fc2695bef1fe4ef01f9a60820033746220bed1cec752625c16078c"},"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":"67954d9439bc518a92a905615776fdd445a05be57529bb6c665ebaedb37a8974"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fcfe4c006b73c26567c308beef2d5453d2a5d6b19525f8e7f0dd91cf587edb1f"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"c64fdeb92527b7fc2ab5a3f6ccf15f540927377d17548e5e815020e0b39e3215"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4d3afdf1111b3f9993a81f6a5220e977b27f946787a5b735e7d4b82fd2aa56c"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f40a5d6c247182dbf41fd8a6589752c4f9251044d18fa4e5d608ca67bece1e66"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"036d92bb0a0c8ba761e6026be6497fe7195ae203d7ef98bc573e6342051ec349"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fff8837b8264d79e993f8cf2c021b76722fa98d347fbc6970566781f4f86c6c0"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4587e639a53570005f51533961eec03c972acf3b494f174de7a6b219be1d9f6d"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dab63446c1facef96a7d56003efd0315ae6de5a347531614b6268634a7fae7ff"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"571e7e1f2f3ff5322e89e2cc06e5278360077a91bc7e68619589cb033b9362a6"},"properties":{"dependency":{"package":"zip","version":"2.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"severity":"critical","fixedVersion":"9.0.5","relation":"direct","declaredRange":"2","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dba406e956550344f668786219be90f6b391cfeee000a5ba8841d5b8400cf871"},"properties":{"dependency":{"package":"bandit","version":"1.10.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.11.1","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a641498c52b470244b9b03c1eaa5764e73958773c82a561f908561780fb7686e"},"properties":{"dependency":{"package":"mint","version":"1.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.9.0","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67e437713bdda995ad4fa11ff7d782eb5b149bec2346953afa06bec18f609444"},"properties":{"dependency":{"package":"phoenix","version":"1.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.8.6","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8e53dbcf1fae7ea2173d26a4ea8c448ef2793f84a86b4763d7587fb8a07217a"},"properties":{"dependency":{"package":"plug","version":"1.19.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.19.2","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c639fa900bbffba80b37c35be428b4592bb993e7bcf707977dc0870b874ba4b"},"properties":{"dependency":{"package":"postgrex","version":"0.22.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.22.2","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3379e79578e89d43be2328feccdc9ae2600a7d55ea7f0cf21032bae96de6bfa"},"properties":{"dependency":{"package":"req","version":"0.5.17","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.6.1","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4137b37182e8451abf49fe3b838a0e590196c0ba0341160af3bba75842c7fe53"},"properties":{"dependency":{"package":"bandit","version":"1.10.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.11.1","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a7c3e2f9991192670965f93f54ecf7684041c7b9279264e21210709257d2508"},"properties":{"dependency":{"package":"mint","version":"1.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.9.0","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb481229b7f07dab306ecb94f830ec69d91a468844f63169b104206229a1a533"},"properties":{"dependency":{"package":"plug","version":"1.19.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.19.2","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76b9d88950604331f4d3f7467dc86972a7bed8dde045393bd4997efc5f5cfaf3"},"properties":{"dependency":{"package":"postgrex","version":"0.22.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.22.2","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bb1c5a1cfd48a2cb68ac0b532e3831ff6ab0a004f870069344600e9ab90f8ca"},"properties":{"dependency":{"package":"req","version":"0.5.17","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.6.1","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a113384cfeb3caef3a0d901c64b243cc951472eabb0d24ddcfd4d15c907d0fd"},"properties":{"dependency":{"package":"openssl","version":"0.10.75","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0463","RUSTSEC-2026-0473","RUSTSEC-2026-0474","RUSTSEC-2026-0475","RUSTSEC-2026-0476","RUSTSEC-2026-0477","RUSTSEC-2026-0478","RUSTSEC-2026-0479"],"severity":"high","fixedVersion":"0.10.78","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca0e3b1c7a5759be15a22adfb8d809b6992f7089df87810b82075e07149ba585"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.9","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-111943","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6809","RUSTSEC-2026-0049","RUSTSEC-2026-0098","RUSTSEC-2026-0099","RUSTSEC-2026-0104","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"high","fixedVersion":"0.103.13","relation":"transitive","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":"add77c8a0ddd8c8411c4b88880259ea08a891620e12f4dacb67c4483d55797fc"},"properties":{"dependency":{"package":"decimal","version":"2.3.0","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"3.0.0","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":"65f10113e830c4e6b0594c1d2ff7a4cb564d4ced62beb3a316b66ca604e48262"},"properties":{"dependency":{"package":"ecto","version":"3.13.5","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"3.14.3","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":"e1d33ed8d8d707667ddff6c8767f4ca84da514439d3d24627e8708e163025c80"},"properties":{"dependency":{"package":"guardian","version":"2.4.0","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"2.4.1","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":"1cc600a5c99cc1cef6441a406f7bef94f8c59d487eacbcd7efc6699ff6d48b4f"},"properties":{"dependency":{"package":"hpax","version":"1.0.3","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.0.4","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":"4c085fc637235617fcd4dcf842d2069ef44eafca204cddabd30b45d392246f8e"},"properties":{"dependency":{"package":"jose","version":"1.11.12","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.11.13","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":"c0da958f97e85e7c012ce296393df801bc7a8f6d5ef93dc49c3d1e5029d12057"},"properties":{"dependency":{"package":"plug_crypto","version":"2.1.1","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"2.2.1","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":"b05d9050fc2e80c3a3a00ea79b7c34694469244d3c1dcb20cc40c47fdc55aaec"},"properties":{"dependency":{"package":"decimal","version":"2.3.0","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"3.0.0","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":"c2c0d303d9969db61c54a042f7122f819cf5de43de6e49fd466e948c76412c3f"},"properties":{"dependency":{"package":"ecto","version":"3.13.5","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"3.14.3","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":"3efbc998b0611b7dcdf54ccc4a913ea17e4b7e66b848cbd89414feca5da183fc"},"properties":{"dependency":{"package":"hpax","version":"1.0.3","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.0.4","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":"12192512338528ab229b69a82f3b5f1b5c2b67cd1c3402767296d0878121b0f2"},"properties":{"dependency":{"package":"plug_crypto","version":"2.1.1","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"2.2.1","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":"5bdc93089908ac3589e1229a1410e95c6a110bb4a9423477b3f93feb572e9e84"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","severity":"medium","relation":"transitive","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":"cf737bdebc01ef9d3180215d35e6e1be355772015c925b2f4f50b59db63cba86"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.6","relation":"transitive","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":"42fef511f432125e34db62efa4aedeb44dbfd47eb0876722f7df1543789ef7c2"},"properties":{"dependency":{"package":"tokio","version":"1.53.1","advisory":"RUSTSEC-2026-0386","severity":"medium","fixedVersion":"1.53.3","relation":"direct","declaredRange":"1","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":"5740ef6a6873104ec1ae6a58d0fd0367b47cda0da23c4ca0bf7d9efbd61b434c"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.4","advisory":"RUSTSEC-2026-0371","severity":"medium","relation":"transitive","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":"4e0a4e413320c19e58e1028bff3888de630f5d2064db86e2ffde041ed6af7b52"},"properties":{"dependency":{"package":"zvariant","version":"5.15.0","advisory":"RUSTSEC-2026-0370","severity":"medium","relation":"transitive","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":"0245af74a8c80c253f84a24c3e7a73806068815376b7433dee90f5788ae956f6"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.15.0","advisory":"RUSTSEC-2026-0372","severity":"medium","relation":"transitive","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":"361bc4d3f561175feb5a4ae541868450a2f172f45a3b33cbde2b8e736e7981e5"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","severity":"medium","fixedVersion":"1.0.103","relation":"transitive","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":"a0b44ce84cd0c28df454049be712e4b3575cf1e165ae10db069f3e44bff07066"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","severity":"medium","fixedVersion":"1.0.103","relation":"direct","declaredRange":"1","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":"1d65294b8cb115fa70c70306c61db459820934a9c86e8d17d74619d0fc2d36fa"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","severity":"medium","relation":"transitive","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":"eedb4951b35e54e29e002eea6ec25d35b9f614e0e4585ba7ee8257eb2f21a6a9"},"properties":{"dependency":{"package":"h2","version":"0.4.13","advisory":"RUSTSEC-2026-0258","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.4.16","relation":"transitive","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":"733fee1f17c12df0e25ff8894f34791ae2d48ea439df6de18eadb6f81479e037"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0002","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.16.3","relation":"transitive","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":"9a94552179a48e3e118614ae4271ca44e2eb8ea8c597c47b4bc21c376825aaec"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0253","severity":"medium","fixedVersion":"0.18.2","relation":"transitive","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":"9c65e15eab07d497f44b0a65421fd98f2a2bdfe35c56ce9ed18cf53543429033"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","severity":"medium","relation":"transitive","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":"14f4ccaf9bf6cf9b5f72195db5a7d07bf68f3c2fd85a2f2c88b1a1927ea9be4f"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","severity":"medium","relation":"transitive","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":"94c9c6eea9736a3fd76b28f8e3d0c3078063453e6155018fd9475b6b0bfd6933"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.6","relation":"transitive","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":"74a43b18e15f3345c7c3aa3b4335f83e759fd5cbe3430d95932966c9b7cfb092"},"properties":{"dependency":{"package":"rustls","version":"0.23.37","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"severity":"medium","fixedVersion":"0.23.45","relation":"transitive","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":"dedbf47f393a2cf0eb622ce570cedb562e6ca97bed006ce25035b359c5179648"},"properties":{"dependency":{"package":"tokio","version":"1.49.0","advisory":"RUSTSEC-2026-0386","severity":"medium","fixedVersion":"1.51.6","relation":"direct","declaredRange":"1","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":"fb984f8196e7cae1e7b4f05e12f9cad516aa35b89e29e41cb218a0b345548db2"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","severity":"medium","fixedVersion":"0.13.4","relation":"transitive","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":"c9f2c7b4c8d92cad8e2483c1c39fd9f5065ea1675662680301c82f8b12d0770b"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"5850c9e1e0aaf5b1baf705d6a58380a55459165c0ce817ea3f7524eff822555c"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"31520b812275079d33eb6a9f9ef1ef1e2a4d247a891907a83caac0dbc5544faf"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"8eade1f42a560096f1b301d6be68c7778b1031cba8267a953b9c03cc25f6cf35"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"d49292e72dfb5d1c97483cd7b5ecd8afb76a3c3a7dc7cafeae3e9736f44ff88b"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"8d9b3af9e2735fe4a254634b6697acca29504444850176dd63693431c3a52315"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"39d065a42d40ee6e9602979552b582431ebf24ffd35807d9d47aa3631b16dc37"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"8f0fa76ad9cf0342aff79535d6b8c9024b1bc0478445a3e196481746e9354349"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"e83e9887e208f31b2b804df3b0691c4d92da8f1f9eb2ad0edba1e313f6709885"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"12315dabd98fe273e9d419341f384bfcd619bbf898b882c135a6faf5574388f1"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"aecb3aeb3a551935300e98c0df707e04bd79ab003f2cc682db6fc202ad6b1dfa"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"severity":"medium","fixedVersion":"7.4.0","relation":"transitive","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":"d6c11dbbeb061e70225259651b6f3f6b5cffc49cf0e86d4c350d0278bd687b8f"},"properties":{"dependency":{"package":"zstd-sys","version":"2.0.16\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","severity":"medium","fixedVersion":"2.1.2","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e83b518b7f52f2dcaa5ae6040062bb11c1eb9b8af4b47d50866778e1f843e3bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b722655cfee0bebb834d1f978c6e46e1e7f2491e85454ab1864c2b63f33c9fc"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d270d6b278f33421386b522ee954acbea04a6dd762728a6c59943bd45fc9a3e"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23d222d1bad0dc78e0d2cc4b33097da37bb59caa484e4e04cbdd6045dd66d8e2"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"93daef4884faf837022730625031b847e47e40dc93dfb30ebcdfbf4d816821e8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b07f7579076628bd79d209a9a37ee15b3727086be16ddfbcf8b1646dd9b10be"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c330e717e0d65e1b0fe4da518ad8fbf9877035563dcdcc475a03da32e0e34fa2"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74cb5fc9a1ce13f4bddaa82e1af761c78c7a1fbd57d519cc4382c22b6cc6a3e4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb35c6bf773a8b210ef5f79c84cb9af9a5e921ee5bfb16bcc37d9a4b40bd3952"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69081ba97a36616655302a2736bb265b58d3e1b1bd84b6c2f077524533cf8aeb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c30abf6b088b941b1837b606dee94d978e08fa725b63ef1319eb86134edd8da"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4583b3fd7ee8919463fdc5b25e1155fec5698acc0864907ef34dbfd1bbe8db4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a3d98ac32d541e10c99e3ed1aeeaa14cc38b82bd673f1343704939281267137"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D32","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":"fe7a21e2185d2dd80e94810b23d3dffaeb65288833198c3562a721aa4cded250"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: tui_forwarder.ex \u2194 handle_backend.rs: \u0060lib/optimal_system_agent/events/tui_forwarder.ex\u0060 (context optimal_system_agent) and \u0060priv/rust/tui/src/app/handle_backend.rs\u0060 (context priv) sit in DIFFERENT parts of the tree yet 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006036515858\u0060 v1.0.156: interrupt stops losing your work \u002B ripgrep-fast search \u002B ph\u2026; \u00604103e389\u0060 Fix persistent goal controls and wrapped CLI input (#113); \u0060da7ae273\u0060 feat(ask_user): the agent stopped a six-hour run to ask a question no\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"708412f90290e282d1573cace37b228edab61f292f658f6becdf94dc35a250b3"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: tui_forwarder.ex \u2194 sse.rs: \u0060lib/optimal_system_agent/events/tui_forwarder.ex\u0060 (context optimal_system_agent) and \u0060priv/rust/tui/src/client/sse.rs\u0060 (context priv) sit in DIFFERENT parts of the tree yet 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006036515858\u0060 v1.0.156: interrupt stops losing your work \u002B ripgrep-fast search \u002B ph\u2026; \u00604103e389\u0060 Fix persistent goal controls and wrapped CLI input (#113); \u0060da7ae273\u0060 feat(ask_user): the agent stopped a six-hour run to ask a question no\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cca4f71f86e7313ba47e6a1f5ab1f0aca6ffc02f3b9d0f572c098495100f04"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: tui_forwarder.ex \u2194 backend.rs: \u0060lib/optimal_system_agent/events/tui_forwarder.ex\u0060 (context optimal_system_agent) and \u0060priv/rust/tui/src/event/backend.rs\u0060 (context priv) sit in DIFFERENT parts of the tree yet 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006036515858\u0060 v1.0.156: interrupt stops losing your work \u002B ripgrep-fast search \u002B ph\u2026; \u00604103e389\u0060 Fix persistent goal controls and wrapped CLI input (#113); \u0060da7ae273\u0060 feat(ask_user): the agent stopped a six-hour run to ask a question no\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"472d364e5960ab179be22b04e1a867b6cb812b9b3f340c9e0b7e74888e6b358b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: handle_actions.rs \u2194 http.rs: \u0060priv/rust/tui/src/app/handle_actions.rs\u0060 and \u0060priv/rust/tui/src/client/http.rs\u0060 change together 59% of the time (10 of the 17 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 10 shared commits counted here, the most recent 3 are \u006090175864\u0060 v1.0.155: kill the stalls - live waiting indicator, no file_glob hang\u2026; \u0060ddf265eb\u0060 feat: harden runtime intelligence and visibility; \u00607bc3673b\u0060 fix(tui): /model now switches the live session, not just global defaults \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab87c1e66c989aa5a38a5d038267aedcba54d526f9f55d5ee3f48c22f276e042"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: handle_backend.rs \u2194 render.rs: \u0060priv/rust/tui/src/app/handle_backend.rs\u0060 and \u0060priv/rust/tui/src/components/agents/render.rs\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \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 7 shared commits counted here, the most recent 3 are \u006066651e35\u0060 feat(dashboard): show live per-agent context % instead of a misleadin\u2026; \u00609b79514f\u0060 fix(tui\u002Bagents): stop long multi-agent turns looking frozen; fix task\u2026; \u00607c5c8cee\u0060 fix(subagents): \u0022no recent signal\u0022 described our ignorance; nothing d\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71ee4fd9febcf2f609bb2018e812134519c8594eefae439dc2317f11c4d7814"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: handle_backend.rs \u2194 mod.rs: \u0060priv/rust/tui/src/app/handle_backend.rs\u0060 and \u0060priv/rust/tui/src/components/input/mod.rs\u0060 change together 54% of the time (15 of the 28 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 15 shared commits counted here, the most recent 3 are \u00609b79514f\u0060 fix(tui\u002Bagents): stop long multi-agent turns looking frozen; fix task\u2026; \u006034828317\u0060 feat(tui): alt\u002Benter sends a queued message into the running turn; \u006072a96882\u0060 fix(tui,runtime): resize stranded a copy of the interface per step; t\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b60cc0435d54d07aac7b7359e769c4874c5972f05f84cffdf2a762408ee01b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: handle_actions.rs \u2194 status_bar.rs: \u0060priv/rust/tui/src/app/handle_actions.rs\u0060 and \u0060priv/rust/tui/src/components/status_bar.rs\u0060 change together 50% of the time (17 of the 34 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 17 shared commits counted here, the most recent 3 are \u00604f74f734\u0060 feat(jailbreak): inject override at the TOP of the system prompt \u002B an\u2026; \u0060ddf265eb\u0060 feat: harden runtime intelligence and visibility; \u006018470e24\u0060 fix(tui): responsive status and Claude thinking (#115) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2732edeef7bcec3758c047123a51222cedd2802dc5db40f83d1859bc13f28157"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb348d1901b1fb2f1ad56300050fee5b3a2b42a83ab422798b516be79a99e93c"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23827c4b65bb6ea46f2837ee602e79ec830db7e46a6c998324c2017a10e5aacb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f714f5533f4170adf3d297d170e8314696f3c05996d822c3260d60fb1ae7075"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65d87ec21c1ecf43a0424ab644272e64330044f506a9f75bd32965b5f8696841"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Erlang/OTP 26: .tool-versions declares Erlang/OTP 26 as this project\u0027s version file, and Erlang/OTP 26, left support (the last three OTP majors) when OTP 29 shipped on 2026-05-13. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-13 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":".tool-versions"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6ecde543970f677a63adb2b3c191b540527221cc5123b6da02c7bb7863fdb5"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by imperative guard methods that throw on violation) \u2014 this is NOT a claim that the code is unprotected. What\u0027s missing is a NAMED rule set: the guards encode the access rules inline, so the rules can\u0027t be listed, reviewed or tested apart from the call sites that apply them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: CancelTimeout: \u0060CancelTimeout\u0060 is an imperative name inside a domain-event set whose siblings are past-tense facts \u2014 it reads as an intent, not something that happened. Name new events for the fact that occurred (e.g. \u0060ItemAdded\u0060). Do not rename this one if it is already stored or published: its type name is written with every event recorded under it, so a rename can break replay of the stored stream and every subscriber that reads it, and a clearer name does not pay for that. If it has never been written or sent, renaming it now is safe."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/rust/tui/src/event/backend.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e3319607ab68c245a6e1678905095e0ad1299f518b423cc514410496443bd5"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/foundation-core/README.md links to \u0060../architecture/\u0060, but \u0060docs/architecture\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/foundation-core/README.md"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ca3b9e9d8b5487caa5c7fa87c7c771c76cbc917c26660fb2dd45144d15d5c5"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/operations/README.md links to \u0060debugging-journal.md\u0060, but \u0060docs/operations/debugging-journal.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/operations/README.md"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c437084bed0cfa871649fc4bf4648a37e45e4b2b49e681818a7b3735f68d8bf"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/backend/channels/README.md links to \u0060../../architecture/README.md\u0060, but \u0060docs/architecture/README.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/backend/channels/README.md"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd5b3e0364ed3058a0a100baf0dfe325f9d642514175327fdc6af24aee76def"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060.\u0060, \u0060native/linux/ScreenShare\u0060, \u0060native/macos/ScreenShare\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060scripts/whatsapp-bridge/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9902823198500153c108188947d682388e44bd4558229ccb292c24a03e07f2b4"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yml"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by runtime CREATE TABLE outside the migrations: This repository versions its schema (Ecto migrations), but runtime CREATE TABLE here builds or alters the schema from the model as well, outside that history \u2014 the two paths can disagree about the shape, and a change made this way is never a reviewed migration. Turn it off and let Ecto migrations own the schema."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/defense_lab.ex"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe1299defa08f1b52ac3dae5e41f00706726a3676ff1426dcb93c6713910ba1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060ev.on(\u0022messages.upsert\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/bridge.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"44aabcc6db273dd4f9e799ffa0fd8dc385e58e2f43bc2e520b5efe22edb31050"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060ev.on(\u0022messages.upsert\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/bridge.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"795cb2c8da85c68bca101c12d2ce11f4f5354277a9023f78660c3d2f3774c2bc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060ev.on(\u0022messages.upsert\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/bridge.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"688f63fff3e6a4ef65c14f072d7f912d53fb4d87080b84e057e541ab6bd41940"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060app.post(\u0022/send-media\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/bridge.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7c2ad0831d38647c1c268cfdd2871e97edfee932f740a64cfda3b329844bfb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060app.post(\u0022/send-media\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/bridge.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f03d5c281269c60aa4c73f95a589d5bae50f64d9000d8d6af0850f36b3e32d"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: scripts/whatsapp-bridge/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/whatsapp-bridge/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f553aa8d60399081b4da0959b396c2cae1ae868b38ad4d6c317b610e23b8a9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060:api_key in modes and Prompt.confirm(\u0022Use an API key instead?\u0022)\u0060 appears character-identically in 2 files \u2014 lib/mix/tasks/osa.setup.wizard.ex, lib/optimal_system_agent/cli/setup.ex. 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":"lib/mix/tasks/osa.setup.wizard.ex"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ffc8392d8c389f71bad1771e662332d42770cb197d2b6b53bba85f18ef0f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Auth.installed?() and Auth.status().connected?\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/claude_cli.ex, lib/optimal_system_agent/providers/copilot_cli.ex. 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba96b0803c81aab7a288714cf32bc52d239361ec26403bf8c3a5d9e53b6f0bd8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Code.ensure_loaded?(mod) and function_exported?(mod, fun, 0)\u0060 appears character-identically in 32 files \u2014 lib/optimal_system_agent/tools/builtins/ask_user/prompt.ex, lib/optimal_system_agent/tools/builtins/bash_output/prompt.ex, lib/optimal_system_agent/tools/builtins/code_symbols/prompt.ex, lib/optimal_system_agent/tools/builtins/create_agent/prompt.ex. 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":"lib/optimal_system_agent/tools/builtins/ask_user/prompt.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae3a47afa9a0f1da99fd680fcbb56902000af3c3dc121b472e33a758bee7f37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060File.regular?(path) and MapSet.member?(exts, Path.extname(path))\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/symbol_resolver.ex, lib/optimal_system_agent/security/variant_analysis.ex. 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":"lib/optimal_system_agent/security/symbol_resolver.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26e02a25a8de6a16c45b4384596eb8518a6dfd721a98ff4b639f3aa77518797"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :model) || default_model()\u0060 appears character-identically in 4 files \u2014 lib/optimal_system_agent/providers/bedrock.ex, lib/optimal_system_agent/providers/claude_cli.ex, lib/optimal_system_agent/providers/copilot_cli.ex, lib/optimal_system_agent/providers/openai_codex.ex. 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":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddc5a64d68d685ab84e155dddf719dc0b5133b7fabd6e3240b1842d72f2b0dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :prompt_cache_key) || Keyword.get(opts, :session_id)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/openai_compat.ex, lib/optimal_system_agent/providers/openai_responses.ex. 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":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33a76c1a600ff5abb28f6ebaea1a23078ccf6e8b24e49af59695cae6bb84331"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :provider) || Application.get_env(:optimal_system_agent, :default_provider, :ollama)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/fallback_chain.ex, lib/optimal_system_agent/teams/manager.ex. 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":"lib/optimal_system_agent/providers/fallback_chain.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14b11ee10993380d3e660878e1f53c95d3b7829091e6a66aebc4efd7eb0f48e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :reasoning_effort) || Keyword.get(opts, :effort) || current_effort()\u0060 appears character-identically in 4 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/google.ex, lib/optimal_system_agent/providers/openai_compat.ex, lib/optimal_system_agent/providers/openai_responses.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"735c33b451d413c1c4db2aaffc2dc5542dfa2aaae42fe97208a49a7d80f86a8d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :runner) || default_runner(opts)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/oob.ex, lib/optimal_system_agent/security/proxy_capture.ex. 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":"lib/optimal_system_agent/security/oob.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de610a7c1a0c182615d0dcf41818172154cbc54936f86a3c3d28f1ddfa51920"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :working_dir) || OptimalSystemAgent.Workspace.Cwd.get()\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/fleet.ex, lib/optimal_system_agent/agent/loop.ex. 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":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1a5b75731c4d3043772298600ee589aa8bf5ed74f87d3e6cc16e27fa19d526"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(a, :name) == Map.get(b, :name) and Map.get(a, :arguments) == Map.get(b, :arguments)\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/loop/doom_loop/stall.ex, lib/optimal_system_agent/agent/loop/regulation/homeostat.ex, lib/optimal_system_agent/agent/loop/regulation/signals.ex. 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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1715cad3e8d6c9bec7217d91d36d8796652f6a21adaae3372655ac439248d723"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(args, \u0022__session_id__\u0022) || (ctx \u0026\u0026 Map.get(ctx, :session_id)) || \u0022unknown\u0022\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/tools/builtins/message_agent/handler.ex, lib/optimal_system_agent/tools/builtins/scratchpad/handler.ex, lib/optimal_system_agent/tools/builtins/team_tasks/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/message_agent/handler.ex"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f531a1abd86dec050870f66a3cbe1c44a4ebc34b04290aa35e27fabf56fe5bfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(args, \u0022command\u0022) || Map.get(args, \u0022code\u0022)\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/loop/tool_executor.ex, lib/optimal_system_agent/agent/loop/verification_evidence.ex, lib/optimal_system_agent/permissions/auto_classifier.ex. 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":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"c833fe8179bc2becc6adde6b4048d3d16c42629a50ff252c3912ceec420e8ef7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(args, \u0022command\u0022) || Map.get(args, :command)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/regulation/homeostat.ex, lib/optimal_system_agent/agent/turn_trace.ex. 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":"lib/optimal_system_agent/agent/loop/regulation/homeostat.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce025d5025be63bbea9f6b284e8a31e5a737be8f8520390521381ff8d33275ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(e, :kind) == :write and Map.get(e, :success) == true\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/goal_verifier.ex, lib/optimal_system_agent/orchestrator.ex. 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":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"358db585bdb0dae33b9dd1a9b9d5400fe06b90d4dcd335e116d11cd7e69b1c39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(entry, :content) || Map.get(entry, \u0022content\u0022) || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/mix/tasks/osa.lessons.ex, lib/optimal_system_agent/memory/flush.ex. 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":"lib/mix/tasks/osa.lessons.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbb3deb9444b5f04d75f8b063aa82a5aa29963806dd14f13a977bcd8a2beb3c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(finding, :cve) || Map.get(finding, \u0022cve\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/threat_intel.ex, lib/optimal_system_agent/security/weapon_catalog.ex. 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":"lib/optimal_system_agent/security/threat_intel.ex"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8466997717950b6e1078bcbce01b7f844445cb086d3f9a03d9180a621a510"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(finding, :target) || Map.get(finding, \u0022target\u0022, \u0022unknown\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/exploit_generator.ex, lib/optimal_system_agent/security/weapon_catalog.ex. 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":"lib/optimal_system_agent/security/exploit_generator.ex"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc1bf399ab02ca587b0d167c22a0d6b85ecfad60803805a0d6c2c4a41f61df9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(m, :content) || Map.get(m, \u0022content\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop.ex, lib/optimal_system_agent/orchestrator.ex. 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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":3244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5f3a620d55bc5b47cb245338aff347c0abfaead8dfeec198a8d6a8ba3cba14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(map, key) || Map.get(map, Atom.to_string(key))\u0060 appears character-identically in 8 files \u2014 lib/optimal_system_agent/channels/http/api/memory_routes.ex, lib/optimal_system_agent/security/anomaly_queue.ex, lib/optimal_system_agent/security/class_queue.ex, lib/optimal_system_agent/security/code_fix_pr.ex. 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":"lib/optimal_system_agent/channels/http/api/memory_routes.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec6f63384c5a65adf34b39a9fa90566d48d9c807906b9726e6cb32642be45c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(map, key) || Map.get(map, to_string(key))\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/events/tui_forwarder.ex, lib/optimal_system_agent/providers/openai_responses.ex, lib/optimal_system_agent/security/http_replay.ex. 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":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fd75fe18460b34f6d434e6c66c9d86f58c644b11de1cdef1445ec306575a5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(message, :role) || Map.get(message, \u0022role\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/active_skills.ex, lib/optimal_system_agent/agent/loop/transient_notes.ex. 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":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"705809439d89b4db3151b72a62a628d6d1b962b19c1ba94a4e3e3dad50f97c6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(meta, :parent_session_id) || \u0022unknown\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/run_store.ex, lib/optimal_system_agent/orchestrator.ex. 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":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55c44386c7f3f760b6abd32accda2f48a3db79ca37e24e97457f8e26b08bff3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :content) || Map.get(msg, \u0022content\u0022)\u0060 appears character-identically in 9 files \u2014 lib/optimal_system_agent/agent/compaction_safety.ex, lib/optimal_system_agent/agent/compactor.ex, lib/optimal_system_agent/agent/delegation_policy.ex, lib/optimal_system_agent/agent/loop/context_collapse.ex. 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":"lib/optimal_system_agent/agent/compaction_safety.ex"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9845b4eb5fd26b352ff79f9c4ce67cade9f3e5069923c4b0a17f5dc6d8da5a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :role) || Map.get(msg, \u0022role\u0022)\u0060 appears character-identically in 5 files \u2014 lib/optimal_system_agent/agent/loop/context_collapse.ex, lib/optimal_system_agent/agent/loop/context_reduce.ex, lib/optimal_system_agent/agent/orchestrator/result_summarizer.ex, lib/optimal_system_agent/providers/history_sanitizer.ex. 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":"lib/optimal_system_agent/agent/loop/context_collapse.ex"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7645e297791886386237bb00392e82ea102093e241826687570ce883d365aa0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :role) || Map.get(msg, \u0022role\u0022) || \u0022\u0022\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/delegation_policy.ex, lib/optimal_system_agent/agent/loop/proactive_compaction.ex, lib/optimal_system_agent/memory/flush.ex. 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":"lib/optimal_system_agent/agent/delegation_policy.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de43ed722ceca93624774cdd4dc8a1e968d37410b725ffb7903adb8ac691f20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :scaffold) || Map.get(msg, \u0022scaffold\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/context_collapse.ex, lib/optimal_system_agent/agent/loop/context_reduce.ex. 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":"lib/optimal_system_agent/agent/loop/context_collapse.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50a6f235067a32a04ff51df31da6960f528cd147e19cd8355c3ee35dce6ace6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :tool_call_id) || Map.get(msg, \u0022tool_call_id\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/context_reduce.ex, lib/optimal_system_agent/providers/history_sanitizer.ex. 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":"lib/optimal_system_agent/agent/loop/context_reduce.ex"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca907e0ec019272292c224614b0170c186e7c16023a83fffa9703ee77b924cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(msg, :tool_calls) || Map.get(msg, \u0022tool_calls\u0022)\u0060 appears character-identically in 6 files \u2014 lib/optimal_system_agent/agent/compaction_safety.ex, lib/optimal_system_agent/agent/compactor.ex, lib/optimal_system_agent/agent/loop/context_reduce.ex, lib/optimal_system_agent/agent/orchestrator/result_summarizer.ex. 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":"lib/optimal_system_agent/agent/compaction_safety.ex"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdb2d7e24dec9df55202fbd875b8996cb1491ae47d6f47726a8a6580fb73ade"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(opts, \u0022region\u0022) || Map.get(opts, :region)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex, lib/optimal_system_agent/tools/builtins/computer_use/adapters/windows.ex. 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":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/linux_wayland.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"033cd80903c879600a65bf2bc9af81385701e46325bd97e6fa3a1894c0906055"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(partial, :tool_calls) || Map.get(partial, \u0022tool_calls\u0022) || []\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/resilience.ex, lib/optimal_system_agent/providers/retry_classifier.ex. 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":"lib/optimal_system_agent/providers/resilience.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2b6a99a896693199bf200b68971db0230252b08c4d41814db80875ee1521fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(source, :cache_control) || Map.get(source, \u0022cache_control\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/openai_compat.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"05945307ec3f86bac4b0f97b98882ce909e4158a27aeef89e8c0ddee4b2a324d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(state, :working_dir) || File.cwd!()\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/goal_verifier.ex, lib/optimal_system_agent/agent/loop/tool_orchestrator.ex. 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":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af31166a4e1826bf76f9dae63739903f0300996dfd5dd2af5b4c74ace2eb924"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(tc, :name) || Map.get(tc, \u0022name\u0022)\u0060 appears character-identically in 5 files \u2014 lib/optimal_system_agent/agent/loop/advisor.ex, lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex, lib/optimal_system_agent/agent/safety/model_classifier.ex, lib/optimal_system_agent/permissions/auto_classifier.ex. 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":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f71cddfa14ec962589a929332485ba93c6e1c6b75f50fabae93c0a51dcefe59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(usage, :requested_at) || Map.get(usage, \u0022requested_at\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/accounting.ex, lib/optimal_system_agent/agent/pricing.ex. 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":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcfacf43e1049b21cc489dc9c458d3b693626c37e02d732c4eaa54a9c3e6287"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(usage, key) || Map.get(usage, Atom.to_string(key)) || 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/accounting.ex, lib/optimal_system_agent/agent/pricing.ex. 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":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d75b10a9f0021e73a3c28d572a64982fa8ea36d11e33bd681c5dcd0f0c42b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.has_key?(tc, \u0022arguments\u0022) and not Map.has_key?(tc, :arguments)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/compactor.ex, lib/optimal_system_agent/providers/registry.ex. 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":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cba5f2de13e05ec671c143d5e49882a8691fff6e42cd1119217a588c82c1b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060OptimalSystemAgent.Workspace.Cwd.session_dir(session_id) || OptimalSystemAgent.Workspace.Cwd.get()\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/channels/cli/commands.ex, lib/optimal_system_agent/channels/http/api/session_routes.ex. 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bb0b9c3f1fc119cbe7be0148c1f2f648e7b742ac399a6f9040a3f8075e6ebf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060OptimalSystemAgent.Workspace.Topology.workspace_root(cwd) || cwd\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/tool_executor.ex, lib/optimal_system_agent/channels/cli/commands.ex. 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":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fea963446ef761525f8bf4a1e08a46215b58f64bdaeda845f40d17caf5d63e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Regex.match?( ~r/\\b(plan|phase|milestone|roadmap|sprint|breakdown|decompose|stages?|steps?)\\b/i, message ) and is_long\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/tasks/workflow.ex, lib/optimal_system_agent/agent/workflow.ex. 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fa48ac2f82f6c2aa323261f1aec9400161833ded4f476c75355286386d68e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Regex.match?(~r/^[-*\u2022]\\s\u002B\\S/, trimmed) or Regex.match?(~r/^\\d\u002B[\\.\\)]\\s\u002B\\S/, trimmed)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/guardrails.ex, lib/optimal_system_agent/agent/loop/message_handler.ex. 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":"lib/optimal_system_agent/agent/loop/guardrails.ex"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6b24c52dd5d2e02432b86ba12fa8260c5ca84c1d935431d3a8fe53944ba295"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.contains?(m, \u0022sonnet-4-6\u0022) or String.contains?(m, \u0022opus-4-6\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/registry.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1ca37b8f2893137ef8cb188ab66853bf467b8b9678382957e7d82cb9fd47cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.length(t) \u003E= 5 and String.length(t) \u003C= 120\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/task_tracker.ex, lib/optimal_system_agent/agent/tasks/tracker.ex. 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":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff95cf738f908284cd6215f65b6c973c37cf8a9b9c2e2e8f041056b935cab97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.starts_with?(path, \u0022~\u0022) or String.starts_with?(path, \u0022/\u0022) or String.match?(path, ~r/^[A-Za-z]:[\\\\\\/]/)\u0060 appears character-identically in 6 files \u2014 lib/optimal_system_agent/tools/builtins/download/handler.ex, lib/optimal_system_agent/tools/builtins/file_transform/handler.ex, lib/optimal_system_agent/tools/builtins/file_write/handler.ex, lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f1e195eeddfd8bf997f5769b7098a971dd43fbb4f1480171097a25aff4e50d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.starts_with?(trimmed, \u0022Error:\u0022) or String.starts_with?(trimmed, \u0022Blocked:\u0022) or String.contains?(result_str, \u0022No change needed\u0022) or St\u2026\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/doom_loop/stall.ex, lib/optimal_system_agent/agent/loop/regulation/signals.ex. 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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a22a63c61df32aae119e694281634d868d1cf5dc56199617dc6e7b8939d2c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.starts_with?(trimmed, \u0022data:\u0022) or String.starts_with?(trimmed, \u0022event:\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/openai_compat.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e005644726850ac2dd57373e1ae8811a5f2c83660540aeee65d39cdfe663c102"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.starts_with?(trimmed, \u0022{\u0022) or String.starts_with?(trimmed, \u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/mcp/transport/http.ex, lib/optimal_system_agent/mcp/transport/stdio.ex. 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":"lib/optimal_system_agent/mcp/transport/http.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cff8e14982900453f3512c4b868d312fc2f7b917e236fb0b2dd4bd822c15d90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.get_env(\u0022OLLAMA_URL\u0022) || \u0022http://localhost:11434\u0022\u0060 appears character-identically in 2 files \u2014 config/runtime.exs, lib/optimal_system_agent/cli/doctor.ex. 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":"config/runtime.exs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c10a70449d9fd9989a4aa35b8bd229242b40b0cb92c476e6ad752ce271ca507"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.get_env(\u0022OSA_HOME\u0022) || Path.expand(\u0022~/.osa\u0022)\u0060 appears character-identically in 5 files \u2014 config/runtime.exs, lib/optimal_system_agent/agent/permission_mode.ex, lib/optimal_system_agent/agent/task_tracker.ex, lib/optimal_system_agent/agent/tasks/persistence.ex. 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":"config/runtime.exs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb209999d42e6d5238ce7d6e0ed7e2a63c272a30588a34cf132d6e5e547d23ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.get_env(\u0022OSA_HOME\u0022) || Path.join(System.user_home!(), \u0022.osa\u0022)\u0060 appears character-identically in 11 files \u2014 lib/optimal_system_agent/agent/budget.ex, lib/optimal_system_agent/agent/jailbreak.ex, lib/optimal_system_agent/agent/prompt_overrides.ex, lib/optimal_system_agent/agent/voice.ex. 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":"lib/optimal_system_agent/agent/budget.ex"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"945912ba9b194920c9716719a7508a1f898e0bd17ba0c912a78b384864352c1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.get_env(\u0022OSA_HTTP_PORT\u0022) || System.pid()\u0060 appears character-identically in 2 files \u2014 config/runtime.exs, config/test.exs. 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":"config/runtime.exs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea72e2fe9a3e2b3192ebbb578df35cbf7a7b1c3e9a9c43a2cf758e85fb831ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.user_home() || System.get_env(\u0022HOME\u0022) || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/shell_execute/parser.ex, lib/optimal_system_agent/workspace/cwd.ex. 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":"lib/optimal_system_agent/tools/builtins/shell_execute/parser.ex"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5c4d7b89c737b1dfbdf0895b7a628f42934bee5db30bde75ad6e1f9aa40fc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Task.yield(task, timeout) || Task.shutdown(task, :brutal_kill)\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/compactor.ex, lib/optimal_system_agent/agent/hooks/dispatch.ex, lib/optimal_system_agent/agent/loop/turn_pipeline.ex. 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":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad6e5b7bf69a59f5b13db712d029e9d0b57b02b3b7d18c43db5d7867710ae47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Task.yield(task, timeout_ms) || Task.shutdown(task, :brutal_kill)\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/hooks/shell_hook.ex, lib/optimal_system_agent/agent/tasks/check.ex, lib/optimal_system_agent/tools/builtins/code_sandbox.ex. 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":"lib/optimal_system_agent/agent/hooks/shell_hook.ex"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"067fdcd9af58532e70989641d1b8a3ca1125f7d1316fcc3ee7bfd57982c36295"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args[\u0022limit\u0022] || Constants.default_limit()\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/memory_recall/handler.ex, lib/optimal_system_agent/tools/builtins/session_search/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/memory_recall/handler.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3557c6e82c344f2813e644e976d8fb2e6da47c717faf58fac0e2ad6ea9b314"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body[\u0022refresh_token\u0022] || entry[\u0022refresh_token\u0022]\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/auth/providers/copilot.ex, lib/optimal_system_agent/auth/providers/minimax.ex, lib/optimal_system_agent/auth/providers/openai_codex.ex. 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":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda62daa7dec66a6825505a06d02dbe71b6b5ba4b5879b5de0a561494b6f8628"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content == \u0022\u0022 or String.ends_with?(content, \u0022\\n\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/open_computers/executor/direct/ssh_keys.ex, lib/optimal_system_agent/tools/builtins/file_transform/ops.ex. 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":"lib/optimal_system_agent/open_computers/executor/direct/ssh_keys.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5080114f1c432318a6329fc2648629537271d344ddd186621c17bd8139024e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ctx.session_id || Map.get(args, \u0022__session_id__\u0022, \u0022unknown\u0022)\u0060 appears character-identically in 4 files \u2014 lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex, lib/optimal_system_agent/tools/builtins/peer_claim_region/handler.ex, lib/optimal_system_agent/tools/builtins/peer_negotiate_task/handler.ex, lib/optimal_system_agent/tools/builtins/peer_review/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"488be1d25167e8e5d56a0f29477b475f2cdb97f90a64b74d872592a33f3de8d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deadline || System.monotonic_time(:millisecond) \u002B @startup_timeout_ms\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex, lib/optimal_system_agent/open_computers/executor/direct/desktop/windows.ex, lib/optimal_system_agent/open_computers/executor/direct/desktop/x11vnc.ex. 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/macos.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ec8193fb7da7327fd4960b708c85d7d20aee2972998e9b0f03435971b6e3dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dir != root and String.starts_with?(dir, root \u003C\u003E \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/skills/curator.ex, lib/optimal_system_agent/tools/builtins/skill_manager.ex. 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":"lib/optimal_system_agent/skills/curator.ex"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e30ee7014cc92fad2460e5035541b47cb0dedaf025f4d069be95518faf870df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry[:content] || entry[\u0022content\u0022] || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/memory/search.ex, lib/optimal_system_agent/memory/synthesis.ex. 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":"lib/optimal_system_agent/memory/search.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4894aee974c4cb5e9fdc0a36fe39d4a3e8ad0b3a157f01431184ae26c3a673"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry[:keywords] || entry[\u0022keywords\u0022] || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/memory/mmr.ex, lib/optimal_system_agent/memory/store.ex. 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":"lib/optimal_system_agent/memory/mmr.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca7a0567b85c1dd96b85fc86bf8619f4b6a2ad7625778035c0e6922785ea9ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expanded == root or String.starts_with?(expanded, root \u003C\u003E \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/permissions.ex, lib/optimal_system_agent/tools/registry/skill_loader.ex. 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":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0d3120f770f38982c8f2f5d1ddb6d5c4f7802e92a7b332e0476f7ce8bc87bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field(state, :cookies) || Map.get(state, \u0022cookies\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/login_preflight.ex, lib/optimal_system_agent/security/login_session.ex. 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":"lib/optimal_system_agent/security/login_preflight.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e36c5050d96f0a0422b8ec6ba6d8d601d522cee34a1293c4e34c70a805eb40e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060has_changes and not merge and not discard\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/worktree.ex, lib/optimal_system_agent/workspace/fast_worktree.ex. 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":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e742ec4c7b17474b6d008679bafecff34d66a83a12afc1d7bb05d83fd982150"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060headers[\u0022retry-after\u0022] || headers[\u0022Retry-After\u0022]\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/openai_compat.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3f1ce0b0a8b544d02e8f005dade7cecadb5486cf86fad9108036aa1758b72c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022localhost\u0022 or String.starts_with?(host, \u0022127.\u0022) or host == \u0022::1\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/download/handler.ex, lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"596374aa0cc5da9a8d885f4cc0d1284e4c57ff8fcc0043bda8fd91a657c3a47b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060if new != \u0022\u0022 and String.contains?(content, new)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex, lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"51df58665db7f7790ca6958dd94a4664410fe7270025c99b747d36e9cc078ab7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060info[:old_provider] \u0026\u0026 to_string(info.old_provider)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/model_swap.ex, lib/optimal_system_agent/channels/http/api/session_routes.ex. 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":"lib/optimal_system_agent/agent/loop/model_swap.ex"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e5c7c469cec29edbb2addaf11b60cc8316d9194cbc2769ff1bfb90853a0183"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_atom(provider) and not is_nil(provider)\u0060 appears character-identically in 4 files \u2014 lib/optimal_system_agent/agent/loop.ex, lib/optimal_system_agent/agent/scratchpad.ex, lib/optimal_system_agent/providers/image_budget.ex, lib/optimal_system_agent/providers/registry.ex. 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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"3910558c1c34c6d4a79d6a90d94391a622f8cb8990d2c0bed244b45c6a3a6025"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_atom(v) and not is_boolean(v) and not is_nil(v)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/local_models.ex, lib/optimal_system_agent/providers/cache_attribution.ex. 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":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf2b5808db6a6c99ab3ecbda730609de38764bb6a1bdc5876ce273f1008e6d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(content) and String.trim(content) != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/react_loop.ex, lib/optimal_system_agent/channels/cli/commands.ex. 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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":3659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2cd202452d2899a90c2f37856942458815e45bc7c23da6bb8d7aa3297e7993"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(p) and is_binary(o) and is_binary(n)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/tool_executor.ex, lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex. 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":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"937bc4a7be9704363f59402b4d9e02143238e31fc96a57034e4534df7fa373c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(parent) and parent not in [\u0022\u0022, \u0022unknown\u0022]\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/tool_executor.ex, lib/optimal_system_agent/tools/builtins/send_message/handler.ex. 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":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaeed51a1ccb3f40efdcbad47cecf7c436464c945e08bb9f8e1714c0789648a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(ref) and is_binary(host_id) and kind in [:exec, :agent] and is_map(params)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/open_computers/remote/protocol.ex, lib/optimal_system_agent/remote/frames.ex. 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":"lib/optimal_system_agent/open_computers/remote/protocol.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a7988eb27c4bf55fdf460f953895e969b0353e4c90b6a4bbddfc5f1eb5a69b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(agent_id)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/persisted_result.ex, lib/optimal_system_agent/tools/builtins/task_wait/rewait_guard.ex. 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":"lib/optimal_system_agent/agent/persisted_result.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52fa0c994ed5ea6cdb6ff79fe49e2af799b4153024c1ea01f1f1cf22e599366"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(finding_key)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/code_fix.ex, lib/optimal_system_agent/security/code_fix_store.ex. 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":"lib/optimal_system_agent/security/code_fix.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"616b206abe82eb8e30d3075ed1b0ccdec3e14fa2542f3dcae560bb4ee6064343"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(goal) and is_list(opts)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/goal_tracker.ex, lib/optimal_system_agent/agent/progress_ledger.ex. 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":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31f1899be14cb2cde0cf1ba4f144f0d2d092c43ccbbad440566c46ca2a8666f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(har_json)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/http_replay.ex, lib/optimal_system_agent/security/proxy_capture.ex. 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":"lib/optimal_system_agent/security/http_replay.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d24d4e6ad2986271613fcce716246386f326935eaef67441d6814225ab9f3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(plan)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/plan_store.ex, lib/optimal_system_agent/tools/builtins/exit_plan_mode/handler.ex. 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":"lib/optimal_system_agent/agent/plan_store.ex"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d6b026baf0f704f56f5f81a7f0e1e3333627163096b254a8b3b37ef0007db9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_binary(text)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop.ex, lib/optimal_system_agent/agent/loop/steer.ex. 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":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"2443cf2a1fd63606e172820373c5e88d52b9e10bfd2d9c669576b5d91ce30cfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and is_boolean(on?)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/ask_user_mode.ex, lib/optimal_system_agent/agent/coordinator_mode.ex. 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":"lib/optimal_system_agent/agent/ask_user_mode.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"881358b8be18ef4011aae27838762ecede793c45eeb73a3e421c8ec24d5b19d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(session_id) and session_id != \u0022\u0022\u0060 appears character-identically in 19 files \u2014 lib/optimal_system_agent/agent/compaction_events.ex, lib/optimal_system_agent/agent/loop/accounting.ex, lib/optimal_system_agent/agent/loop/advisor.ex, lib/optimal_system_agent/agent/loop/checkpoint.ex. 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":"lib/optimal_system_agent/agent/compaction_events.ex"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9bde61320e2245d99efaafb851a155b7b68af7212e765f9884c51e3e5c9dd6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(text) and String.trim(text) != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/channels/http/api/session_routes.ex, lib/optimal_system_agent/cli/headless.ex. 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":"lib/optimal_system_agent/channels/http/api/session_routes.ex"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89df61004ac63a9a8c7db2f37d4b284f23b06ce5f9e6e3cf3e46b5837e29f4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(tool) and is_map(params) and is_map(context)\u0060 appears character-identically in 2 files \u2014 lib/miosa/shims.ex, lib/optimal_system_agent/tools/instruction.ex. 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":"lib/miosa/shims.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"537c4e96597efee90dee619821321b62f09e6df3094ef83c057e679f3bb87aae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(value) and String.trim(value) != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/open_computers/executor/direct/desktop/readiness.ex, lib/optimal_system_agent/open_computers/executor/direct/desktop/wayland.ex. 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop/readiness.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5589d60ecc33b55866b2e052b617d3170ecd95f9ab3ab294fcb712554ecab031"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_function(fun, 0) or is_function(fun, 1)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/auth/subscription_store.ex, lib/optimal_system_agent/providers/resilience.ex. 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":"lib/optimal_system_agent/auth/subscription_store.ex"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"02db129061aca9a0aa7582b139a4fd8b3b266efa691b92bc54782ba647cc5b28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(context_window) and context_window \u003E 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/compaction_thresholds.ex, lib/optimal_system_agent/memory/flush.ex. 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":"lib/optimal_system_agent/agent/loop/compaction_thresholds.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf4c626d228ee1478b2810cf7d73623f6c944cc0cf93b06531cdc48e2f5dd2b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(retry_after) and retry_after \u003E 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/providers/error_catalog.ex, lib/optimal_system_agent/providers/resilience.ex. 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":"lib/optimal_system_agent/providers/error_catalog.ex"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb9985cc77d0820645227a958433ced42a6953c2b3510b9b25197d1b2654891"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(tokens) and tokens \u003E= 0 and is_integer(cw) and cw \u003E 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/compactor.ex, lib/optimal_system_agent/agent/loop/compaction_thresholds.ex. 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":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a67671142f4553b8ddaa69be1b37bf28dfa01f01c4fdd6d5debd395d0127d8d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(tool_calls) and tool_calls != []\u0060 appears character-identically in 4 files \u2014 lib/optimal_system_agent/providers/anthropic.ex, lib/optimal_system_agent/providers/ollama.ex, lib/optimal_system_agent/providers/resilience.ex, lib/optimal_system_agent/providers/retry_classifier.ex. 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":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1af17ad920e84d7b062c2e90f249aef9219e97e4cde76cb74108ac2d3280f9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_pid(lease) and not Process.alive?(lease)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/open_computers/executor/direct/desktop.ex, lib/optimal_system_agent/open_computers/executor/direct/desktop/controller.ex. 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":"lib/optimal_system_agent/open_computers/executor/direct/desktop.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c0f8e66866ba4e0b16cdd222ef328e2136a9f4c99062122df474c946e70f2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_port(port) and Port.info(port) != nil\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/providers/claude_cli.ex, lib/optimal_system_agent/providers/copilot_cli.ex, lib/optimal_system_agent/tools/bounded_cmd.ex. 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":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"51adb54abd198ba57844b9cb4eaa0ac023e78a462925a986cd718a0a30ab0349"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line == \u0022\u0022 or String.starts_with?(line, \u0022#\u0022)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/cli/opencomputers.ex, lib/optimal_system_agent/open_computers/config.ex. 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":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cac2268fbe425e5dc4e5b8b8cbf85fe971421f8611bd357fb7d595fb49d1724"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m in [:execute, :build, :analyze, :maintain, :assist] and g in [:direct, :inform, :commit, :decide, :express] and t in [:question, :request,\u2026\u0060 appears character-identically in 2 files \u2014 lib/miosa/shims.ex, lib/optimal_system_agent/signal/signal.ex. 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":"lib/miosa/shims.ex"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9290716d025a3275791733769f9d9afb035c55f20bcabacf43f11c62ec134f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name in @write_edit_tools or String.contains?(downcased, \u0022write\u0022) or String.contains?(downcased, \u0022edit\u0022) or String.contains?(downcased, \u0022pat\u2026\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/agent/loop/doom_loop/stall.ex, lib/optimal_system_agent/agent/loop/regulation/signals.ex, lib/optimal_system_agent/agent/loop/regulation/surprise.ex. 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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6a2461868d9c206a4a572912e3a98334b639bad7eef740381f3b475143db31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not PathPolicy.sensitive?(canonical_path) and PathPolicy.within_roots?(canonical_path, PathPolicy.read_roots())\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/diff.ex, lib/optimal_system_agent/tools/builtins/file_read.ex. 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":"lib/optimal_system_agent/tools/builtins/diff.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f13b230970efd008e751170202c09bfaaf94039347b70c28f518cedee53916"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not is_integer(context_window) or context_window \u003C= 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/proactive_compaction.ex, lib/optimal_system_agent/memory/flush.ex. 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":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5717e514233c7a13a0114c6974803b8c1b87a14ebd28590e04e23ad3cc995d85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060now_ms || System.system_time(:millisecond)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/tools/builtins/send_message/discipline.ex, lib/optimal_system_agent/tools/builtins/send_message/handler.ex. 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":"lib/optimal_system_agent/tools/builtins/send_message/discipline.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"17375ea5007c62c121f669444ccd51291ca2e31718887afe9bab524e800ce867"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path == root or String.starts_with?(path, root \u003C\u003E \u0022/\u0022)\u0060 appears character-identically in 3 files \u2014 lib/optimal_system_agent/plugins/loader.ex, lib/optimal_system_agent/security/sandbox_artifacts.ex, lib/optimal_system_agent/workspace/project_resource.ex. 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":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f5d7104eca46bba2b1386e4dda690abba65ccb2f74099dbb250f564f8a797b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060present?(value) and header_name(key) in [\u0022authorization\u0022, \u0022cookie\u0022]\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/security/login_preflight.ex, lib/optimal_system_agent/security/login_session.ex. 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":"lib/optimal_system_agent/security/login_preflight.ex"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de9044f000238b7d3235cd1bc0e855bc521774fdd12d91b384a63c06507740f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.verification_uri_complete || session.verification_uri\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/auth/providers/qwen.ex, lib/optimal_system_agent/auth/providers/xai.ex. 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":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cd3957b7a52adf4b507de64a0d40ae8583690c8f1e749640b9d8424e255a18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state[:tokens_used] || state[:estimated_tokens] || 0\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/channels/cli/commands.ex, lib/optimal_system_agent/channels/http/api/session_routes.ex. 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":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c0097ffb4b1aa19a9544ae537f508a134d6212d48c5d50b73a789987f9eabe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060t.agent_id == agent_id and t.status == :pending\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/task_queue.ex, lib/optimal_system_agent/agent/tasks/queue.ex. 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":"lib/optimal_system_agent/agent/task_queue.ex"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb9ca3a62e1d0639417c0d7c0dbaa19e2bd0e4408792a9c1b3b5f7ca5ebfe17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060task.status == :pending and dependencies_met?(task, tasks)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/task_tracker.ex, lib/optimal_system_agent/agent/tasks/tracker.ex. 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":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab7337e4f5731e894262b506c7296ac00be89439e8d902eac649d9e3f1730c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tokens[\u0022refresh_token\u0022] || entry[\u0022refresh_token\u0022]\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/auth/providers/qwen.ex, lib/optimal_system_agent/auth/providers/xai.ex. 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":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b59f687fce5fca149f56d970a2ab9baeb54e01d111153cb99a23b0534030092"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool_msg[:tool_call_id] || tool_msg[\u0022tool_call_id\u0022]\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/react_loop.ex, lib/optimal_system_agent/agent/loop/streaming_tool_executor.ex. 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":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bb0f76356900d1e04b1776e73194e3ecd0240d81e1d6c1d4924a3e45aed920"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060w.session_id == session_id and w.status == :active\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/tasks/workflow.ex, lib/optimal_system_agent/agent/workflow.ex. 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":"lib/optimal_system_agent/agent/tasks/workflow.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"166df7fb2f406e2f0f0bc38aea7cac12c24c7572d4f03fabdf116aee6b96f076"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060write_or_edit_tool?(tc.name) and write_succeeded?(tc, results)\u0060 appears character-identically in 2 files \u2014 lib/optimal_system_agent/agent/loop/doom_loop/stall.ex, lib/optimal_system_agent/agent/loop/regulation/signals.ex. 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":"lib/optimal_system_agent/agent/loop/doom_loop/stall.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5714264c7b16dc6ede4c8ff46e391f2dd291201ed9c09c987df6e972394205f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.code == KeyCode::Char(\u0027c\u0027) \u0026\u0026 key.modifiers.contains(KeyModifiers::CONTROL)\u0060 appears character-identically in 2 files \u2014 priv/rust/tui/src/app/handle_dialogs.rs, priv/rust/tui/src/dialogs/quit_confirm.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":"priv/rust/tui/src/app/handle_dialogs.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b704c570135a7141355cafcf2f24acc6b64a0b0393f8bead8a8be17830bc93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.style.bg == Some(theme.colors.diff_add_highlight_bg) || s.style.bg == Some(theme.colors.diff_del_highlight_bg)\u0060 appears character-identically in 2 files \u2014 priv/rust/tui/src/render/diff.rs, priv/rust/tui/src/tools/file.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":"priv/rust/tui/src/render/diff.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a667736ee7efff5750d4f2b1235ff7c8521025b256cb52e6ca1d8b1bfe2c59ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.len() \u003E= 2 \u0026\u0026 ((value.starts_with(\u0027\u0022\u0027) \u0026\u0026 value.ends_with(\u0027\u0022\u0027)) || (value.starts_with(\u0027\\\u0027\u0027) \u0026\u0026 value.ends_with(\u0027\\\u0027\u0027)) || (value.starts\u2026\u0060 appears character-identically in 2 files \u2014 priv/rust/tui/src/dialogs/model_picker.rs, priv/rust/tui/src/dialogs/onboarding.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":"priv/rust/tui/src/dialogs/model_picker.rs"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e167a77e5dda87f9660a0ba7f3450bd61bce788fde9e7bffbc3f630382ae73"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_replay_manifest\u0060 returns \u0060{}\u0060 when \u0060(OSError, json.JSONDecodeError)\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":"bench/recoverybench/delta_report.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c001be9740c08c57da6dba649887b0afacdf947d08a47232e09879bff8e861d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_trial_meta\u0060 returns \u0060{}\u0060 when \u0060(OSError, json.JSONDecodeError)\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":"bench/recoverybench/delta_report.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9169c084c88865be765dcf391e270c4649db770d1cc1752cc0f36ed147ef00b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060harbor_version\u0060 swallows every exception into \u0060return \u0027?\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"bench/recoverybench/run_bench.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"32316f4a2949c25fb7bedd666e6c3d2af00690ad82ca3d5c36e52a548f21a98f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060read_spend\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, OSError)\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":"bench/swebench/osa_runner.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"139b1a52fdea8f91f482d40371377254f4b662cb68a807a9a05af3912ad9eec8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060unseed_permission_modes\u0060 returns \u00600\u0060 when \u0060(json.JSONDecodeError, OSError)\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":"bench/swebench/osa_runner.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7914fd93554c51dfbf70ab2d620e03daf19e0dec9beb087ad4b7db29d43e70bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_instance_detail\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, OSError)\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":"bench/swebench/report.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaeecc6778555a0823bf29cb51c629b162c206b9494b8bed5527d368f41c4685"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060default_test_args\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(json.JSONDecodeError, KeyError, TypeError)\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":"bench/swebench/workspace.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7633c1d02df41b7a1c60a123bef0002fe4df221c24fd7c982ab5effd9a878a0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_literal_list\u0060 returns \u0060[]\u0060 when \u0060(ValueError, SyntaxError)\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":"bench/swebenchpro/dataset.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f31e386ec186db43fba1a526d9bafe8b5e526d4bd04f011af0992242cc3504"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_harbor_version\u0060 swallows every exception into \u0060return \u0027?\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"bench/terminalbench/controls.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e0ab3601565187de0d891f04e1eb2c0498411603c0991c410335869312a7e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060harbor_version\u0060 swallows every exception into \u0060return \u0027?\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"bench/terminalbench/run_bench.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3a2e581bf1420b31b5f6f54997a080334ccb00b84bd5a331e6a97f87596b75"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read_task_meta\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"bench/terminalbench/run_bench.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca92bf3da7c25056a6d90128a6742ba17a9a8bda876225f936fa59544861d1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_body\u0060 returns \u0060{}\u0060 when \u0060json.JSONDecodeError\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":"test/headless/stub_provider.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"987ef8a4c694d0469bcf4ce404d5c22b651cd9a12af4a139849fd0ef371f6bec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060render\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":"priv/rust/tui/src/app/exit_dump.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d875b160add86414ae6b66eda9efef42ae5862e63bc8ebe5b2fcc17853baa3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060port_from_base_url\u0060 turns every \u0060Err\u0060 into \u0060\u00229089\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":"priv/rust/tui/src/app/handle_actions.rs"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cbba605664216a61bba132554dc43e9993a4b83371838bd6f09981c4e70af8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060default_base_url\u0060 turns every \u0060Err\u0060 into \u0060\u0022http://localhost:9089\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":"priv/rust/tui/src/config/mod.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d606f4105a724f72772afa5871567069060c36d13dce8abd82ff44f9113372"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_diagnostics\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":"priv/rust/tui/src/tools/diagnostics.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d69a9e637101eacfea17c6a65455473aa975b054c9a23cdf97da9f6dadab0f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_json_hits\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":"priv/rust/tui/src/tools/web.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc27f6a5a43f5ccca50c94660e9dbc1796c61b36d7a867fbcdfe4f01b8e30c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060arg_summary\u0060 turns every \u0060Err\u0060 into \u0060String::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":"priv/rust/tui/src/util.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"87900ec6b55b830b3a213458e97623adc514280030624e0c92fe952d4ea1ae7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060configured\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench.ex"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bef3cb45ccb44f9e2cb50f90283fe9ac0b9a416025806ea4d8474edf0041b63"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060configured\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc78a55d897f73bbd30b6c9c1dcb5d0cb571e70d9101fbcbbc80404ee17decf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060osa_version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"55907ca610cbd7589dd736af6073b8be73ba8637ca3b092d5069d2900e9f666f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_sha\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/bench.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"793c36f12856a5e4ca68965b426b7dc79a114f75f87823b2acc436ed91e78c7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060init\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060{:ok, %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/command_center.ex"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5955b6021a6a4679c4446aec6fc7bc5c8761897a388cf72dc9d44f48d1912512"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config_file.ex"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1e8fe468cf953e8a6dc0d24c5897eb6680f4fd37bded1c3b7ad7d70d0bbe04"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060toml_overlay\u0060 matches \u0060false\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config_file.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d6cca07531cdc45f7d0580f77aa8dcf793afc0bcc323fcb9fd4d5a313cdc7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060default_template\u0060 matches \u0060_\u0060 and answers \u0060\u0022# OSA configuration\\n# See docs/configuration.md\\n\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config_file.ex"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6565dcec8e8f2c70c6df5d732733c27635eae372d08b222371f03b973b10c75"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060event_history\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/event_stream.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0066d81dfef4df6be7d62ea014e3cfc4b225ef2e3a4c4ac769d8cd499ee06b6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060probe_dir\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/git.ex"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f651490f46825118606518d8d969092a5d24caa6e8850dd47f3c65bf1101bf9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060probe_drivers\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/git.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfed32c5abc63e087de2fbbaf260395340d342137be6015f9914dfd1134b1eb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cached_drivers\u0060 rescues \u0060_\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/git.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e874a97b006704ec8a031a760264af4f4c2ef9510ccced3619914c77b895eb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fit_per_quant\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75d9d26975f79dc01285e2f3e64af722b755d063d1393cf8f7ac9f392bc73ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060install\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"018ee33d926c1e5a4b97454f2b4eb0b61638210322cfb59d6841aeb139de8786"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060installed_size\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f89d5e5174122aa0aff15d86ebb358031a6e95c19aa0f6e1a131ee00d7654d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_bench\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models.ex"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdf5d65b4b5d8e43b0c990be1773fd17ceaa6cbf5d1075c255f830657ddc577"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_config\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/machines.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e9c16574e5658e50f31b5161e4cb47f2ef5bf10130b5aa5a551189e8a0ac57"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060determine_active_machines\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/machines.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd94e1603ac61a97f5bf81f19d7f387337a5b5b88d48fcf615ec78ceb606e257"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060maybe_embed_query\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory.ex"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb14c4e91de397ee1e14999b308be039dd5646fd341c0e6bae302ba1ea40b8c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060live_env\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8f092169857c10e44dd5c708ba1c4ee1bdbee46b354dfd389ced57743d437e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060detect_subscriptions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7e3c48ee012afa8cd9aa0de84656563f33458bda8daa6e930e6c2815d0e266"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060auth_modes\u0060 rescues \u0060_\u0060 and answers \u0060[:api_key]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"246a1c024dcabfea8f5235a6dc71eedd316eefda07024a50419b89fa61e50b6b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060claude_cli_resolved\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ad5504bb59b0bffd3356e1a476172128d6e7edcaf03c981a3a75d0e208fb3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060subscription_kind\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14ba67e5d504f4aca2aedc236d5ffbe817d9143a2d96c430805ea562501cede"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060derived_default_model\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"817c7b09d47f2ed1facafcaf5ff43bc8ff344827ab257df5041d4f542540df00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060derived_base_url\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92a96f1fc1119bf2189498adcaa948921a7e6a1d6c9f9214f2db1f3df5d9956"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_base_url\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a1b2d27c49fc04970073325dd867f6a249cf9c5a012b00c2a0ed1cde4feb4d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060registry_model_maps\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"29502faaaf04d58fd65e0e1ec2abc94799ca05f2b1d90546c56c2884b798cd7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fetch_model_ids\u0060 matches \u0060_\u0060 and answers \u0060:skip\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a52ab823478c166c9169bdba059207fdfe1f908620d97f3ddbfd28cc2fd3374"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060catalog_model_maps\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e51e87fc268c11fbc3e009f452a21272006f6f9257d6c26f94e8992a4a56dac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolve_ollama_account_url\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d5d5438e4328c87a09c494a5bb7dfa1b7c12c71b6802af4185863e67a3a6b4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_current_version\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b41b45dedd56480e083094d2c90e8ca16cbd8e1c8592ba581f7f9c5391133ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060local_model_notes\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f216bdf41dd18752874baa2a8b23b9700d5e8a94c60a576c234beefc00e49a31"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_stored_api_keys\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"38297241340aeec5bae00e1720888066566d068deae3a1bd313e4f3c528b5158"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_status\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":3501}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fc22030475b8ab66e3c64abfeaf8c9cd1b98831072464fd621bebd65748bd5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060hostname\u0060 matches \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/onboarding.ex"},"region":{"startLine":3574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2679d8af38506bc4a23eb0d486b7db6910a7c28fc900de697cc5effbf3704c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060run_fresh_subagent\u0060 matches \u0060{:error, _}\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"43faf5203eec84a4d39f8315e43ec16b22472d6b81c4c90b8693af3508cc906f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060maybe_linger\u0060 rescues \u0060_\u0060 and answers \u0060:terminate_now\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad4a5a918bb3d87d2383cc9c18405c31b3558b3c1c1baba339d2bed2ac48ee4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resume_subagent\u0060 matches \u0060_\u0060 and answers \u0060{[], %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f6b47234f74c390deb6b916a836d2072935d187b4a77c24da6dcadb84aa3dc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060rehydrate_run\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"73347c488a12b9dbec0142a11cbd2914419e5daf51c3e9f72d4b4f3fe7fa6c93"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060delegate_concurrency_cap\u0060 rescues \u0060_\u0060 and answers \u006016\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b583816df999836482ab71109ecf9c11e429ca5ac77a5ecde43ffe29459d3a0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060live_agent_count\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba3b60e29eaf736e61d5d9dbe30bb31e479323bac77f8a06d2ea19be3e400a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060queue_detail\u0060 rescues \u0060_\u0060 and answers \u0060\u0022waiting for a concurrency slot\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2f3a753c8205f52445f4c679283f13b6b1d7d7603c797db89c44f87535bad8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run_elapsed_ms\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c968b25d49cbe5ca8b6590c24e701aeb61bdf24cb45e4bc32cd4978609b5114"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_get_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0b3d0a71e0be7d525ec31168ea63007645a80a5488ba3db28528fb8abd3649"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_subagent_stats\u0060 rescues \u0060_\u0060 and answers \u0060{0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee6a1b59c869ea5d12db67c6cd8751c14fd2d8fa880aa14a626aaee54d7eb89"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run_cost_usd\u0060 rescues \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":3086}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22dd433ff113049b1706c8835347edb935e247fa3f8ccba1738a8c0df16351d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060completion_summary\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f729a2a6750bd25eb4b2b7e5bcb253e39ea8bdfc0eb5c67512e9a15023a4a69"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060changed_files_git\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"579b24e8490f350bdc07e0b3f08bca0c645e5f2ff7193510d7d1453caff641c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parent_overdrive?\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/orchestrator.ex"},"region":{"startLine":3654}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b37cc0b1a591f15043d53e37944a7fc1e07891438bced1f4ee58169ebf2b49"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060default_mode\u0060 rescues \u0060_\u0060 and answers \u0060:ask\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0fa2433499b4d1c192edb77ad6348e17ecb61c06d0c4aea22084983498bd34"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060additional_directories\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a4c0dc5abc67ec72ea7e8fef03e050e0e243ce4b7671fae969e66b949666b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060denial_fault_owner\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"29797c6f0956fb41ecbd4d300295e0f44f83041ff20bfb9a0d6e5e01724c61f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060layer_rule_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"615ea238417400ede229428a30e205efed258f7afca66d92f02f93aa93c5c451"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_legacy\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions.ex"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9ea5c40c3652d63e7fbc051e6c342a65288a06cf1c4196eb5f54df351d33b3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_custom_personalities\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/personality.ex"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec5610a406be8bb18205ca3ed10e1557cba457358c8060d219c46d9978f6f7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_command_prompts\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e792eec8d6f84b280311b10901f51eeb49731dd3faebc9390511e84f0f2676"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_command_prompts\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19d3315b3a66684d9ddff16646fa3819685632e38a975c61bb1decdbbac1ac4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060scan_command_dir\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prompt_loader.ex"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d28a830ee76919469895c061f3b7a4546a2e6343463f778226a044d4587d041"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_version_file\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/release_notes.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c12628087e12d91de7814c39313d0d2ba11524d6a90a1b4486f0b102cdf6d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060version_file_in_priv\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/release_notes.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8195f4e4e0ccfd56e4e46966d507e31ad4a2e185bf2818e22d4c1cfa5a6cf813"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060latest_release_tag\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/release_notes.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7c19e2d52b00679c6e3931f661f8ca0454d341f078d10f7c3b50c5f07cd295"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060entries\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/release_notes.ex"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"da113094e2a32aeaa5a07b288b5849580cbccdc6ab5a6963491340b0a3bc6ab1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_symbols\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map.ex"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"067f0d4d5b5144814c017360580fcb97825e27be60f2a489fa195e4628bf3932"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_run_parent\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/scratchpad.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0874d5107bab13f4aff88ab32f79d465974d3d5aef8459988cc50f6b9036f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/scratchpad.ex"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"292af4df04617e69491684b38a4f915ffe90cc22fd4b08913418848a4c3ba48a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c03c9cc2783cf5d19b87bf67a83719f1822cdc3611a87d82e21e977ee7b42b3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060metrics\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9278b581b88e32cbce65841ac9e048b7cc3eb6d03a5bb1ebd0b68653009408d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54673335c293da6f327da3271a59779313dde95d55a00de05597be44fc1a8fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060recall\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00600a7b0571b1eeb8de4c6e50d276a38c93423d5296ad61eaa04c250ed62a9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060recall_relevant\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6800ec88df423cda94f858d3a63377d0a46dfb6d70425f14413c44bf8efc808d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060search\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19277f13195c866e470ba3ce59819323abdae1a42c6dd77af2c029b65ba9dc0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_session\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970a926f93f26451acddc6839b04c49fa608d2a3f6b3bc2164ccc64d28e2adb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stats\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc77c5ad27f809602612d2e3b21371b3db166016d3f29a3a02207c0e1600cea7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060status\u0060 rescues \u0060_\u0060 and answers \u0060{:ok, %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b89ef12e11dc904823c444ca7daec02fc89bbf65550a18ea3d5c81e78f7d818"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060model_for\u0060 rescues \u0060_\u0060 and answers \u0060\u0022default\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"222c4a41fe0f30cdc7a4276e3d6743542dc1512ef0e0be52860a35331b870709"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060model_for_agent\u0060 catches \u0060:exit, _\u0060 and answers \u0060\u0022llama3\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13bae4d68b354771bca49e8763d22fa10cd49743e70632893916e36d2b42bf2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060all\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/sdk.ex"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4ccde655bb8cbeaeddcd73af274394e035bdb3fb15d69572519e96208ffa74"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060try_existing_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0846cc2bbaa54f6f7579529c0e6f6693af913276208454b094b0fcd8d5e2f80f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060warn_workspace_withheld\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba68718d072cfefee548985e4f9d34837b3d157ef18918276edc35260be1c2e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_all_session\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ec4e1017453f0d942d70b496ca747c3eb5eec27327f3f427a22903b664dcdc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_json_for_write\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"230a9d5b8a82a4ac267b2af9e17582e2c7856f9e4a271b7faf7cd022210db4c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060project_settings_path\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.osa/settings.json\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"942ad140141920733ebc6d1996845b1da923eaf1c65d2d3dadd02f2c9eb3c9b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060local_settings_path\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.osa/settings.local.json\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e61ac6ef8788962edc181cc3b6069db10eacc7397bc65d7086f50ebc9853477"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_json\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0f84887f3fd03c9e692efc99c2eaffe6291893fe4997cf8a56b186ff1e9468"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_sig\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afe09875e276511d2281bc4f2869f0a5122c3d2f762aa3260285ed5f172ebf3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_json_file\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings.ex"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff7317714e945659103daebedfadd8905e833d92657aa45950ab7ff549a10fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060registry_tool_names\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dec3060444b332f049e671cff5c3285fb7e49184104a7027ed6fdff5731702"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060settings_get\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul.ex"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"1332bf5a9ac267c33ac62b86c3857f215b429ebb5ca112e4e56d2e40b9cdf909"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060rules_content\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul.ex"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"361475ae02e41aac26b0e518d2f9af913f68e307b28943d80f416a6774706da8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060rule_dirs\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul.ex"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ccb1f21159fe4f92a9d49628b68bd4443375a73089b9be6d859b1409b40286"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060consume_iteration\u0060 rescues \u0060_\u0060 and answers \u0060{:ok, 100}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07fb0596f65b2e51d35cd552f750ddd2d4faedf64da92fca7e1ab627c38f90c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_task\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a30ddf7b3a11e6c53d0f688cb0c96639b1427139ea523de6a8c19124599bb59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_tasks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d137d70d4068aaa2f6fadc2874854872ec6f881f8e329dd5f221aae4033416b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060read_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7cf8ba124fe48223d6f9e967bcb1028b8c741621739043137ba80f814cdd80"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060read_scratchpad\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e04d7234a35fd0078f9fc733417b06acb82534f508b98c49cbd8c7400c82fdd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060all_scratchpads\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/team.ex"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4840e4899c25ea8af755094440895c034072e9efc1642c396cc2a40a559810e5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060session_spend\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a06d169b098a41f419f88322acb4e923bef40842ca886c59ce02bf30ea811d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060active_provider_id\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11b1d76ce9c3f705769d7dc0173bc5bc1f4199cef9e88618248bebf8998e9e3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060configured_provider_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f530583c0ec6c6e54482cb84a4b29da2577b58784ee0531cf537f1db99c05d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_status_all\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d520f4004a7d08b5ff2d9f3f6d4f060f30323e97d2bb073567530d8dbf14781e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060app_env_key\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad733e2f511e4b5dc64cd1640c8b30f92be1a541216d1167257f5846fb3ecb0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060auth_mode\u0060 rescues \u0060_\u0060 and answers \u0060:api_key\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage.ex"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b401ebfe6cbd3ad6ca6e45b04e7fd2ed9da764991607f8ca28b821a29e9185e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060session_dir\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/cwd.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d9f3f346158650f769d086950f44d84a1434ab8bed45806378feebc72408ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_root\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/cwd.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea387abb2585c13a0e4fc6e0564952f83c624dd05c6dbd05742fb10e7e0dad2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_file_cwd\u0060 matches \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/cwd.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb78c3c3c275c3e70685fc43c913dcc4813e174fe45c080bb86950cf2832da1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060machine_roots\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/project_resource.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf27e84c13ed75d9110562e8ff8c57894e0397d1438f0d3d4c10e998b3da50bc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_sessions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/session.ex"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67f9c332abbe4ca3f68820d8dd4a5b71d76f0522d214171e20a94ce288b7017"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_workspaces\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/store.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"46136a7b95e35127d6032576ad6597a5284ab50cfe0f58b67fbba6bb94dac24b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060query_journal\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/store.ex"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f13ce423608e7afefd078048ab6ac70d75ff961069aa6708a6ec1c36fb9ed85"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060workspace_root\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c1f23bbea37767cc5a21e8fb725c6a2acf9a99a1630e4b93aebb1ba8926eea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060enclosing_roots\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1785b7101aadbcaf3b334a1aaf9b108f708c9a369649b1a5f2e946e93bdc9e9b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060child_dirs\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e84344338ee98d65a87e1df540d7c024bf43a71c079f38ac95d6fb41b4438d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060elixir_umbrella\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c84f66f1b899297d3bebe98625759e549e2efa211d988c0308a8cd6747950a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cargo_workspace\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa359a968ad1fa632fa1e4889f347e3bc25e952ace51d34558510e958d52aa07"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060pnpm_workspace\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d474b732c122a9b061e8b146e1efca06cdd8baae885ed2d0629ae5a3bf7641"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060node_workspace\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f830ec76dba774f4bdbbedab6ad2b78319c02e414118928dceffd4a4a5d5de"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060go_workspace\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"671cbb06d647e6d0d63125ac4a3128731ca5baf579f73468fffa63f700122b14"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060workspace_member_index\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology.ex"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1471d1f490964c3fbcca18720088bf9726ab457d21318d07903ce841fba6e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060risks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8b69e3e0a5ba573cbfb9f4fd1d53330b06834a55b5c1021ebdfcfc718fa103"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060security_digest\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unavailable\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"64763b7ff75e42eab1bbb3e3c8333bcffe19378d02c9d543b34e84d4b9c99939"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060hook_script_digest\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda62753080942872bbe3a1334b7501766a0f4ed4d42f2976153ddb51da21468"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060config_sig\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58bc3873cd1d93dd2d5b76557f8864d145e7e3357a8d4efa92c53328243dfa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_store\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1467f982872012e353c9cb50bbb132291a681435f95c32162c549d3745ff0618"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060hook_script_risks\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"172fb25288c94f7e97a7e6e099f6729246c5ff789effa5cf5fc272fe256d99ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/trust.ex"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf66e2324846d90de778fd24c668ad3ca776436468e2c8a73d823b4a403726c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_capped\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology/role.ex"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"519845ebf83452f0061604ccb1fb38e0c3396a3a4df6c555439b9e3173e473aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_ls\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/topology/role.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"005ef995b1cae6f842ab1c930d0a4d55e03022171dbd69cda179edcbf46cfa34"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060device_id\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/capabilities.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e395611d13a98dbcf10f8c0097aba2e9987b3637456f111f579feea64e2edf7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fs_type\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/capabilities.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd33f27e20d14f85424faa8cc0284786239ee867de0aa3ef86acc40284d12fc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060probe_reflink\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/capabilities.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8455f5a450d5b1f507692f267718886e60c4685379ca7b3a415405e5aa4bc833"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/workspace/fast_worktree/metadata.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5235f327bd902f373592681fd8d624772a3516690d578d54560226a5d0f40dce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1769a6b990edd4db966a69ab1a80a708094f298d4f0622599fa5a82a321d2c4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060analyze\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6179ecd800b64b67d4bb248cbcf3775363f6e0e280685f323f785b25a71573cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060try_format\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dc5e3468b7c605239df4ebe72ca8d29a6b575771b9190152f9cd03797625d3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060elixir_formatter_opts\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62891eee0e1f872f46d6b3322bca8cdcf66dbc7f914f1e7c301e84266f0239f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060elixir_syntax\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"46374fdc7145cb28a9ff0b4347675809d29ac1dae3a47a8b8615f1a53609fa04"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060default_exec\u0060 rescues \u0060_\u0060 and answers \u0060{\u0022\u0022, 1}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verify/post_edit.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc4e4e8b848a6b3f0a575f0f54c680cf24427b202ef4abbf44a0460a1867e7f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060prune\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verification/checkpoint.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbbbe99affeba2c3074f4fa18295d1ae717adf74d9b46add92cccfba7b8be76"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_criterion\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verification/upstream_verifier.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0847258e804b75e4b81ce8ebca13f2b3ada3106100c8e64c1c00bd1a4e04a651"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060loop_id_for\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/verification/tools/verify_loop/handler.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33f8449c1f3e0b392e9fb6bef5ec42743daed1caca71340ec2d3a964f044b59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_file\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/usage/rate_limits.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca379737658c0c7b309332dce5fd2262751f1e9ea674695b829fff5bea8db945"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060atom_key\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/arg_coercion.ex"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7910de86503cf25f47159b3243d06b78351a1a18c3a83740e99fb85f7343c3e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060scan_file\u0060 rescues \u0060_\u0060 and answers \u0060{%{}, false}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/audit.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5024aa45dd1e7d688c57ec68ed3173f189b73f0ff0da9d7e52eb1bec0dd132"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060alias_target\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/conflict_scope.ex"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"123f4c15d0de5b18d990cf2917187835345b2a3470551affc2c09c46abee59ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/conflict_scope.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff893184beaf25bb1dce42caad82a3808a9a3106c05227a0dd58b257186882d3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060canonical\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/conflict_scope.ex"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e586aed4147f6da309d08450dac39d61215e85f2d7768b8cfff84d13c19edd25"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060held_lines\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c5a2acdcaa5d52e6b00766a63f873bd34881c097ba183d75cc3fa12f3fed86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060content_hash\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdd95e6fe608d3bd682d7aff30050a2f1b279649c9a3736889989ca391288d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/file_state.ex"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f450842a73f5ed9b9a4d446ce4f69c87db36b7547dd119ec94d3781e17f5bfa8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_description\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/prompt_assembler.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e556822326a9edb1bb45702686c11c6109b8b0d65d72263e1642b8d80bce7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mcp_catalog\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fcb64deb03b995613a6edd2cb297a463a77c46a4b063312db96f6360fa19e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_alias_map\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df46d7aff7059ebd3c6c2262053868d140267aaee4b0a89577894811b37bd22"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_active_skills_context\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"435329cb85db7e4872913cd56b5bea4a353de0e4ed27ef60c9c02edd0332a047"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060match_skill_triggers\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24ba2d90bc9f1c230223268cfd1b7cb7115e876578a9c7e234b231e7722ffcb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060touched_paths\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry.ex"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c6d4b2a141537beb9573c5de8274b5cb5a999ec25a14f43c50362a4072fab3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060bounded_read\u0060 matches \u0060{:error, _}\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry/skill_loader.ex"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cc77d1558074195e146afba36aca69bb543db04d689ea3b0cd4f6860de4129"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry/skill_touch.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbc1ec1e8cad214882e841f83e5a106097edaaa6fa2f2ee43ece949315f5dd6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060all_usage\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry/skill_usage.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a428a27705418402aeb1cd0b04445811dcd110ab4b10b77c02971b479c572d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_dt\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/registry/skill_usage.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b97bd8431fced93e9cdbdf230e8fe2597a2e243cc4210add21cee44c21505bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060session_provider_model\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/advisor_consult.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b09b0f71c546ee413c43c6fb3e885d2747ad14ce1c52429c440606a9ef6df71"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060check_playwright\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/browser.ex"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"77eb75fdd6c6ffef59344b45b7f938bf6121f5f7c9669adc6ec2e96fee6b393d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_config\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c833790412dbaac2b366305feaf14f4ed1a65b2e1fc6737e16554aeec2108ad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_relevant_files\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b8cf3e3fba1e4487b43469ebd786c2c3d068831af062da306edab7bde75013"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_top_files\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ab50f5e895f1e39fe5ff746fc6c446189c5c896862d2450ac7d8fbed36f5fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run_mcts\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/codebase_explore.ex"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"649b784a74e03b99f0edb2c1d549d0e03247f5b1954a5eff3fcb8fb6533b06bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060run_command\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/github.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b707cc7454905e396ace9adfc9b26e9be9882915d9fcab21572d97f715fa3af6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_summary_build\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"77739ffa911c0f8e48a81f65935fbf01fae1a2726a00abc496ae76c1fae28079"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_summary_load\u0060 matches \u0060{:error, _}\u0060 and answers \u0060{:ok, \u0022No saved summary for this session. Call summary_build first.\u0022}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/security_intel.ex"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb4a7a0b6396313253340629f2f0ceb5bd2f77e1d7f80471f80a79472fdfa93"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_result_block\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/web_search/handler.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4ef109ed08609443657fe465b09a6535a72846e6503bc7be69409df40502bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060check_host_not_private\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/web_fetch/handler.ex"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e02f911a621cea70e8c374a3d26c7b3988bd9a162f482eb7a0ada667c325360"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060normalize_args\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/use_tool/handler.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fd79a84f0c5d81151aeacfa0ee6103ed7073c2ce6db9a2d47c0b782cfef7df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resolve_tools\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/tool_search/handler.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efa0b695872a5206e87ceae715ae5349241143b77fa8fb25651a39d9f67ec54"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060command_check_for\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_write/handler.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6401867b8671b75c63c356e033a07c4732d48fba42004258b8ddc9738ae130fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060liveness_line\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/task_output/handler.ex"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"79783f75cbf82a5ff4d6cda500164caf863b7b4eaa67d7266b56c6dbc0380351"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_verify\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee14ffdc7253d327f3b5a74feb539c77e7fc6ef462b5d0ee13c1cc3f5f74a803"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stat_or_zero\u0060 matches \u0060_\u0060 and answers \u0060{0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/structural_edit/handler.ex"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0216a9bff44f309d2fb2de2ed7856733930172eda2afd90ab3a51b12bb9491d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_cwd\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e755bda3424584493cef92c65b16cef9524615a34abf8a24a12916c7a43eedc4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060register_foreground\u0060 matches \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/shell_execute/handler.ex"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b48e8302a1d8fbf15ef6322f85d7ca63ee76666c2a18e0c70512399ebd8448"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060execute\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/session_search/handler.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"20616a0420a2d3b350197386201bd644938bc133361e777f68b6fee9be0165e5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060maybe_read_inline\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_user_file/handler.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddac3f9108bb8c31e4d24c7601f0cc59fcc2b00045abae335f77723df8368679"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run_start_ms\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/discipline.ex"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9207735a9c09f7aa3eb7bb92f1eab813c55553b73fc94aa82f0c9c2054c42611"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060usage\u0060 rescues \u0060_\u0060 and answers \u0060{0, nil}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/discipline.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8408580e7668ebab4291bd408e6faad2a212ac741c24cf3779cdb970472e595c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060drain_pending_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/handler.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"79090cd8234b752c0a3a4f8ed8068a486af1fd1204f92ba6505e226439a68b60"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060sweep_pending\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/handler.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c840b2397264ecee89765116be581a1480a7e81673d5fab2a0aed83daf162b6e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060parent_of\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/handler.ex"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"da475908537f570d01868f272931df7258ffe049d4e49997d4a16fa6308fc268"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resolve_named\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/send_message/handler.ex"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67eac6fe1a451f1f3f131688df88a911cd1af945d4700ce5651d89a25759f83"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060frontmost_bundle_id\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/push_notification/handler.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b445713f08a68d7bea77972dc2b0539b2a56107e6c2e96f3937a8cc7d125382"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stat_or_zero\u0060 matches \u0060_\u0060 and answers \u0060{0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/multi_file_edit/handler.ex"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7cf4b88dceff4cdb7e457fac847cea00f6455daee99303fd7dc87c98c918ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resume_target\u0060 rescues \u0060_\u0060 and answers \u0060:mailbox\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/message_agent/handler.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d8f28e9b464cc9920ed100472e89664a85e84d77f49771d3e50cd205b7f589"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060surface_agent_message\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/message_agent/handler.ex"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a7619c1ed635695d43cf059c5bc4fd8f29e8ab05a9cfce2e712bdc256a8227"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060execute\u0060 matches \u0060{:error, :duplicate}\u0060 and answers \u0060{:ok, \u0022Already saved \u00B7 memory exists with same content\u0022}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/memory_save/handler.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6062a09add03f3a6e0c21c0bede255878f7019fe634e4902bbc9d7288c00af96"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060count_links\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/memory_save/handler.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5011f559f02d4d9019dadc70e9d1b9256d1004e5047bf7c066ee0736ebdff2d0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060execute\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/list_skills/handler.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0656675827711876da25924c55b9201e949b463004526dfef982e644ccebb8e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_skills\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unavailable\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/list_agents/handler.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8fef7023bba3391a8a529d6c76c36cf3a3eb3a5ae83937bfdcbe6dd2759ce5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_execute\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_write/handler.ex"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c0c40afcdef0ffa440e4feee18fddee8c2fdadd927ad28e342cba285503f7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060held_lines\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"717f34ef0b9217d95b3696bc0b67bc972278a5875a69512bf1ba386fcdf3a075"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060byte_size_of\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d033ff858a4ce4d428048c49b3396152e58cc0a8f52a56bd52e958cfcfd54f2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060special_kind\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf1511b815faecd74a74e8b1157e0622235d1e695cc8cdbe3d4fba5fa2fcc98"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060size_report\u0060 matches \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca87ba9c3f8f461e0ff88d0acf87778fae611d6e4ac51fbd954930e0f4782b70"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060count_lines\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a771d2629ac8a5d902523f5838dcb38c7a0b1d87c08e21adc908bdfed8c859b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060subscription_store_path\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\\0\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/handler.ex"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6372172a4e05db22e36d3ae266c7deb2244d430aa61aff77825694802b4afd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060skill_redirect\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/messages.ex"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9136d1d1f5c2d063426e9a3220a2387bc0d33ec439394a44a7e92b5684220a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060lookup_skill\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/messages.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a1f41a2aa3a90e61d8b8c50c9484b4138c72adccbf4a457d8231dc6b5964d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060dir_scan_match\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/path_resolve.ex"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a290bcdcec9994a235d26e8edd40c051e994027fcfca9a22f94683f2c52029ef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060nfc\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/path_resolve.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f73257c707de005123a0e811c01b5beb118d0f6a6ef3be3c70b4e1251cec67"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060nfd\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_read/path_resolve.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bc96a7309eab30b9641a4ceca5c4432345abea4f5025b849772760b9ab8ed8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bundled_executable\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/backend.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"908d2acc5aa49952baf3dbc3648a8c7d873bb438ac70082962beca7d0fab8c44"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060near_misses\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc3fe4201b4bdc9b97be6f21d7bef8a48eb126633f808bbc43a3494e3e12315"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060try_ripgrep\u0060 rescues \u0060_\u0060 and answers \u0060{:fallback, :failed}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82136d574d32aa90dd243dcedc13168baf4094c7bea5362c310966da247021c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060scan\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa907e8e9a838306ca6512291f204270d1713fc339f910296904d59c2709891"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060scan_lines\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_grep/handler.ex"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b531ad509ac26bf997694d82c452ee2b8a1b2f773091948f6399f00fc88330"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060wildcard_walk\u0060 matches \u0060_\u0060 and answers \u0060:timeout\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_glob/handler.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9475e758b63ea363cfbb4c3b765bfb91010cf5dc541b2cac82b9b93c97ca48"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060entry_count\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_glob/handler.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be3d73637deebe362f4d19bd42a1430a3f98c35c06b636aa90fca5ee7283594"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/drift_guard.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"84227464b72afd6b8f35b61c2198c248fd3446a3612f1f6a762a2a3350ce46f2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ws_substring\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/fuzzy_matcher.ex"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a027e5b0336880e0702f710b879e1fffb18840e76ce2924df59143feb337b94"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stat_or_zero\u0060 matches \u0060_\u0060 and answers \u0060{0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/handler.ex"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"548511981a837db000d2f67dfe259fb70a5e37688acc34bc7dabb3d3d42fa4d1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_changed_note\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/file_edit/handler.ex"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0395be7574aa2ed794e9069007db99801f6e173491dae3aba324425024fb8c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_worktree_branch\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/exit_worktree/handler.ex"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adab4c9ea845d75ace1d3c089cccc19bbc353de4a2c5caac1351c060e2d3407"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060check_host_not_private\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/download/handler.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8416cf88939a3d4e5be456fef31300aa1b1315491c95a70b4953e19f7cb07d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060execute\u0060 matches \u0060_\u0060 and answers \u0060{\u0022?\u0022, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/dir_list/handler.ex"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccc4b32d8e29ae59af06a14e1bfbdf9b326d09dab5dd23fff979dbbea5d0708"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_parent_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"7058988ac08b6a308cd1c07fee5430f67a941633614b2696e06af29411b96196"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fetch_peer_messages\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/delegate/handler.ex"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"872443e1e8689eed23c05f13301e906febbacec909024babbfe6fe1045a90f00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060execute\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cross_team_query/handler.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a6bbfe929a492805b57efeae32eef67179daeaf771f616613d479a0fca2a59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060execute\u0060 rescues \u0060_\u0060 and answers \u0060{:ok, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/cron/handler.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"65889d84a2b6628ce4cf6bdb22b1ea5f87cda90d702027e95f23625753c470c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060read_journal\u0060 rescues \u0060_\u0060 and answers \u0060{:ok, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/keyframe.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b337f631eb54071ff575516f9abad4abc0e7df9bb5233a2e15f1415852c4c4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cleanup_old_journals\u0060 matches \u0060_\u0060 and answers \u0060{0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/keyframe.ex"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28b73ae3088f1f37a9cc1625cd3152c654f9f8b85417732a4773e2ad863a40f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060snapshot_target_args\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bf0f49a4c7577108358b03b749346b932ed68a168fb20b119166fee5835c17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_accessibility_row\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"29adbd20f280ab84c74178682485ad21302edc2f00da32d0f68dd522fb92d201"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060window_index\u0060 matches \u0060_\u0060 and answers \u00601\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/macos.ex"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28ace2d52b46ab029a28769c19f43d2b2ae8fc98e5bb263aaafbe8c2789f48b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060test_connection\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/computer_use/adapters/platform_vm.ex"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e000371fe2f05d7b5516b9760c8cee6f253379603201b7d0240bb1392e130b61"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060c_function\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/code_symbols/handler.ex"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1ea7cd8e049da2ddb2d24733d7970e4a3ad478f5b24afc0ee37021b8affec6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060recall_entries\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/tools/builtins/brief/handler.ex"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d9f7d12c23dad9dae63d41e0c6fd364c6e2bb51dad95e69d4d0c44b587bde1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/agent_state.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d90cac6355eec52cd5737dcc6453a4238cd1446ab9e2699930bbb08859e412"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/agent_state.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"338bd7c17986fd1dd05e4e120ecd89831696ebeeecbb66e5774571f6f34fc513"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_meta\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/manager.ex"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2a04c2920fcd98884347437209e9c996d6a4c34c4cb06e1734cce1a0131be7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_live_teams\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/table_registry.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b36425db734c3f53f999dabcedbec567575e5b27553258b4970be0e867ae0c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060row_count\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/teams/table_registry.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1936cf8bf0f9bd20dd8cdfb1330b06624cb596a06f5ca40bd27bd446a5c47c1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_map_for_write\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/json_store.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3e8a6de9fb88449d598f480653eed864f7ffb3a6f8ef2b6c0c5b3742fd6c01"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060rss_mb_unix\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/memory_monitor.ex"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e0ac44d30492204d8c69db787e52d7c2d71a43cbdf05460bc9c102b1eeb8d4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060updater_cached\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/update_checker.ex"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da7100f66f5fbc1e4a91504a08cfcdf0361113d2e5d21c6fa604db8fb0a1408"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_version\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/update_checker.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"39be0e01caec46095356cc980329c41ef3f8ae30650a8d68370fab4eb299fa14"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_key\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/updater.ex"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae44632cefd96bb5d35202ab522b47badb0fe3e5bd846d7da296e449ea050223"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_key\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/updater.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a7459f977a863366401873861860e6e7b6aed5294359ddd8eac38cb3427301"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_version\u0060 rescues \u0060_\u0060 and answers \u0060\u00220.0.0\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/system/updater.ex"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f329a04e952ea02fc75465e6218596ccd132d12b94cb3aceb40939ff53510f6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060pipeline\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/swarm/patterns.ex"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31a04c9cddd2228632e5cb71c80dba0af10c2beca18aae9864dfb22e0d972a0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060timings\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/supervisors/boot_timing.ex"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdb9734dd279e975b2ba54ade8e870890bf94faee55b3d45631f29b55a08bfc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060set_and_read_journal_mode\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/preflight.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b021973136ff9efe2b0eb888749beb1256336558296850dc3633b3f44d88d1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060search\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"026b6f67ce1363956567e4ea1788dc39b9a8d4ebc22f3d4ac6e9515ee0fe8fe8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_sessions\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e177d095c5c4832388cf0d51190fd1e96f3c5c8879c289f44a57c5a4a2920a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_transcript\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"72090685bbcede35bf18143d14920eae5067a3eb8849008434c16a0bf6d951ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060purge_by_age\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd38c8ba6651b8a51b36dd7a154bee2a98881b6585b57df31727edfbfe137cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060purge_by_cap\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/session_transcript.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3112a755ddf11ff9b6b81ccb5e1ecb56289bc3240096a0837caeacee40697"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060get_skill\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/skill_library.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c8ceaea65e647937f088eae214e6c034e8216d22ef8ad2f539da79f666eb3a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_skills\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/store/skill_library.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdee17702de1e67cb919f310d3c2b755954683f6b3cb2bf6943a52af7815676"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_for_agent\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/speculative/executor.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f59d33cbf0ba07e133bf4696167981fb62913adc791b607fc7dec8a1b9cef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_active\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/speculative/executor.ex"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1191ff9d3eb7fe1c2af633d1a99efbb8a6a9d37d85abef4b033c4254afd778"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetch_builtin_modules\u0060 catches \u0060:exit, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/soul/tools_section.ex"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a7a0c349eadb0b7a7ce8ded93307348ba0bdd385ff274a5ec35883c51b63b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060idle_days\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/curator.ex"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d3be7b88ba1b5a5caf4d99ac6ba0dea08d1d0a1268a5609d836021a190ec51"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060provenance\u0060 matches \u0060_\u0060 and answers \u0060:unclassifiable\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/curator.ex"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d9879dd287291db9fe039ec6f2024e62c7a10840693b8503e692fb2013eda"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060skill_entries\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/curator.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcf1077d5876471f148e510d949be5a2a922d557a76a25239945536a8a6614e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bundled_files\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/lint.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"70867dea13934ab67a78b6834aef59058f1e7009745fb4d0e5a3ce99d2fd3b95"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060skill_files\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/lint.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd60a82918b3878c77b248cf57519cfce26ae005ecce6231a3cac5765826b3a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_dt\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/ranker.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd95617f9f2071b825ae292c0bb96b68a041393597396c751ac4d9872f70617"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060bounded_read\u0060 matches \u0060{:error, _}\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/skills/validator.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce191771d58c6beeb14efbe0ffd414df6bac5045299795b00ac9ac74db953f59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ensure_table\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:already_exists\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/signal/message_classifier.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d852dc05217c848ef7c471bc75d83b4bd15648bf010cd2df9e09d8cf31f9f5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ets_lookup\u0060 rescues \u0060_\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/signal/message_classifier.ex"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f93ebacc01fec1688e6fb3bd29c90007cfe86260ff2de196c6be233cfd6b28"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060genre_for\u0060 matches \u0060_\u0060 and answers \u0060:direct\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/signal/output_contract.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38256fb52aa887d95861b800da3aefa47423ae09047ca04c3b2037468eb94a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060final_tail\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_manager.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6228c19d83860ada59ebf55e59878df09a6c7ef95d500ab4a92b3b9f824d6c96"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list\u0060 catches \u0060_, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/background_manager.ex"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"60934cf154559b72a1642dec3a08871bbe05847f948f0eada030c6043309677c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060sweep_session\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/task_output.ex"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"141b037a7784ed972d51500462e47b80f04424ebc1579ef4c4138d36bcf6efe3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060sweep_orphans\u0060 matches \u0060{:error, _}\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/task_output.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7500c273398e608b5760fa9951c55127f51b17c4a737560e398dcf820f0df2b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stat_outputs\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/task_output.ex"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b96ae7900490fe6abe562017db72ea551d3182c702c1650ca44d3efb3b2c9c7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060prune_old_outputs\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/terminal_output_saver.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4ab1180f98d1983872bfa6ad68257938695ceebdf65a0fde6cac726cfe351c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list\u0060 catches \u0060_, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/shell/pty/manager.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5a0a488080db8b436ef6d5fcee8cd60b01fc3f91cec354c99c871afbf7af1b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060validate_file\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings/schema.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2ac72d9b4b34d9380188f73e2ad362b9bc4770963f61f97696eee7ae698eb2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060validate_and_log\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings/schema.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6993c1a6f83e9c8e4aaeca678eeb59bb77bb8c684c1dd2708668f92c6ea18ce6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060watching\u0060 catches \u0060_, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/settings/watcher.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9f32ab95a7bea3ba555c345f836943afb1d3e04340601636f2b3b37d7c24f7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060present_kind\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:http_500\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/anomaly_queue.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a7b49be4a90d121c191a57b65ef8c9131c6730ab348e7e2ad890e5473d7b7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_chains\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_chain_reasoner.ex"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e7789d3a265b21247d4d9e9f6886dc70494e8c92574cab38b99ced9b47c004"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060execute_sequence\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_orchestrator.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dda72607c274534ef2875242e77e3b8720c1ad08889a4582f3f8ec9769b0bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060paths_from\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_path.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaa3722f9ff09c26450b6fc4b5373f24c678b14f70b2bdfc55ca3c9ac57f4f7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/attack_taxonomy.ex"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"65132f8246b2cbdad4b97e49f568d1e633886c8b1a557deb942cf7ea1713c57c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ask_next_symbols\u0060 matches \u0060_\u0060 and answers \u0060{false, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/call_chain_analyzer.ex"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2513e6dc9fd2b6e0729a6dd0be8866dbd2c487d7b3591bcf3372d1b5a7c1fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060judge_one\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/call_chain_analyzer.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"04273622ed0eff744db29be4e9f142587532da39fb8dbc3f69c8e95053c425f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060build_finding\u0060 matches \u0060_\u0060 and answers \u0060{nil, nil}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/call_chain_analyzer.ex"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"850841cdfa6f1815529145192bf2b559cbf37ebe086f29acab37979908e71080"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060discover_entries\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/ci_scan.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0e5d5f0745becf3c20019dae71ff2b28780be46ab634c175e73c1319c1a99d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060static_hits\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/ci_scan.ex"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3ebbba22fc6922d7bcaa5389bafab69ef3f4d63c1f23de9077c8f62dd8aabc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060scan_file\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/eval_harness.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5362fb3fbcc2392db506fe1ae2b046c7855d2194b5cec7f5a7a48da467756e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060classify_finding\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:custom\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/exploit_generator.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"413584ee17e5000ab02e6b0dd253bfe3da7d24769e7cb03422ea0f84091d2b73"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_class\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:other\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/exploit_oracle.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12c01c718160f3d75a12b3b500ff1d639649678fc04844c6a57d3145689a1e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060replace_once\u0060 rescues \u0060_\u0060 and answers \u0060:skip\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/fix_verify.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a42323876745126688e5a7d94d678cfeba7ac5ceb297bac926981a313b3cf2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extract_dir\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/js_secrets.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe970a8b110b815816361e30ad484678704d6ae420e846bcf1be9e58ab18f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060json_lines\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/recon_ingest.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3843d2aa20364b229289edab1c94123327db809ae4fa0b4cb0c72023238bcb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060filter\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/report_gate.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1576943cf5267826ff854bb2c9d9bc49443e7d77d0ca26551ce1efcef29836f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060vuln_class\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/report_gate.ex"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de3a52e86e19ac8bf17f800cb3e33af2cb4c439df8d4b0060cf86d52f92087d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_httpx_json\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/surface_map.ex"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"516851c39f6009d64d9607f280778a157bce0875d79b028024643578c0bafc81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_resolve\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/symbol_resolver.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6917315aabbe3fc420e2b59b73f78c7832ac6ad564b1b099edc14618a9933faf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060recency_bonus\u0060 matches \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/security/threat_intel.ex"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b3ccf28f94dfe054c1120acbacc8874e3828033e07a02ccdf71d679cd67576"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060json_model\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/identity.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cb46ba2029e39c4a327754c8ef5617ea554569b89435ea02b20575325a0f2d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_atom\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/identity.ex"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"473344dcc24223b28d6ba49a03753d69b1d84ffefc9419bb45851d600611d569"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060tracked_session_meta\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_manager.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ea4e349f9b7cfde29903df52ee6400fc0e8d5192d1c86807c02866c4bbb3ca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060live_session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_manager.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"620afced2d7e7406750d46d683de9ded2835186cf97f93cbdb1220ed7d4da1e0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060warm_context_window\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_manager.ex"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"df32cf4f91a7456300bc9f1dbf647ef216f98eed371b9410f508ac4e036dc1ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060known_session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_resolver.ex"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedb580e382bfad413d976ccd194931c11f657830e61b8a739cb7fae05d4e82c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safe\u0060 catches \u0060_, _\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/runtime/session_teardown.ex"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2beb3f16a53aa5517e75f8731646d3ec89a0bbce7ecdcdfe09667b305db40ddb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060refresh\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map/git_state.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e316de0281854d848f7a393baa73fae4cbb57489b82b85f5b22d965a2eeb6c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060watching\u0060 catches \u0060_, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/repo_map/watcher.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a518368a55a5aacc540785ee424fafd7b5bfca3e59f649300743a43dfd6262"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_responses\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/remote/client.ex"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4ec73792b4883754fbb1df63e4049e941b4ea91816fafd37ccfbe7eabb001b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_sse_chunk\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c59ff13a9ecb9c5aba6d2d0a1e6382e2ca228dc694ab7291620900f3105347d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060process_stream_event\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"541ff97e364d2f71f1657af1deef1039ef118035842f40f08698d4d10b757979"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060finalize_current_tool\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1327e7c5b0ccb5cc1fa1df6fc3aab84f748fdf3c41b2be349a6d10bb58a418"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_effort\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd82c164177c6fdb56b29d7629509906c1027efc01e76dc667f2146c6c05448"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resolve_auth\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b4964762f925eb00919e4e9d8e54d42025baa9a17b176dd21df1f1a55b2fad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060unified_reset_seconds\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic.ex"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2a579e820b60b3b0bcbf2b5dd6afc5bdbff3ad13c106025a8dd4b682bde185"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060effort_value\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic_models.ex"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f30772d194ac5545af7ec0fc3b36cc2ceeb18e8c900831e67ad98ab81e69fd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ladder_value\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/anthropic_models.ex"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"606cf1ca6737a991eb6880c38cec08acb1d7dce72798214cb90ed3883ea328f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bearer_token\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/bedrock.ex"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06d70b95d5742295901a06c1bb764b9c41c69ea4554c3fba0c9c24bd060fbeb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060last_break\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca79f8bc175a3e6ac2008d82f3c8388c7d4f36890e4596f804ab69ae403b8e0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060summary\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b4dc420ab2501e2dff1017ecef7ec5d80f3bb90f26a9cfdc21de3bbdd47e79"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060rate_of\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2bfd9a4e666ab86342e499de73a5b8a8be2a4a8da8f38b3b60b6df8b690d09"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cache_attribution.ex"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fcf73bb4f6695ac1b33ebf89b4686499d543549eb599202bc6fdc78e278a5f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060normalize_date\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"102e9bdac9555d06e571055da64bf36c39e4e1242eef4c1c7e9634a1a0db3b1b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060data\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"235dff02a7d78ec0a79f62aea749b5caa87b3369738e8ddf28089bfac70cbddc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060priv_dir\u0060 matches \u0060{:error, _}\u0060 and answers \u0060\u0022priv\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d96334a1ca40a98844507c15531265f93b17e110c2bbbc1383bdead826102ee"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/catalog.ex"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bb143951f3b09bcf6c620934693ae9c96ad9a5c63f7b65a1e7e6a9cb3bfbe0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_stderr\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/claude_cli.ex"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af2269cc5bf0de4b3b1bfdb49a2c989144af9e2a0e24a13624c5f91c6496e9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extract_tool_calls\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/cohere.ex"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbd8b3047ea48d831e301234c1237257e51156424ca19e17921b35e44694b39"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060unwrap\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/configured_model.ex"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0958178dee188fc55809536148d69f092065c4aa88c4a76bb22552b468728add"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_stderr\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/copilot_cli.ex"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"06256743e68474881d6e286595c66f4715d1ffa9cb06d6cc2829d4b2ed812e54"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060first_json_object\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/error_catalog.ex"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcea82d193cf8024b1c5dfbce4dbf6df80a637d63f5321e2ba697b05d98245f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060capability_compatible?\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/fallback_chain.ex"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fa9d4e658c39f69d78c5d47a976493d2d6a6fef727fb2d839484ea54f34165"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_effort\u0060 rescues \u0060_\u0060 and answers \u0060\u0022medium\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/google.ex"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1607ddf6ab47dfede57373338ee134438b6a2fa7437314ad9c080ae5e8f49f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060vision_decision\u0060 rescues \u0060_\u0060 and answers \u0060{true, :unknown_default}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53b9a5c1aa4d6134023a1c1c245f00913950f4146ae509b6042144af3bdb765"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060compat_providers\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/image_budget.ex"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdee610397b053e0af3ca901be536eaeb1a0f3ef5aa18f97ae954feba2d77f94"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/model_limits.ex"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e23462356a31e3ec1ef0e694cb2815d885335eacb3a181b177114f1f131cd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_finalize_sse_stream\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a1d445d9945a8ba983e439377fb28857ebdcb39e8dcb7b79fd500e9bc64c16"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_tool_calls\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"effe3e8e26921f2438f6f75dea94fcebdffa7fd4e5186887869ec773fb50bbf1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_tool_calls_from_content\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"debca327f5fd8f71c7f893ece738ef56b9ef0297909b16a36469b79d6af15792"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extract_xml_function_calls\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0e5adccd73fc05175f72af563a90ffeacda3ff986fc70ef6bb115e32cdebf0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extract_json_tool_calls\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5201bed01ce609b617f0c7225eec28e31ffe546d5bbc8937325c94fa95ae151"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060catalog_reasoning\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fab534eb191ac59ea9ada543cb94dfa6cc539f815a68266e45260d72f5ca9f8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_effort\u0060 rescues \u0060_\u0060 and answers \u0060\u0022medium\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_compat.ex"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ac5730d759e7c913b7309ca2a443a229c5930c5a1f0710228c9ba0ccd5d1f5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_effort\u0060 rescues \u0060_\u0060 and answers \u0060\u0022medium\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_responses.ex"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5588bdff142d0d59ae04234eea3a2c457853517229bdb107c232b29649964e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_call\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/openai_responses.ex"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb92f5b25da40e602401e560575d10db5c82a15281c3ee16113af498584f8c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060determine_authorization\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"10437cc25ac2080b808bad9c94d7d4dace8b1adff9f20c6904152b866d997c7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_tool_args\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"518776e520d4bfcd5cb7f303356782bdef4d3ed635e16c520b75cf0e80d8730a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_default_model\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c56ab4fcb3812f6a6554a4b56a53106c3cfc742c192d8ab852b1243bc538230"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_default_model\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed180e39a25ab6951c92fe1de12e6fa80ede829d18e3036ea5c813a25181f29d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_catalog_providers_for\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b85e14c3eaa5a2ce770d1f077492f9751c28ea7cc6d2dc914eedd4e6cdd2913"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_catalog_find\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ab9b3e8e9e1aff9bba4c7d06737f696467269647b613b74f6e0d58ad2f2ac8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_id_to_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4a732c9365e5934af6646d646e3d78fb7248c41a6163ead0836ac55db4a5a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_catalog_model\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf87f362b4f6e011f4110edfd1cd474402b0ffcf0abb797695d752561796041e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060catalog_models_for\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc396adf924efe0e6964eadc85fc0144f68ecef6548cf894b715dae7e80c117"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060catalog_context_window\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50865a9b7306fabe1b2f9e663098f54f4fd05fad0eeeae48bd76fe573dceca3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolved_default_model\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/registry.ex"},"region":{"startLine":2809}}}],"partialFingerprints":{"codehealthFindingId/v1":"5909c1d18319cacf7dab663d265b91e288efc549b8ece0233338423b2bee0f3c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_hermes\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d05543760045758d0f71f3fa7d26d0d71fe6995ad7363f9319e6fdbdda084c7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_mistral\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b02ee1e3f6ae3a2c5e3db437dbf26b0ba561809cba4a67f7b89ded84b139dc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_llama\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e97f463539033e91c4f0612ba9efd53dc53fd462665485a863cc62e02d83455"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_glm\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfca678269eb6ead0acb4e334a1adc426173bed717b385004f7c37c928c8dd3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_kimi\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ca954e5944cdcf4ed934b8a3a8ade2d243f9ba7d871a5f879a6dfa534f99ef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_decode\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/providers/tool_call_parsers.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f9738e1d83d5bba1ed8f67ddf5876bfdbf7b2639f514878283553396bf009d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stat_snapshot\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/cache.ex"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6ce98c2f91501ea0a6d5aa13c006d487932eecb61ce2ba34354931ed609a17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060put\u0060 rescues \u0060_\u0060 and answers \u0060:stale\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/cache.ex"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"605f43b1290d293ab1ca70b658568d83d44516b458efcc74e4e350ee04b49c2f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_tab2list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/cache.ex"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1ca9d8994c16690bbf20a40cce7f46e13572f25d9143df2a97cbc334e4693e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060lookup\u0060 rescues \u0060_\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/engine.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b89895efccae56afa9eeef75958ea9b901f4eaff3e32e5b468be3d84901f64"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060sibling_candidates\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/heuristics.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"60eb6cd7364f83ff259e8dd58caa5c0c315336ec1a8884fcfc13325754536de6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_execute\u0060 matches \u0060_other\u0060 and answers \u0060:skip\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/prefetch/read_only_tools.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8afcb7f61240665102097c4cda4f3205ecf9ce13f63fcf287c9f5c370e9c53c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060verify_dir\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060:enoent\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa7d67c885acefa01c284fca6395e239b98e32a6e343ae11668071ba5f51ef3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060detect_uid\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b08ac2c37bd3be6775a908f6b94c0b98dd0c4f2e3020364568864d2344a84e5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_tool_name\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbcb4c62de5df5c3dd85a73ae1391da6197c38ec8e13dd59b993d1fc30286c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060module_behaviours\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/plugins/loader.ex"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf78eff4602cc3d83334436907e5718e0fc90b4c774aea46e08b69ab3db0523"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060suggestions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions/ask_flow.ex"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef821a92dace7a406c796967eadacc74d7f8063746508ae8608e8b191470425e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060json_verdict\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions/auto_classifier.ex"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"939ff844fb353b80d0d1d09902d919142301b2273796e94e23ffd76feabec55c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060recent_context\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/permissions/auto_classifier.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee9e4697e1e787f1bf439faba48ef0f893b41b98582c2162a7e132dc268cfc6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060handle_auto_accept\u0060 matches \u0060{:error, _}\u0060 and answers \u0060:already_resolved\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/peer/negotiation.ex"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c545b2bafae892bd2b08e37cfbb0b9150c8bfd317654876c108065fc8aeac4c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060get_negotiation\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/peer/negotiation.ex"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de74cd9094e312f765726ad89f84e48aa7c376c960be84ac24113c2c0fecf36"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolve_pgid\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/os/process_group.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0342cc111c1a9f025366b05c80b9e17f27ff71fc0b2bbb3c638c082c04d7b0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060pgid_of\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/os/process_group.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a68f481fe8587d1ff12dd422c09082d9c7fd92eed57765c3ed474e0643b185"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060own_pgid\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/os/process_group.ex"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55b59ea8ec3e82511e6d41aa3c219a820d92fb6b8877bcafd46e0fa5d37e692"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060children_of\u0060 catches \u0060_, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/os/process_group.ex"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02ed704eb441031f3d9832b69ea65304a1287796c4d137c4e6444176cb37644"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060staged_version\u0060 catches \u0060:exit, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bf43d274e7fa3ea313c1afafd535ffc12f5b6434fc37879a813eaddaab70b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060release_version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3936662a82885511fc150dbb3e79dd6b6d6db1d7a8adfe58ffa468b67c39cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060detect_platform\u0060 rescues \u0060_\u0060 and answers \u0060\u0022linux-amd64\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59dfd9032af71e0464ca0fd503b941a6c8b8a83c3aa993f70c4a3ae704723e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060detect_staged_version\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"71884b9ecafc0030105d4baf615f69b9072cea8816b3304a9567d23909400535"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_version\u0060 rescues \u0060_\u0060 and answers \u0060\u00220.0.0\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"091de96d18441e1b71aea1a0ddcff7b349cf51bf0256085622cbf6cbfcb2101b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060update_config\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/updater.ex"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede9aee4ac642737a11e24fd7c71078186a0425b78f613fdadfe6f7faa7aa3d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_avg_1m\u0060 rescues \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/telemetry/cpu.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"05583219cab56f56cadb0ce0eb72b5ff88b824d6ad84745f3b0b010c852f7f9d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060free_gb\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/telemetry/disk.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43daaad9cf97b34e86fed4059c136d957b94ef1620d811b9623d5a1568350f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_fetch\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/telemetry/memory.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3caa4e50ab694fcfcdee1bb69040c5c95c286787f6056dc3413107615c8108"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_os_release_version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/telemetry/os.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee5a616b7257d83114c72f6939922f2ba2ca94eac443afea2d550cb74439d94"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060exec\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/telemetry/os.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea94d8c1f0d0c3e6b811b2567b9beb285fe8415254a416b933d8ddc93377880"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_exec_config\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/config.ex"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"171262ee327b6176a26dafe7a4d6457a51668605b9c34f3b40489b100c24fd6a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_size\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/backup.ex"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4771b040a8812f13e84262dad6c960beb61d911ebf8ded799f0faa0c19ed9c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_ps_json\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/compose.ex"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0c23d2e98da0eb9557ebf7f6b5698b3a519bd3c82fdb1a919ff10896cf0f14"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolve_ports\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/container.ex"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf2269a15e887fcefdd67fcaf3b7f2399df78ec03f339d89e3e672c4b5885a3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b023cb8df65bcae2cd8ee3da52c53aa6cb41251123cf7c69fbeb4be5c948c5c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_read\u0060 matches \u0060{:error, _}\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73ff4b3a25b7edc2814cfc37bc10ded96a8bb168d520b5a813a36c0487f520b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060to_unix\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/fs.ex"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8e9ff3f85ea4f78960e247a9af765db51667524eb1bab19c7a59aa5a337157"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_runner_id\u0060 matches \u0060_\u0060 and answers \u0060{:ok, nil}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/gha_runner.ex"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9d36c2d99906e5ca89de5c4515f774eb86aaa1c0f82fa11590722282598b7f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_list\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/ssh_keys.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"db34b85bba037b6849ac3d4dc4b31dd731eca2360225c78f0ab4a0ae4eb5dadb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060compute_fingerprint\u0060 matches \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/ssh_keys.ex"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4aafbb86d07055abf573d81145aa48de69003099237e78abd6587727e08f31"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060wg_version\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d454309d7b91e96b01fafca28ae22ddead41bfad133b4021eaa36e15108b6c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060detect_public_ip\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/wg_mesh.ex"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa628e5b3e4115973e893dac172b3022e3594f97f54ed75aa6da01ed82c0d075"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ensure_mlx_installed\u0060 matches \u0060_\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/open_computers/executor/direct/cluster/mlx_distributed.ex"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42eb8e1294460f916468d1a39a4a528a111389c701f6c6114613f904dfb7457"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list\u0060 catches \u0060_, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/monitor/watch_manager.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"520138236b7b306780dcfe9799abb0fa90eaeec85143a50056ab7624b05de3ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060parse_pid\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/monitor/watch_task.ex"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5cbd2e7ee6ac1d4d48a0c8cac519cc0f9052b9499a859cfb3160bfcbf7e294"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/cli.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdee0c28c8ed17224f71f5d66516f19268605a10839f83540fad5ae574957d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_config\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, %{}}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/mcp.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bfe5f16020063bd0fef53d247ca657963979ef5b1db3c68b6063fdcee77c65"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060config_api_key\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/platform.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"137c4e70fc1855cde6274524d34c02d51e93d7e29b7bd26ae4e007c3cc5980f9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060config\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/platform.ex"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"23595f2fa2ff699f4b14bd936f9b22448449e32a103504fb91cad8c75e0e5629"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060persist_api_key\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/miosa/platform.ex"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a25f30535b6faf380fada903790c02981fbfcb9fbfe78d45d48ca3ffd9eb91"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060format_transcript\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/dream.ex"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa1aae9444ce39ad12154b113d43c8424fe1dd2573f661ef19239d8aa05f1f3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_list_sessions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/dream.ex"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cab681efc7e7b72dd2e6b6c57564647acd9c43f2da07441d02da9a4560d39ef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_last_dream_at\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/dream.ex"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"9350b43f931d35b357c5d73d6353ceff03ceefe718e001696c35a5c65ab871ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_ts\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/dream.ex"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88aeab9c2e321d9b697df2565c9354e8fe4674a45de489586360ecb13144eb1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060run\u0060 matches \u0060{:error, :already_flushed}\u0060 and answers \u0060{:skipped, :already_flushed}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/flush.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"247bca8ae3faaf7311bfeeb6054f74f901d0f2fcdf1a606de5b72f6f8bfa33bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060create_ets_table\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:already_exists\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/learning.ex"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd043dbd874f08a674ea555bb09126dd7b2c7ab642fd5a8ad09ee34f95e95e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ets_size\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/learning.ex"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"68564f062add0c5858ac16dbc985a3801c6ea5451cbfe897df01b24346a5e317"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load_persisted\u0060 catches \u0060:exit, _\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/search.ex"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a160a592cc59d1c68be2bbe1173e8664721c9c9b272a0d9b767f0f6f21bbc2a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/search.ex"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aacacaa4b25cd68ec23393816252003272742ca7e36eafedf2e9312472fff4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060titles\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/session_titler.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4438337f3e4d78ef700c612eb27d00558655adca71e1e8ac353d1591bf7386"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060manual_title\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/session_titler.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bf299ec4946246cc2cf8626ac590d430fdae7c7db242d84c3c1e177f7b4b5a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060small_model_opts\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/session_titler.ex"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b8c4687920db9d2a2afa8b28f3a9ac92ffa8eda637326575c140aae9b3f27f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060reweave_links\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8a171a005a39d034e49502b7384c2cc0cdf696aa23771c5eb007f670f74c25"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060lookup_ets_index\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e4222f5fecaf33329752feb0b902ab8cd31d88aa0870f5812a23791c21a86b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_from_sqlite_by_id\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"89553210a74921b490004c03da2beafbd2b2a9af632342617153038ba0359f21"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060create_ets_tables\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:already_exists\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1bec81d0284ca4f41794827e77ba78cc0629e2a8060125f6b2b17e7440d4b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060find_similar\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7b80b9259ee5928f941d888baac37167ab76c6355a24d16f6c8e913be70194"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060compute_recency\u0060 matches \u0060_\u0060 and answers \u00600.5\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"1874d63a42374fc49e2b2d990337f1e75d3feb83e0778bb6c47518d902519b3c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060decay_value\u0060 rescues \u0060_\u0060 and answers \u00600.1\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/store.ex"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7e3c2abd8494d74e872388accaacb8946b74799a61f21180d52cefdf2dd071"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fetch_and_score\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/memory/synthesis.ex"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"10781fcb93e064ade61d30856fbe4dabf8be4e59752e61612c470248535773cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_scope\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/config.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef7a9984c6384d54c65a6a3bcd74fa06cfdb70712f6bb0965b2d94ad6f1ff90"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060flag_servers\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/config.ex"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"013a29918d34e2f530d53797e8471fb04dca61b3f94722935e5ace7d38ec223c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060settings_get\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/config.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"89290a4439baf9019f42fb02e26f89528788a451521290110a7f8b10aae3cc48"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/config.ex"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"268b247abe070eb67dfd7d61fc2cf93076dd2a548e98840aa38756f4b5633327"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060settings_get\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/discovery.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c93987036387602ea85bd6e936fa078ad801baf98eef3f36867a9e703e20e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_codex\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/discovery.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ad02cdac2cd421f032ff7972248660f8a312f99dce5bd24fb29593e63d41af"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json_mcp_servers\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/discovery.ex"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abab11bfdc1481146af7e0e3f8d3e16fae3dbc366aeaa82044f7f032b0261fd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_file\u0060 matches \u0060{:error, _}\u0060 and answers \u0060:skip\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/discovery.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb51f943d65646f54a215bbc65c0ada4f98b2aedf5b3980f6c5b1950c2b8928"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060servers\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/plugin_manifest.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"158397c207ba1c196f759854b204e039f546a26ef4fc5a70393b962f99753b7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/plugin_manifest.ex"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80c639b14f00dfe9f85f805262f3f6e4ac14e1ca448e391ea7d4f4fc4aa837e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060stderr_log_path\u0060 rescues \u0060_\u0060 and answers \u0060\u0022/dev/null\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd73bca92f66dd9ac43299eb20a7e1d4a7d352cfe0a59f8f898b9315e78b8f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolve_pgid\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"723da9587b6143c3c247d8a63a5ea7f85b0f28e508eaddfbb780bf4f796dffa8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060pgrep_children\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c2c4957d9e79c816ea8df4cb4294200070dfc18fdf861ed1422643fe45c9b3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060sum_rss\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"1befca7b4a233cf89fce720aa24886bc507f078ee394a6225601f921eb0ab8aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060own_pgid\u0060 rescues \u0060_\u0060 and answers \u0060-1\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/transport/stdio.ex"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3187fa5d96146475c39cd23c26789dd855e12c596f074fb4a1ec306b3812e48"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060osa_tools\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/server/dispatcher.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"85520f255e27ce8e7297979e6b733d4a2d9936acdcd8abeebdfa3432453295e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060structured_text\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/protocol/messages.ex"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c51bab294cc2f702991682958ef93031fac07d89a183a7f1fb7a6c840348532"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list_servers\u0060 catches \u0060:exit, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/manager.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33c9968f90a5bfbbc3d22b206d23495f51824bb9dc8f00707e21fafe3cca38"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list_tools\u0060 catches \u0060:exit, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/server_session.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3d906d1ef073662969bc114411ad61dfa700949b1564b7aafd5bcc0961e14a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060status\u0060 catches \u0060:exit, _\u0060 and answers \u0060:down\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/server_session.ex"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bd445238e8a9d7e6eb9c21956e1f2349cef54730d6bc2571c8b61c2c92811a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060roots\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/mcp/client/server_session.ex"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84f1a6398a5b68c01fcc84b287c65f573852df46b4f52afad72a0db73091412"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/catalog.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f307025441f9bb7c93a8343214e190203f50c93006ea7029bc135d2a289503"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060kv_from_model_info\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/fit.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"caff55d6b16ae17d2f3e50b4b4b1f8e2aebcdc4cf89e36674bc9ab40979763ef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060nvidia_smi\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8982be49f3f005fbe225602d98d26d426d022206593237363679c9f00e487d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060amd_vram\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98073037aee18858b7a7b616cae63f35255c0ae73b61d79e2aec7206bf9a5fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060apple_chip\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b521dc2d548adb985f842c417f58c6e52e8a8b9dc3eeac8efacf1b0053efa1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ram_bytes\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bc077ac42491f44c4d66aabe9b69c48f07efb1055894b17c0189bf335721ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ram_bytes\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfa8de8c3a748b73969be21967bf7388fb82ab1b9b6581615b53a0a1a647e56"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cpu_name\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hardware.ex"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0d9b8f05aae21435119b8df3138c2be3eb3587aed5acff549cd564d196313d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060with_cache\u0060 matches \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hugging_face.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ed2ebc03b535fcbcc1a566ef2073e94bab46311433d7803565bf60c20cc578"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_cache\u0060 matches \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/local_models/hugging_face.ex"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682cf31f344e0ee5f32764d2b4e97afbeb64d3f7de136eb2df00af5bb5623b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060events\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/learning/pain_sink.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6d5b2f3024d5fe7c9529cfd25ceb881d246f37bc809247ce90ed6970732058"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060insert_new\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/infra/bounded_table.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc226d3161a1177015e2d720ed24f4cfd4ced204be61fd2646531aa1b4dee93"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060oldest\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/infra/bounded_table.ex"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72d7a196bf1ce50e6eb531d41afc83a40d6d1f82c9491f0f7357775ac9ff525"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060extract_paths\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/hook.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a282106c643741da6d0a52034834b01febb6a6412a5db462927bec79b2bacdc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060head\u0060 catches \u0060:exit, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83646f79d663991faa686ca5f49d29c2fe955355999ed1a274d15d348b2e4ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_size\u0060 matches \u0060_\u0060 and answers \u0060:infinity\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6677bfce1e282a591b288fb77c7a5cb85eb176e4674ed3bf0b3db52ea50b68"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060do_head\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/fs_checkpoint/server.ex"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96db17fd96b143c9849d0ac8be010234e5eb26cdb350613dbf8efbca7b7d535"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060task_agent_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/claims_board.ex"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"972bedea2e0b48aa4b678d1c732cfce940d400c29f42757503a9b7fad5666c5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060file_agent_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/claims_board.ex"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"855f4e0881272742532132971e1a4be78970220ff4ab16ed6a6e954c528ea0e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060task_claims\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/claims_board.ex"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"012caa94c685ae234fb559d679a39231253fc64239b718040bcd220e882f3dbd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060file_claims\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/claims_board.ex"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"505153a77ecb6e635ec9d955039c84026b897119439d1c04fb0e65c98f661a3b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060subscribers_for\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/intent_broadcaster.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fcf2ef2aa9a43e6b02c66b4b91d42facc83c261f9e266e1ad16f69f2685c65"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_intents_for\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/intent_broadcaster.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4749b2df197638673f6417c5cf6b0eba103f16585883714880de49939e3f151e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_claims\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/file_locking/region_lock.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbacff76ff62619c024c225690f8d36d4acd9c9dbe57e77182ce881c73587e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060depth\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/dlq.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4012f54d62c82238677866caada9639534c7fbc15a0a4a584889947daa4ff020"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060entries\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/dlq.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c64116d7300f069ce696f1ee3f2bd4d83e78cbf27d2b6897a96046c536289d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060dead_entries\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/dlq.ex"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c09e7ee86b7d944519f686eeb6a7c234f1069eb34d6ae3017867f9a9193d162"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060process_retries\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/dlq.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf6d6257bfcce62e2fb873d35338a9d0a6600bf364928fb2d18d6aee99106f6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060classify\u0060 rescues \u0060_\u0060 and answers \u0060{:retryable, :unknown}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/dlq.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf03f5b08c0a9c8db744fb891d47462a1413e13f1f73840a8474ad323b970b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060live_root_session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/events/tui_forwarder.ex"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e476852330c68f55b86c58bf39a39134160978f4197a84cfc0fd5865b6e026"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_propagate\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/cascade.ex"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"16eba19d9f1e6715ec767e18a751006403aff3fe13e90131dba9af76c3f5bd0e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060init_tables\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:already_exists\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d739d69632a750ffa2867e030a9b00d3be0f1dc56f688da3cc055f255c14ccc7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060descendants\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c4b6450d9d4fa19e6cae6fb43c03aa5d2743683b15f0a1b444dce2577210d4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ancestors\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6732182c0b20142891162f885831e80c63a5a5209bf7591a1a65fd7f21a1b4cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/graph.ex"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e197e1216779bdd6e4f34fcdeb95b9559f04c9d8b15c86bcafd027a685873a3d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_coverage_gaps\u0060 matches \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/decisions/pulse.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abf83f09a5b6dadf900588544c63191a59c509a22a71cf0fa8ad1df9513591f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_file\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/config/dotenv.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72eca40c4c24d42d81d540c94b064b8a2a71fd95f429028bc6847551e851489"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060legacy_anthropic_oauth_checks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee626ee9c9c6e8732a1b588553dc67b3ca235d5422f8cccd7ceaea01d850ac94"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060onboarding_checks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb670f52dd0439b552db651916ecad9552014de8c5edb7733d899923f29b494"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_version_file\u0060 matches \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d79d7bdc47ff548fdcde028ef86c0b9d9fa97621fdf3802269873c98a2e311"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060check_model\u0060 rescues \u0060_\u0060 and answers \u0060{:optional, \u0022Model\u0022, \u0022unresolved\u0022}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a25cd1eda3f3a742a70d1c303befa178a6e236eb04c2ece0addf1f84cfe94e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060check_ripgrep\u0060 rescues \u0060_\u0060 and answers \u0060{:optional, \u0022Search backend\u0022, \u0022could not determine ripgrep availability\u0022}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e960b47aace027dd8377873b55d52e639d745e8d1ebb885ed465dded82a7d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060check_event_router\u0060 matches \u0060{:error, _}\u0060 and answers \u0060{:fail, \u0022Event router\u0022, \u0022goldrush not compiled\u0022}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcc4e83cb903e9e83e7357e598545eba4dfd63192dcd4cef751b5e7085a61bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060tui_version\u0060 rescues \u0060_\u0060 and answers \u0060\u0022found\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdf404920ff1c39e8602a41fe4dec2178a5895fcbdedc1098ec36da2c5f7093"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060detect_ollama\u0060 matches \u0060_\u0060 and answers \u0060:unreachable\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor.ex"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b25a7492087fe70a7095b7fb51c2f824d8c08107822ffa2bf84454d01a25a5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060inspect_input\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"39eba9e8b224a36e94c44f51b91273d311512fe18a6dc4b4d79113d3a9ae8afe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060permission_label\u0060 rescues \u0060_\u0060 and answers \u0060\u0022default\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcafe8328d2ec271e39b72063144df3cfa12aea6cc92b2b2f18c6abf7159850"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mcp_servers\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e494033ec74165832fbf7e9efcdf861e68ed5ee812382cefbf89c65ec08c32"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060read_all\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ef6ba6e7390ff1636e4c7cc95fb47fa83880561d40f521234b61d9419d641c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mcp_status_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a0e269ee5310e77dedc4f31fb99783982e375425c1bf18b8a23ef841c8684c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060loop_struct\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"56534ddbbe401772c766b53bd2bb42de6d91357f3ed05200ea1e1d9b469b93b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060loop_snapshot\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b82497065bf6cbb2b7d7b6be198063d46fbe3fb4918c2c18818385c447c689"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060event_device\u0060 matches \u0060_\u0060 and answers \u0060:stdio\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/headless.ex"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"130b27c8028dfc0ea420aca0959b9eb909a7da9a5aca998557cff8be8b39a004"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060session_status\u0060 rescues \u0060_\u0060 and answers \u0060\u0022running\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3bbf1eb432d7e791c1b5d81f02fa17c70ea2e9330f7c38ac92d7fd40724cf8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060set_env_in_profile\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"10400092a598b8e5e02bb04651671695afe48d1fb0cf521de96dbea160a8247c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_toml\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/opencomputers.ex"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c7c2940cb1aed68f805af2f2e50ed5e7525a730cfd1a7f5922f6071a3cd3ec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060select_model\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5ffe5944e23ffd1c23d03c0777bb8600ececcbd3c92fae7ec13b2e0781e0f2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060test_provider\u0060 matches \u0060{:error, %{error: \u0022           \u0022}}\u0060 and answers \u0060:unverified\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb38a02a9ff366c062527bad92a60e7c34957b7a1adc134dd907ad5e8511ad6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_env_file!\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/setup.ex"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4efc70e6d1caed363ab3cd67762638fd4e0f506bb37bab6d1477ee88f523ad9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060set_enabled\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d68e12aa913a21280551f6f0675f6263fa27065ce8bd8d7a3c9e2a7ea22c953"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060current_version\u0060 matches \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/update.ex"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a1a4f187df4a50264e2515a46d46ef4157985cab79f5dbe9aefb8368b16330"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060agent_soul_rows\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1867d4d47399b88ba57f8bc214371a25ee4e17d0b30c72f7aa51eddd814a542"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_unparseable\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a449d137a2d10fb37d20ac846d24b5aa5cd6300902a4e0a12d9d782560018a47"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060bytes\u0060 matches \u0060_\u0060 and answers \u0060\u0022size unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2b5d3a3f00e3769ac070fa7c88f63bff27c8c8fdec7f3f5ea61c5a0621b5a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cached_static_variants\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e29084c45749411c13b939a4720d5354722486b74f700b46c8332020fa4a1f6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_agent_docs\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d48463a7bca7d56df5fd9f7620ea472ffe03650f158b5dfcaaea2ff722741f5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060touched_paths\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb28044b974d9d86cbdaa7389e93b1d1b16223a269b134a6aa39374b4f89fba2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060layer_paths\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a28170e1c4d77da9c672a013861dbb558d81c62db3579367374a68bd43ee578"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_layer\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"983f1f81e1a73cf281886a9d742f1da643081ff9117444298eb44fb15e8ff6e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_validate\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/cli/doctor/inspection.ex"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"29026de71a78b967509d398454040dcc780daca0447eb256f4aa7f9e137468fd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060process_event\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/feishu.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d90828bd3ca0857ffb04a3c3a8f570c876c83f267c83aa3a061671c43a25f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cors_headers\u0060 catches \u0060:exit, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a237fff5c6c5f8836e73cf85ee50d95cf66dc0faa1788a28050b1d4466e6e64e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060verify_bearer_when_required\u0060 matches \u0060{:error, _}\u0060 and answers \u0060:unauthorized\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4cd3d0aacf5691836665817963de5d0486c93de6f783d78adba6cefd256bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060json\u0060 matches \u0060{:error, _}\u0060 and answers \u0060:setup_locked\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e702c5cb8e42a954f8f425aca15c64ac756c657a60fefcbc52d705dfc5136b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060provider_atom_for_health\u0060 catches \u0060:exit, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0568e8c45b9f71bac3a6361c06d3473d4b42d13cd6407fd77eb1ed58b395feff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060health_billing\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http.ex"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba8f18924315c8f4098ca0509a364632c1b5e83c2f933286d3b246276af755f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_config_cached\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/manager.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e450a3c1e825a39b6a4a0392047c9b10c52e167873a6e5c93ed48e8a79b7bcda"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_list_agents\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_management_routes.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd66a310ff743e2cf99c8f3bdc88e763077eae47e9af93543a09b41456b4e39"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_get_agent\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_management_routes.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"df638dcf86ff279f077b142de5bea98a81ca207b5c9dc70516cafef5acfb4d7e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_list_session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_management_routes.ex"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7647d7b54f6850d48e945647959ea0792ab5277b41975f16c164d53c008a109"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060count_sessions\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_state_routes.ex"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cd2592648628621309955974d56339f30cc9a2d3757cf60076dc282aa3d338"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060count_tools\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_state_routes.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c459a0a4ad7c23e0595b17f4149d65acb632e829cde0261c5b4b8f29a6bef6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060total_memory_mb\u0060 rescues \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_state_routes.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"432d3d7b460e29ede5bab3f5990e423927c5c518ef5eec9e1c4c20365dcaf54a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060uptime_seconds\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/agent_state_routes.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bc350df211e6a5d3fa6626399054e491c754509c4f99b0f066595307e5ccc7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_data\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/approval_routes.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee02370b16bcdb66f4c211f25b6c6c21bf1de2e4f0c09b00b195d94703c2088"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_workspaces\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"134c2c51579f2e73a3b630d7d9b83315474a11854ad5fc321b9c4a585343711f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060enrich_workspace\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0711c759211d627577f76a3ca0d24d56c213ec4c20851020d087f2d1297d1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060scan_canopy_dir\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebd2984486ba2dc94176e0175e0e482fb13211ee26a3b8c78426f688cc1765a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_canopy_file\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/canopy_routes.ex"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd77a18ebf651d9d88f835fe36c0163f87c249fc514ea41f47c4f60c281270d5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fetch_ledger\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/cost_routes.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a94c83d16bb35b6fcda674f9820906b35b26a3dab0b49f5255457fb4e4cdaf3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fetch_budget_status\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/cost_routes.ex"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f469327a43248c4d7cb4270bebb6cb40ae25cabbe2e4a032b4c00ec0db886780"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_config\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/cost_routes.ex"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a90c6a64654d3ef231378e7575b5ada6acbb917d938dc22eba20314e696fa99"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_active_agents\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3acf0231175ff4e826921c6fbe270515bd8e0071e461f007d5ecd958360ace7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_active_sessions\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1404a0cb5dfe65ebc774882e1e04b81b01336409fae465beb76a5eebadd14f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_memory_entries\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc94fcd8b72d8b05c336e807b3066cb3883f64376fc4e8b2288197d044da038"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_scheduled_tasks\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"99964cf02041c85a93717bc6fe338a05b45a6842524a8423b8b5b76ba9d4689c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_provider\u0060 rescues \u0060_\u0060 and answers \u0060\u0022ollama\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe72f3044ed139a4ad5120915f9cd9ddcdda22bac9a63550147c94107d1d9d1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_model\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d84f31f7148409d85b2d8c9fc1edce8d7c4e234997d82a156b7df305f56d219"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_uptime_seconds\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b2c2557acfccfda0ccdce83c542006b38d434fd913af412042fd0a225debd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_memory_mb\u0060 rescues \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b2d6683804a2e8be1a6618accc47f7c281d00bc815221c00bc068370ce804b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fetch_tools_count\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/dashboard_routes.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbc816a3819e7e7dedb49b783312627cf5ceaba90daf589b62852f20e16bea1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060handle_list_models\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/data_routes.ex"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26f00625029e948c088f2f2003381b41ce2fdd74540848397c0fe465b5cbb9a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060handle_analytics\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/data_routes.ex"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8958c4e63ac38aae204f634d713e89a13dee6f6ee142431460c9b41cb11879"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_data\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/issue_routes.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb8c8d82f392649b71328e4ea0112118b1a77d0f6555faf535a0d086e64ae8d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060offered\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/mcp_routes.ex"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acdab31bd57fc1e5c18ece86166b32b84e549dd2cd87990ad3e611372b96039"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060current_allow_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/mcp_routes.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"881ca627cba1d712ce75cad4096e25ddd0e1a65c3b8e4efabd6b7970e5a9ceb8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_entries\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/memory_routes.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"788163d1735623bde1edaf1de359aa843fa6f8b23ad5e6ac242853804248dc7e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_projects\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/project_routes.ex"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"af00ceb74f9a40a4f55df70d2437ad05baedba476a62aecb2915fe5b85a060fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_config\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/provider_routes.ex"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4e8264234e1f10f4e1ccb149c47cb93b19907513a1d015995fcb6b9e4dbfdc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060catalog_models\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/provider_routes.ex"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"064e6662a9f508cb8393668a2be9a5fb4ab96721fbf9b204102cc80f7387d275"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_configured\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/provider_routes.ex"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2c649545797e57bffd2f2026736bafe9d5e43c13c8cb9bb0daa4f3fa88dc63"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060context_ceiling\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/session_routes.ex"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"928a11b822f7f6d7c0dc3f6f4b45850f3edf89409f1c9832e21f13f66bdfb91f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060replay_active_skills\u0060 catches \u0060:exit, _\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/session_routes.ex"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e89b1913d84b93ed010696bcd8b905f87cd4a2b646702f2cc2a12a7654c1070"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060default_model_for\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/session_routes.ex"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"414bccfedb4a82d6f8f8ade2a09523f727df01ad172ca4825d1a2b78d52399e0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_config\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/settings_routes.ex"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6210194193c21dfe7478c1fe71b64707350447bd98141ed0cbfc07011e7e8e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_settings\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/settings_routes.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc834e90347fb3f8d3c648cfa6a269050575b8e5347a3719297ee8aae924e64"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_cwd\u0060 rescues \u0060_\u0060 and answers \u0060\u0022/\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/settings_routes.ex"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb40691aca776a65ce20d657fc0d35fb632faa9b2f7d47ee66f35f377c18a206"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tasks_routes.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69d1b9ef825e1fa8732298cf698e7e97dfa6078c04101209853e198e380acfa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_get_tasks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tasks_routes.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e59324137f4e836f3c31122d2132b0b0db052c24fd6dda91ab79558a5f0d0c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060apply_permission_mode\u0060 matches \u0060{:error, :invalid_mode}\u0060 and answers \u0060\u0022Unknown permission mode.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8391cfa193bdd89ad6cc9eab6f331e08c1dc79ddee6d3b1c67a175747805b47c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060custom_command\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f6e77f26527f61fe2b9e6d88e61fc71c1a96fa75a244e8a7839ae80a5ff3d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060handle_api_only_command\u0060 matches \u0060_\u0060 and answers \u0060\u0022No memory entries yet.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ea201bb21c9af3d41ee1cb6af834c753d3cba3288d65dc74ff0c25ff1059ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060session_model\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3533b081aac382ee2fc105afac498d491e002156d4757a76a025a7a1bfc133"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_commands_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/tool_routes.ex"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4f5fe91da3f47cae54798824b6db32e9a0ff644edf81b1641eb7dc31b71280"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_file_status\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/http/api/workspace_routes.ex"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccf5bc1080290c63e9d1349d92d73a49dd3f305607ff3bc9c5c23c06f43baa9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cmd_help\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9a33caacee252b88309e6ca281bc23a449196f3ec618d649191e612c7335b4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060session_model\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72401f8c02dad587670b607d5123875ba39dbe5a2c035cb8e3bcf7264853f31"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060trained_window\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df9a3e5416af257894f89bad747a25fd6d8a95358ef763e5dd8a6092cf62bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ets_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b70f8432ac2dd70d3832dac59f24467e5932c7ec0d884ffdc9f7ba2d16719a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmd_context\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94554499b0c9159c1c85e04e19dd98eff2323fdcfc9b133d592929310ff1ea8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cmd_bg\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2814}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a94601e1da74f64e000fd0f5013a41f8cd230c20aaef4f2da7094b1a9ceb9c5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fg_lookup_run\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dd009f9ff6c85533e87aaddc1c0c598e8ba62682e897c04d1845a9d244d6c0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_run_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":2939}}}],"partialFingerprints":{"codehealthFindingId/v1":"857dad7f7a01b89d2d8029609035569699fe4b66fb40928f2335e01d12297f59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cmd_version\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":3511}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48593e1199cbaae88d7c1c62409649611866ae5ff553bc6ef074998d211893b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_osa_files\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dda4044fce967de93f94d09055db21334b4418a25b71034d8abf78192fa1d7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cmd_resume\u0060 rescues \u0060_\u0060 and answers \u0060\u0022?\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5769059a3abe9f78dc444fcafe3a7660eb2198a33cfe29056a959047501d6a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mcp_status\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39355bf67761b1bdc2773de6616844175ec369de311dfa60c5f9bc03ec62bc5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mcp_import_footer\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":4866}}}],"partialFingerprints":{"codehealthFindingId/v1":"6225f11707b16cf9ce3d50c60a978bcde23a5423ab2b11d9d2cbac9e12ecb6ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060seed_session_prompt\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":5223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4012847c5dd9cf1a9888deec8f6e2ad6a82b9205871f14cc4d51b0ae569b4423"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmd_map\u0060 matches \u0060_\u0060 and answers \u0060100\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5655649ee4bde0634b515f291aca38b756206512d0e14c2291f6c72ac7c3cdca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cmd_files\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":5355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1512d8a4f562a2d64abb9f581f0aa09723c0ae492527cfc86b95efa3245ad1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_size_label\u0060 matches \u0060_\u0060 and answers \u0060\u0022not found\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/commands.ex"},"region":{"startLine":5392}}}],"partialFingerprints":{"codehealthFindingId/v1":"90716ff63002e8ea66b01c1ca146c2ef8c32f0b57030e8afeb6a77fe363a2d21"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060dispatch\u0060 matches \u0060_\u0060 and answers \u0060\u0022(no elements available)\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"73552199de621b07f18d7062dfe057299e4a48b713418bf92277d1cc5809adf4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060clear_line\u0060 matches \u0060_\u0060 and answers \u006080\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/computer_use_dispatch.ex"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c39f1c27284c32e5f0e7580e0c5776a16f27174fc88d6bf023db10118e0545"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060register_orchestrator_handler\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:cli_signal_cache\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/events.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135aca053b6e692f8c98b2ef6340e3cbbaf25693ebcb7a41fd7f5613acb5772"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060terminal_width\u0060 matches \u0060_\u0060 and answers \u006080\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/format.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"458d228b5beb341e8d73d4efcd57793ca77fb97bc76d56a763e8671626f2d40f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060save_stty\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/line_editor.ex"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c4b3d46dea56d1c89386857ee73e5ad8e97b1debe256cdb3b68cf2a36ce596"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_escape\u0060 matches \u0060_\u0060 and answers \u0060:escape\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/line_editor.ex"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d70d928762be5e7dda9d1d0f5a4460302da46dce24d57e030a2f0bd40784185"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060toggle_task_display\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/line_editor.ex"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f81bf725be95314147308ac86e1e2c489bff145ce86f4b3afc795aedc6ba4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fallback_readline\u0060 matches \u0060{:error, reason} when reason in [:enotsup, :eio, :closed]\u0060 and answers \u0060:eof\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/line_editor.ex"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae27bb306ce91eb2256719156a97a7606d33eaaaa0a81260539c3ae9be2cd37"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060restore_queue\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/message_queue.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"e753902d1f511808100de0152c8d8e62979ff45f08a4f7713e6cf26b17c3559b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_single_key\u0060 matches \u0060_\u0060 and answers \u0060\u0022n\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/permissions.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"42865bb2bf2ec62d074564c9815dff0fc48107bb10046e7c5de4093ee7b47e58"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060terminal_width\u0060 matches \u0060_\u0060 and answers \u006080\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/permissions.ex"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c563ef4813d08a9cc74908fa7b4d2d5534139c559ad06c14b6968117f93359"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060box_width\u0060 matches \u0060_\u0060 and answers \u006076\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/plan_review.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed1a6ffe55c81b633ea9527113f99db94d048ace7a8a1bfd4bd8a773125e6c2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060print_banner\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"84364ad3b483f640d29f228a83d42068dbd6cfc5489511422ba4bb68f1af8336"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060scheduler_status\u0060 rescues \u0060_\u0060 and answers \u0060\u0022starting\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee65eb5a3ce183e5abf5da8538cfed7dbc1ce10482fde37678fa954e12fb2405"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060prompt_dir\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e21f69cc5bcea30e7d0e1f773213fbb4eafa8144e247ac38619c871c7f547bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_short_hash\u0060 rescues \u0060_\u0060 and answers \u0060\u0022dev\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/renderer.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb81d28b0bd4af1a0abdf17310f75e76ee68aed9d1f51a0db7b7eaa09cf410f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060init_history\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:cli_history\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"56154b111348ceeee1760bbdf7be783607a89599b1c4ce40bbfc554e88e0b8bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060init_active_request\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:cli_active_request\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"633438e4ae4137a039b23b97cec29d1ef8f73293a13d06594b6ff7fbfdddd49e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_history\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/session.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafe5096abeab97ffedb15a3c62df975383b3e78b33d82671759896b830bb798"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_active_task_form\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/spinner.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1b7d9c211f64d4408609e6e94c7e5e06367027f99021ca87d40053f57fd73"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060clear_line\u0060 matches \u0060_\u0060 and answers \u006080\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/channels/cli/spinner.ex"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dcff4aafb5a26e700b6853c096145c5d42a56e26dc823a5122d76be6c67e04"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_existing_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/budget/budget.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0113447a79790fd2d2b7e9fc65365c482f338dc588f75a301368db57959d179"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060describe\u0060 matches \u0060{:error, _}\u0060 and answers \u0060\u0022no credential found\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/aws_credentials.ex"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e9ff9e318237f9e5ac7a409db42f9065115edf603e47fb58fb5a4f81053b6e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060decode_form\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/device_flow.ex"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eda575db49a8c1f998fffd69ed745fbfc1077526cd5862ae43d95d6d176d377"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bump\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/login_session.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ed8f34bb8011273d3c24c8d7bbecf4ddf5ac846d39aff33a5fa57415cda9d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_all\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/subscription_store.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"73986de624b953de6e436f1d659c72981c92ade6580e98b3e1183c42b696778a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85adf5211b52a6cd49ffebc41a0a8a1aefac5a4dfb8ad286014b80ea634834f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cli_state\u0060 matches \u0060_\u0060 and answers \u0060{false, nil}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca6886bc19ac69aac7aeb9705560b0b9e44595a5c42b789d2c2683800671784"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_login\u0060 matches \u0060_\u0060 and answers \u0060\u0022claude auth login\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/claude_cli.ex"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a3b91d5d93f1593ef88a4bccfa25e5eac61d7c041d7b67f5411a1ccbde479a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060identify\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/copilot.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdaa013938dab91154066cb6a51884d9bf122f6d0177ff8a86e026ed8d3d52b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060version\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/copilot_cli.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf46e4928ec9b3cb185a5985b78f050c90fb4dae253c486b805498d2ce9113f2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060jwt_claims\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/openai_codex.ex"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cd6c1fd97df011cde5c427e81d982e95989278b24bdc2cb19d278adac5c360"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060account_from\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/qwen.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9603c644e317a265ae7ca3df840544d7c6b3bd8c1cd2d9184f2a6b743a70a47"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060account_from\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/auth/providers/xai.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a4121a8ad5c548c4bb30e33df061b0608628741810832f555f4b52a310f486"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060definitions\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agents/registry.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf5fd5c7dca856b5f1c60a31984b4d101e887b02083a7ba1a3f874a769745b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4b6a53075e77a424c0d22f09b25f454e8e745abf1caa62fdca83a7f04e9758"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060snapshots\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/active_skills.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd1b96129abf0ff5f602d1d75ce09a3b0c84ce4fa458b96ea4a50d5f637ba6f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060sticky\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/ask_user_mode.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacd47ed98650e5bc6c3a129a1ba8a700ebba12b25801f663f08e4064e6c57db"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060channel\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"55958d4db9cbf4b48488a72c38917cf2d8062a483732a60a6957ce43ca517aad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060override\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92e48ff2d4c0faf48970580db5eab4704d685d3ffe77bac935a89513804b206"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resolve\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fda8b7fc85a85714d1240b36b3b54e96ae4a216f5332e47a58f74bfd65a7ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060reason_for\u0060 rescues \u0060_\u0060 and answers \u0060\u0022unknown\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"32983492f694a1aaf039a8217c2125da8c6883621f659229960d53f86ad3c3af"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060parent_of\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/attendance.ex"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ef7d4b036092a1870814e49efe5351941447bdc3fc8781e6727f14f1876837"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/batch_cadence.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e8a61168a0c91db7323e9598d50b37c56d52347f34d82602e8ddbf7e737184"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_ledger_from_disk\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/budget.ex"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad54101a79e2f904a2f948a18a87296cdd45c78bd6de23bee98de91894a65b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_provider\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:default\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/budget.ex"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ecb83fc619838853f1c689f3d8c39f02b4fc5dbbc4f4439de05c6535837d4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060stop_epoch\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/cancellation.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8ca541847a8637180ce17d3b6563a2a58440e18cb8424beaefc4885ed64202"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060files_section\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcaa01316e65a57e440b8d09a52fa827c30530edda60f83a68e6811f110eb91"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060file_contents_section\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0991eda53cb72c20c3ad87ff76574247b45fbfdb350e374689935bb578175e54"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_read\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"557354701970b40b33dc871fddefb06f4620a6e0b6b9ac3aa41e8b08628a5cdf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060tasks_section\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b27f0f874ffe27bdf1da1590d644fd6be59e7eeef1bb8cd7c9facc5580a442a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060workspace_section\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd9d9a77ea165da2da6ee92e9de07dd7cd08129083dab4e49887355f4d7ce33"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_branch\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefd4ec578ab5c97a3f95ca0db4f0c746084bae76a89f5a2a9a6ea4b707254ee"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060skills_section\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compact_restore.ex"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7402c0a16a2db5a394828a0965dc19910e73d543625c8f7050c89f10d13e64b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060section_background_tasks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compaction_safety.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65374102ef3daba44728325937c586b27b9c66acf0412f2d62ce4c9ad63b50e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060section_todo_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compaction_safety.ex"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b947fa0c5cef3cbb023f35cc198fc2822196a168c3211fefa3cbc75fa5018026"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_run_list\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compaction_safety.ex"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"9684541836b86062b1e8855e6cb9b31b9fb38350a3f767faec85fc64935e7b55"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run_pipeline\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"34971a6b8f9ef723f08539591e5dded0ea5d3520b415c89b0aa02c32554ca05d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_previous_summary\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/compactor.ex"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3fb07cd77a1304785b05df5636041fd4a2f887fe8528ad66617f59fea51e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060tool_schema_tokens\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac84cb83019687f2c730fa736dfb7704843e844be4bf747dbee82e8a536ed99"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060commands_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b71b95747f8af3efc026440cff83cd712f7bf6c12f1a3f47e4607047fed992"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060personality_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"84126790d91c5eca1434bf3f0c9f084237012e4b3ae9d60e7875326510d99921"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060project_context_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"757143919a310dc63042706741fa79ddbc46580eeafcad639443d38414d326bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060project_instructions_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf8149b6980a9ce6055630fa4ee76d914914d012b4c325368d66ce878fbc38"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060path_from_args\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e083d0d28cfce9e5d94f56ab355893bacb2d3d918c5c1e560855ca7eef7bd7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060agent_roles_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"03794ff803cc959ad7f5154bfbfc9293169ab850919e98c4b3b7b9f858b65aef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060evictions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7a716a387f57100c78ccc792d75d47ce4790ede5611bfe668a169773f95c4f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060bootstrap_block\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"38798cbcc492370a2460b99e548a0dc5f6a1a570a1ece82850839d3b8acb0ae4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060recall_scored\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c959d008f94839854e10ccda383e24dc024cbbbcf0e3f81558b86ae17e3a22"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060memory_recall_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73c36d5e4ccb8398da1930a529c6df06ac6e112fea2486140cb943a1c90fe5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cwd_or_nil\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c965e88df295793789997a852f3a421ba8a88d9db1fc7e81d03fab6d7893773"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060episodic_block\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bea31be4f0884d3cee5cb30c2f29bc2e8716d7b46db111f4344becf49bdd333"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060workflow_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"209160b880262141b77230a67b3edd8315451dbe81049ee26edd98934a2f048d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060task_brief_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b85e6f7da8e200386179ec6a6448f361b9c1ec11581492ac49431dcade04403"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060task_state_block\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf60f60f0a0cf7c3d91b1b161062bf17a5f4256a6e80f50bb1a91df23c4037d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060existing_plan_draft\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0ff0dd96619c2f73344e9587f56805ac73337799d3e08a908a98afe98d0c45"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_list_active_names\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7644eb83904733f94be2c8f44f6b94bc36465f73906f505185f893c46eea8e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060environment_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"4834be9ec7bb32b91c87925d29a0097af90b7eb4305d145e091b292923197896"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_state_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5741d59d4e1be13363c06cbfe8ac5bd6c368210815cf51521cf694746792ab3c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ensure_git_cache_table\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a459939933106b822cd3df70a1b7ba65dfb6d3c9f1d4c64c7de5e3b2c00973f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060gather_git_info\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02bc8560c572907329a94705866b4fa6b8a60446bf70996563033e6d63f62b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060skills_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2198}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aab8e6913e59c4adb7bd198f55c83cc02530ddf63f576ea53372e5f19035a77"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060learned_skills_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d2fd6f4ec2fed3ff643ef2f416628af1550347202a12e89d227d8c8b9250d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060security_posture_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"678ee0e643d6091c8eea641a97d13de7ecffe6f5c30e0679bac40f4d84b1971e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060sandbox_environment_block\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context.ex"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d6282771fd1c52cbf852c37544b0d1fc25467b5c20fcf31718f27bba5433ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060discover\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7b9958d14e9ef4587d4390f03ea575a8df55df5dddda22c383b48c5db6d669"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060do_discover\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"71544ad6bbeca26c00ff1ac6be5396f4f6c9f66ca1a97aa96ac65d4dd6f66d41"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060search_dirs\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a034d40d66df306e318b6ac45d7e713f70c2f792cb0ff5ec60d935230e59e1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060find_git_root\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b84c8242bf8e31aba4ee09d9870800a047e753ee75964c6bcc17ac878c130bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_cursor_rules\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context_discovery.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa32b1eb5ee4283d37c6f62370aa77ffabdd3696ce9992711d51664d57bdcd81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/coordinator_mode.ex"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc1246f0494fb63a0fd026a384c41db7999b236183d2bd2ccc2efeb0fb01fbd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/cost_observations.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"128577b3ab7db7a05a06a200507f3e76fdabc868965a977a2aee25c099451de4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060await_prefetch\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e5b59947384da62edea1140ec843cd95e233c8ee41ba8f1575295ee9949ea0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_call\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cca3d700a66d9cdf1c4adb32c45ceb1e79b95b987ba48fb46ba12ddce7592ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"827494dd697d6575dabaf896f6b31d80d86c3807ca65940e29e3d9fd3877735c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060working_dir\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fast_path.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd895718ccabc1cd0315af0a8e2e9da7b2e8054283371cc074cb05c9681b988"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_diff\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b889686814f6f2feeb920812c15ef9f5bee4105bd454f8a068a369605de4ebd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060changed_files_git\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8a72dd598efd9e4a267825b3836730925829c4b81e2dbac0f0c2035528b3e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060running_count\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9658cb3c71f8bcc22c7ef8684467304c92ca009804dff710c83cafde0807d559"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060start_watcher\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a2e63678a7980e1a08db5daedb5dedc22a55985da927219b13e7d734a4a3cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060stop_children\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"146ac9f074aa2449b38a2ca88772a1442d400bd44234fe1044d4ee6de2045501"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060node_tokens\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"12605efb6228e9958ff56b20973336cd15784bc28534ad1c8c9addf40c29bd35"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_registry_get\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet.ex"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1b7001416f98194a519b7f22c32070d22967169e229b9db913204fe985ace6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060meta_posture\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet_resumer.ex"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bfc9dce6a1626d0dd3d0d58a4973623292902c4c78245afe63ab0bfc495ebc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060invoke_bool\u0060 rescues \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet_resumer.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"482b38dbcc5f6103adc5b72c39d4619d72198c52264182b95dcc84f51b8568c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060init\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks.ex"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f129963a16a92ef937ba22a5397fb2c73d96bb5865b2f5f5c43ee57a6d79bf3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060preview\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u2014\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df6b050e2a91049a4acb6bc4625b48081ced098b4807a332ef8f68b056223b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060resolve_text\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec718d9c116573549a6ee1b21d77b723f64a80cb32f63a81f0338296ab637523"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bundled\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2682ea956aceef7ee17a31acf7e02621c6f99aabc3f2db19c6cba7dd2bb785d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_text\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/jailbreak.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02c6ff9d966094f056d9baefdccd4ee7b71ede803a38e7b7a8796fe91e49b45"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_live_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0281341d0536dff667ea1fc56d97d9c5afed3ac73f9a3565f27e539ae24cd3a1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060latest_live_cost_per_task\u0060 rescues \u0060_\u0060 and answers \u0060{0.0, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e675399276b4a971e3fe879bec812ab34bb957d479d95d233c4bef78e9759cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_live_insert\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de323b4a4515a8d8b72fbc31a877e226700a8103d420da10138f5803a7f33a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060clear_live_key\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfa4091646e6a159b529b326a7ee70f60d141b7352914c217625b0fa20e95e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_messages\u0060 catches \u0060:exit, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"004365d949dea7f301257872de563cde512d6e00455bea59a4cfaf9dad66d006"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060descendant_session_ids\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"00efd17b5242e7399a15d48eb999ed9cd64d08920d9dade8fae1e8be50278ea9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060static_overhead_tokens\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e8966e54e2145e814280207537fd1e82774d021fa3f7527b0b6e04b975fd3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_persisted_messages\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop.ex"},"region":{"startLine":3309}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8c3d7583632b3bbd6f1beee1cc43815497da8586b0a9df64bf5c5a4b013406"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060from_text\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/one_line_summary.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb69822bcb5359e7532adfeeb46fd11030123c50d1236b54af6fb881e3579af"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5234ca1cb650715366fc6ec47ea50f4b72ff3c6e2a0583c5a95e28283437554"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060size\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce7966dcb9293427aed3c5e8f12e13f84f97a6679b808169bdd1142620c37e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_to_mode\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/permission_mode.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9176feca8e704580c84bb535bbbe84fbe2e20563eea044c366033586b5ff9258"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/persisted_result.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"85121c88e5ad20b9756a750534fee98652f02e33f0e368185ea7226427df95fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060get\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/plan_store.ex"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e53344f08af6489ea55803260b557a1ca1d9cb960b389f4fd8edb9d77ef529a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060windowed_rate\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdf95028ac401d3b6369947ab1ca781e2b02346d64166625f41a3b1d2d8f6f6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060windowed_cache_read\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/pricing.ex"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"109f9b5d875d457c268713ade41511b0767f571fbf2612509120e935262eebd7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060current_goal\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/progress_ledger.ex"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"da18f987d3326e6d730ef20a787fa0efc93ade139c197f949459b13651dffe84"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_and_render\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/project_instructions.ex"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b2856c51e7a780ea3dd9b4f2512d61ac2708548538bea99e83ceb798ba29d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_root\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/project_instructions.ex"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d389f1cad4c7aab4c4eb6e9f08c65181a6c7b303ed75d5eeef662f11d9943a4c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_file\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/prompt_overrides.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d59381081655deb7b0ae2382ddcf34fdb08681621ddebe92312913bf01dfd1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_files\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/prompt_overrides.ex"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e932f280c0d3e5a503b90789481192ab73ed5b5c558bc5b1eb3f4da4c78c3299"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060mtime\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/prompt_overrides.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"497758754ba7e222c4e77f10bdff3cf3cbc9ed40980a780c7b6c68d4dd168baa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/prompt_overrides.ex"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"3880f232450c32d8eb5b416d320ded3f92a0e27bd2ebc7b3b2aedfa0b796df2f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060collect_bg_completions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"137e6f872e00e624dcb1a7154d8048136d3126101fa893a7a6679c5cbad67f40"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060collect_subagent_completions\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c242ce8ff8fcdcb76a7aef15a7ab9d5f708c71099a49f10328c5f34e230b70"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060notify_gate\u0060 rescues \u0060_\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9962b26b613f0a854120c3ea101422355b4abc92fcb02e015faffde2c013d909"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060collect_skill_discovery\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"187d345ab52d2d0ea002fb3d933e7c1c4590541d00fbc337110b9078079de442"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060recent_query\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adc0118d2b2489b969b6a77e355c6a0fc2562902e5ad356eab8a76a4e1c5400"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060home_dir\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ae280727a90c3e55c1a916cbe6e00a7e3e10c9bdd0607d2327c750a8b29d13"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060skill_files_in_dir\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba75d9ff8636ea6fb833ed200736657182e5213cd12ebe4ca764c95ef81a425f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060owning_config_dir\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc0922bac18b5b8076a96c908d00c704a40e4c1a77b4a548c1147395a575d3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060skill_description\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"b191029d7e96d99c1a6a3049fc0b279f85d0f42860fd7d8fbaa4f6811a42f2ec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060collect_diagnostics\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d47178d7c21a6ca823502e0bf1ce92c8e49e99627b18fac792b159fb772c6b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060collect_self_correction\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f3118fb7a6e16c2f46b69b0ba66c726877de00225f6bd34f9c6d3661939563"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060collect_test_first_nudge\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07b18708a2e3587502960ca5c0ecf7e79ad9fa67fec6c1e887a90e42762cacf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060collect_batching_nudge\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c97c692dd4046c93c0de322a4681c8577b588900fe69e2e32910a461a54a21d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060claim\u0060 rescues \u0060_\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a975c934002b9630ccfa672bdd01d7acff5ecfba5cec0cc38b9ec4f363aab3fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060working_dir\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/reminders.ex"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fefc81d65f33347c56d1eeaf566da9ca054ad9ca3650088be78f60929b117ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060rewind_to\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/rewind.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6218da292b41f036abe8d1637b9bd76b3f5cab425ac1b889e68a2848c8b30f7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_current_head\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/rewind.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfb10986174df9547399fb4ae77d3cdab8ac53fd476b80256e840044fac710c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_get_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/rewind.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd2abd82e3ef0dc28d46ef8f18e515fb3df262816ab116100d18e616eb5f3a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060reconcile_stale_running\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"27342c6b47674f6deb891dba75f0a1ba2c889a9fe1857c44fc25f2071b6894bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060hostname\u0060 matches \u0060_\u0060 and answers \u0060\u0022unknown-host\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"6574b3556538cf4340b3c6ad6a31367231c20f4e7b0122f5d550b4a9092eddd7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060all_running_local\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1c61763f2ce28468950dc2d31117d1617f234679abef2a077c22414ca0d51a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_lease\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35cdaebcef848f96164df217392ca702b1c4819b56bd24c628f223fb1407476"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060proc_start_time\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"144b4daa7cd08ed64ede8019853a17c70bea7ecdae8f6575882435c2fae1c9a9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060children_of\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"615841b632e8ff517b3c230cc855119d4e5bc4ba18e0a040a39e77d054456e7d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060rehydrate_file\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b71bcf880cc5be90424ab3dd8c48b9310d9495c88231b950c892d44ef910db0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_term\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/run_store.ex"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ad288ab611933e97f78ab2457566a90cb5bb7cbd9f7fb93e3647f7d8907aae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060handle_call\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"663ace84698bc76eda351e462504b4d33f6e5d555f3cc0ecb440a18903b2f2d9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060register_event_triggers\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler.ex"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5e2d2e14a45c806ecd17ac16c55fce934ff95d9cdf1a0c189d9c1f77fdd28f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_provider\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scratchpad.ex"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef116bf750b3a1baf37ad400bf85f56ca57d7ddbf5a6943abd89b63cd016e59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060default_model\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scratchpad.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3cb69acb352c8baefc1b029877bf46f08454305293467067dcdf337c9217c4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_prompt_section\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/security_context.ex"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c792fafa41f92146b02fa86f00ae0217e2d627c2431dd2488d206e72cd1fbe32"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4e737b7567925fcec80e7d80e166e950ddc9a3dd4d9eccd748f7e214eb8ae1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060purge_older_than\u0060 matches \u0060{:error, :enoent}\u0060 and answers \u0060{:ok, 0}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1acd4aa4f83a97799879467268a5c214bfbba5d144fa89bdbf6712d8721d5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060configured_pins\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee4f74f2a4619bc6c93e288e3c99bab8f723e342a39a5408735e6d62f137f8f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_queue\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"098d76d7d287e0eb17af7a75799d9770a8d46f70276c531dc6d72084a5daab1e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_inbox\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c94bf12c3d8d01da7ee3783140cf6376fc7f3ecc017fcd88984c2a89a4ed29"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_events\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93bd442aa1eb4278e633dc510566282fd2bd5b2b26f8cd9d4849e78f40a8595"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060event_count\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d544d808d7483f05a36a3beb9b2b7fcc2773865599212e348580f5d3198a75b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060fast_forward\u0060 matches \u0060_\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d7910e345fca64a42e5c3c961c9eca31eab957a47d926f78280f3ed9ab8ca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060file_size\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89aa240073ddf0b610d9e265cf063300040b0545930d6cd190c3a047006388a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_cursor\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf779c59a9d793b70718027ccf705ca70000bf791d7074ff34472cde7ec991fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_json\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence.ex"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7c7f504556495be25aec874b3eda637ffef66f7d8c132b55f8ee15bd15f501"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_self_skills\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/skill_bootstrap.ex"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"194779cf8a6b706f198d32a31a438785a1bd91ba08a6b906d46f43a76042dc1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_evolved_skills\u0060 matches \u0060_\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/skill_evolution.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"183135b5dfee35c2b2528d6d644832f4febbbfccc333e68adb18e2455d3001fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060holders\u0060 catches \u0060:exit, _\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log what was caught or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/stay_awake.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e1169e4149f4ace81c4146da2576736bf1c4efa1d4d560854c458505f2ac46"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060detect_command\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/stay_awake.ex"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c16a71602091b12229e5e0d61672349fee395235a25f807cc5925951f21469"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060hydrate\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/step_snapshot.ex"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbe571c2754a486b366b456dce0f6a2c567ec25346258b570b9e37f06cdb5cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060context_block\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_brief.ex"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff4464860138cce6be1546fecf6b2df9171f6e135d1da98937956567e7ac35"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cache_get\u0060 rescues \u0060_\u0060 and answers \u0060:miss\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_brief.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"44175820cc942fef0f3e138509c6141bee6488aa9b79bcd99bcd4bd43d8d3237"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060drain\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_notifications.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ddbb715b8f3e168534658ca298cdf2730ab22d459e7c7277779742de9e585a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060count\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_notifications.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef71a3d2073426a8bdd568b076514ef9ec0a92c9bc830524e42f9e1abf47d0e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060mark_notified\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_notifications.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c64499d457fc39106b1a916738720372f191cf68826288cf4e7735892cdd4b3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_persisted\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c43f3ba065f21ce2334338af6666564c02b5b915638505e553f951106e05c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_datetime\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/task_tracker.ex"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed0545a8d69fdde8a9bc2c4e863f3918c3cf69f920697a60fc1783d69f0a23"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ollama_model_sizes\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tier.ex"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f8b4610743ba0754fd016cd502ed4c1852a3bf6674afd89c614ba13fc5564c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_get_ollama_tiers\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tier.ex"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"87495a42e1e365c300b069365167cde47768943fb6741e420fcd9039c672c282"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_tier_overrides\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tier.ex"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff8790f427b8eb52be10d539c65e8caae0595ed228ad65a8cc9dabe3c13a78c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060toml_max_chars\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c8cdcfa441f88157875209a22a38d27a1e08233e3da1f5bf53151c9c59255d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"030169184a5e020842b9a57a5efe0fec9ee9d247895019b2f23ae677d88abbaa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_instant\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"95406dc5ce4ef035c60c584c7f26ec713c6725ae0c9586335e70ec27bf736947"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_sessions\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"687a2e75cef948ee09b7dfedab0b7fa247696cd859f808a396e9581e433daf31"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060toml_retention_days\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e419823c9618e712c52880cff196fb8815de0ed1214200d33e5f3634261adb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060prune\u0060 matches \u0060{:error, _}\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/trajectory.ex"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a3e4a0b38de997572ce5ad5671f0b181f58de9df3d5eadf7bcf9ba39096419"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060latest\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/turn_trace.ex"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"47269175abba57f8e41c01a1bca2b91c27672515fa2bf32af63d021eceb5c4f9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060turns\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/turn_trace.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b320b85fb88bd531352c779f2d87a4f75690aa0acc9887699664f08db8ed9be6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"af01498133938b4299200e3d34e13702074856c1dbc8c19a7c8211f9768d4f90"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_worktree_branch\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/worktree.ex"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"072a5305ebac27a8dda3f1aa095110a1c400e152bb8f95740981d8c8a7260d17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_datetime\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/check.ex"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb931cdd4b7d917698163f59e5bd9a6e47da76d20d493f5f78fe5f808344de4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_datetime\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/tasks/tracker.ex"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb14ce0268c45339f98e9ef787479683bce38b54a7edc86b5b089266f128ae3b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_last_byte\u0060 matches \u0060_\u0060 and answers \u0060\u0022\\n\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/session_persistence/jsonl.ex"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9574bbe70dd912a4967d44a8453fcce2cbcee6c4e8bf842b50b2e31695cbb984"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060next_run\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/cron_presets.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"80558076b86c3080ae9df45b1a41625ce1bd63b802c8417930931eef9f51da53"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_all_jobs\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/scheduler/sqlite_store.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6687b5ab2b9fbcdd589746fbc73229e2227fbdf43b6b2e588af82a634c6675ee"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_segments\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/command_variants.ex"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffab5032ba8ce8f87298d98535d137f3ff6550ce81e66cc9f777799f9ac095f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060increment_blocks\u0060 rescues \u0060ArgumentError\u0060 and answers \u00601\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/guardian.ex"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d691d32f75ac25b7b2066661e9a5ee2cd759aa92ae9c98a71a77604ca0b4f7c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_lookup\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/guardian.ex"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee805bae81bc8343214e22c4ff4a677d89399701b1cc1175558628c5a1af7c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060workspace_roots\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/safety/path_policy.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"219190b5c9c37192f154caec7d321ad3d757f8678121001a9758b0bd57cc1edb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060recall\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/coordinator.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03c5eae33b8fbad86aa30d357f1d4137578ba20761f2c42d6a96cce2cd8ced1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060promote_group\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/coordinator.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cd1cccd5a74d871cbf2d1c04c345ed1f7d99a762c2f22468c7e98ecfea0fea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060lookup_session\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic.ex"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5e6773bd04a453fe5c92d12282d0e1dae0c3027a9ac33b53dd80d91181677b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060all_events\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10125d476a0cbd1cf8c0c7e6852cd29bec3e89f5677df27fb5acb7c58dd0d5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load_episodes\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1209edb389d414ae86d1ef51cb3ee7fb3229b3438f1296f617eb1ac2882bddc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_file\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3c6d34e4b0d82533da13a9bb6e3abc629c3af4d22a1612cedc21dc2117cb43"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cwd\u0060 rescues \u0060_\u0060 and answers \u0060\u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/episodic_store.ex"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21d1f98d8b379cf5d0822327a56e6f45f893669628ca90a10848ccca54005b8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_pattern_triples\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/knowledge_bridge.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"01958ac678d2fd20999ee6451b804bb3f7d18c9c2e9f217ad2a9901e631fb0d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060build_solution_triples\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/memory/knowledge_bridge.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea7cb36c9e3205b0528509214410641cd1bab34de89badfa5272507f4ba4643"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"257dec6c0bd7eb05cf8f460ec11744f5e7f39df93092e10348d6c924cd17ac1f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060coerce_instant\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1c8f4ac211435e0e65ca3dcd36db37c73f8666f5fee42f133f4ab58c1bdd5f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060peek_side_spend\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"437359a471490694d9d47f05b173205f21fcbd9db70fc93cdc54e0abe620c1e5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060take_side_spend\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c66e9804a7d0573b5090cf41c6272424f032e18a186b2d19f2dc413d12de266"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060descendants_spend\u0060 rescues \u0060_\u0060 and answers \u0060{0.0, [:walk_failed]}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e9e334e2ec6c7429d7d9df4251048a8299bec1700144773d4958abe5ae4117"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060provider_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060:default\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/accounting.ex"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4de2fd0b8f308f8b5ae13f75f039e1310b1d466a6219b3e22c288284e06eb2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060auto_resolve\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"19da78b3354dc8f9a83a2d1fa52532b8fcd0dce26fe7053be355b9f5ca770ba2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_provider\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77a0384032606d31cfd959bb46067a7324fd625d2154d539f56ec2b40f22f3e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060spent\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bef233e5b09284a3587a3fefdba397a342787ed2010c648cf25ae0fb40683ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060epoch\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/advisor.ex"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac36c4b0a1fbb3ebcf82f17aedbc2ad5d5614d5fedc1473d77af790a8b864c0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060restore_checkpoint\u0060 matches \u0060{:error, _}\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1f92e36adca74b94b63e328277acc736531fe8f5d6af464bd907a9e71dd511"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060list_rewind_checkpoints\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a01889e9f898e17212653f1a3a39ff65043a70e2d3a80242e8c42e96d82918"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_fs_head\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/checkpoint.ex"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"92634313379db93a1590833f2ad63f09fc87b66d7ddc9abd2a1203017050d705"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060persist_full_text\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/context_collapse.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970751af1067e4d18f9c631dc7bb7116c7e43a315111b1923470db6e2a257ee"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060persist\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/context_reduce.ex"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69b2aa8c130045c6357121eec14219130a3f040c5febb6d3694bec20bd26aec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_provider\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/context_window.ex"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e146df405a5283b04ee3448fc2c9a5329a963606adae5c030f4efe6be22e10"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060load\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/durable_log.ex"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3306c5e4502a2524fea5450010bcfe8a875be5880ee35743ebfeed3c4799ee32"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060criteria_block\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_prompt.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f6de7b84c49e6c7feb95fcd2576bb7d0ab0ff1e1dbe6d5ce61fe8fe1c0c352"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060work_summary\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4ea701a8aec40c39667bb6a099259366f3fce8d9a5d0b8ad7bebadefb0d6a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060acceptance_criteria\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be22e856fcf619ba7d499d59c47b90603e27f41330e7febcce682308207679a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b36c8d6ce16a65879a6eb95c38d59a5ab037cc318d62e99a5dee61dbda115f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060load_from_disk\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"8901e6650030159b9ee576cb41c5c6511cec644ec8bdeeee001016598a6060db"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_datetime\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_tracker.ex"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"49415ed04630101bed66e2d507206d05e4eaac6dff02a1c342f76d45b856a00c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060write_entries\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7077b954df98439b6e722451f8d759afb791a2f548908e4c0ff91ed9650e0dd2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060founding_contract\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4752c1e00d10d733d2deeba6dca7d36def9eed87b4ab93a5f3722fc913b09132"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060red_test_gap\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"9846d12f8bd5a3774c9a1f989c230a7d0e799c83efed5919363902d662a4d45b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060ledger_goal\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9216aee6de58feecc230656439804a7fe337a49ca26b8790e243f5b05adb3a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060git_diff_fallback\u0060 rescues \u0060_\u0060 and answers \u0060\u0022(git diff unavailable)\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/goal_verifier.ex"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"949cebd28b2736ca469ac4de957a823cd8eccb4ea3de690fea8f2098e73a86ea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cancel_watch_loop\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9b69aca0cc460d27853dd50ce762d018bc31b1b67d95507e4e5477e4f2c147"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060partial_text\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/llm_client.ex"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4a5321955a9228a14fbec36f9729c7b0424682ab3e2393f11c243596ca0f8b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060claim_debugging\u0060 rescues \u0060_\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/message_handler.ex"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"49357b0a2223357771e2a49eee410024e42d1eb742636a99e9adf3e8bca6aa34"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060fit_warning\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/model_swap.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dde585503430ed29f4418ce649e60f6828b1133fef46ba28c2bed9d3a32e855"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resolve_window\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/model_swap.ex"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"805dd78a166a80e5ab7613b192e8923a6a886e20c18813570084867731db8db7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_tasks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbead0d41d3764e089df6d82c71cd38e24521c08c6b78c35181f3aecea8dc9f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060elapsed_since_open\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7d2291bacfdeff5d3d685073a3a58abf8b25a13b7310da818b0d1577de6f1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060failure_count\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"300640e99e3be47599560f449c750c56986af6827fb024ad244fcc84a5390b04"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060record_failure\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/proactive_compaction.ex"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c1683de0f94cb4e83c2277c31b235483da115ab76ad935efb10e2bbe630baf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060run\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"391dbc1c5b3f0208406d96c67da6cdf7b83b8c370016afb2e6ce138d482d2438"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060do_iteration\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"707c8d8aa8a80336d650379acd8cfb71306b7d5d85484b9e0edfeb4f55439ce2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060redo_step_on\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6684b1b504ba4c668cb6d0ef92249bd0d2759c15c9738b9463b13f0008ef2a4e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060watchdog_escalate\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e092d8d22cc54d2521a70979295decc6738d0f42f720451df5e69eca55f3e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060inject_pending_agent_messages\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/react_loop.ex"},"region":{"startLine":4451}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8d27e8d8f22e3343bddf7b9d823f89fb552cc83cc4872b6fa0a88a59202741"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060insert\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/send_now.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"40644184cf270901d30d99a540b0db93ceb77f3bf345284298ebab982a35fefd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060insert_new\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/send_now.ex"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed055bb928ee9e4f68573af7928bd54e84a7e608818f301c8add783380ab1955"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060delete\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/send_now.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ec332db3c096f3f01fa745b5388417c4c2781abed1b821a89afd581a523d1f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ledger_adequacy_checks\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/spot_check_auditor.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cb34dea91efb21bbc48991c59e88cc81886a96e13eb46f2c862c34c86a52c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060drain\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/steer.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5956dfba6a345bd035e2867e3fcaae6cbc1c8b1ce3291da4919fb6338ba251"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060count\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/steer.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"df60ba5cc326f91e0d6374a3db1c6515d17504e5dc861abd13a4af019cc1f1e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060live_count\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/steer.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cb11cd65279478fbad71506e6d1f012df2f20c2bf019805855d35b5de2a778"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060context_utilization\u0060 rescues \u0060_\u0060 and answers \u00600.0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/telemetry.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfe19425928625cbb02b6cf4e715fde957d830c66414790bd63bdd177c82e24"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060provider_context_window\u0060 matches \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/telemetry.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"90afec35d33372d118ad0c9c933ecdd9bda1973f46439fb1168116de484ba14c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060normalize_provider\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/telemetry.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"90be5cf3ed450f9f3bd3dddaf288e1317b55f47b1b6bad38b4b2bb2e8dc64538"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060bump_count\u0060 rescues \u0060ArgumentError\u0060 and answers \u00601\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_arg_validator.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1088ec70b64849e5b7b7d5504c71c963c3a11e2bbecd90c2d5e0e51ca1eb8118"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060reset_count\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_arg_validator.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9f5bf24b3b67b204d66568dce0e3d2ef95f6664c749e20471e10481a77d9dd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060permission_diff\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bc0f1739ff4d7b0f6ee60b1d62253e48594e05afaa9cedecaf5256710e7693"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060permission_attribution\u0060 rescues \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ef594d1fd27a60955bde7072558eee757683ac39b6bf0df1da8a31ced7156c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get_nudge_count\u0060 rescues \u0060ArgumentError\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_executor.ex"},"region":{"startLine":2111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15113563d0c1492d29f5d82898f7fe03d599fb3457db482e4bd6882facab79f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060interrupt_partial_output\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_orchestrator.ex"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ba243af3449ba907aaf08b4fae7ab9a79ab88767e958d43a95177c8133bf0b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode_arguments\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/tool_orchestrator.ex"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7f8078c933b0ab46095bf6bd3492e7558c0199ef05ceb638d556191e654b41"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060failing_check_since_write\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd4d2893405899fc24d9ff2d7c8eea84be9b093ad8748bdee5732b8fa481888"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060change_scale\u0060 rescues \u0060_\u0060 and answers \u0060:large\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b2ea7dbafb5b3f6958c3d75250abb8da170dd213c50daa4ab77ea10d3fb118"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060discriminating_evidence\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"52594951cb61636d306bd6c8f5246b446eb8b828879a6228e526e0e89b782339"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060known_test_artifacts\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a6861616415ea0e37b39db621569cb66a94a144a3816249dd2eb42ee788aaf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060changed_source_files\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f8d1025adf3bb5d8d1a96a7a6f10ecc2f81f6792fa6286c6695fea59c4c483"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060get\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_evidence.ex"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"72db7e4f1cb8cb2abe41ba959901ccf128e3b3cbd974e30be64b9c161067ecec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060running_commands\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_gate.ex"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6137bdd9789e61e62de5904802c599c272d30b2d34bb077e01ee7294ab853f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060running_agents\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_gate.ex"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea44df1075ae998e950e5a75cd702ab7e58b7abd5895317e8597f0e52e4318e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060first_write_nudge\u0060 rescues \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/verification_gate.ex"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ee0acd80263d3b26daa6d443df121b6f0b81d42579d5af9249fab3d5cb0c86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060surprise_for\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/loop/regulation/surprise.ex"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4539056761d3f08e9c2c43b710598be43c4839fde382333e3250a43b2617d157"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060hooks_for_event\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/dispatch.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7c68a10d2e255286a9dad472dfc7fa4526b0810d35eb35321039c827d438c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060list_hooks\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/dispatch.ex"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea012fd341169a7b18e5d96c717f869764edbdc9cb32eb0a0eaf9b35318e18b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060metrics\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/dispatch.ex"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3e0dd398dfdc951733257dddf69e5776deb8a34f79c0762a4e288268bdbef2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060read_before_write\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/handlers.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16f71b6b866a3d01bcec78c750fa7c89bff6d881fcb4096ef0a9abc8841122e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060vault_auto_checkpoint\u0060 rescues \u0060_\u0060 and answers \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/handlers.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09dd71d5899943f098f031ecfb26572e0d8b8da8a7d09bf27ed3b439ea1e9ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060safe_existing_atom\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/http_hook.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9a72813406041a53fc3c403fa44fa57641c0bbb0920a820303541762db8622"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060legacy_event\u0060 rescues \u0060ArgumentError\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/shell_hook.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b103fe11c9b1a6a155c168593ea910d773fe869652e93fd976b1102b3078b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060spawn_hook\u0060 matches \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/hooks/shell_hook.ex"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ca701bddb41d9bdcebecb805d2b05510ebdbfd1eb1953590a653a66794183b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060read_entries\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet/journal.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8f353d50dfdf4174cc98879252ec3f237f38e446b49ec73c8fbd38bb6d048a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060unwatched_settings_files\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet/settings_coverage.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd892b97de2f1181384643fa702c71a49fd8179e532ba875c337247ec56b4d0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060cwd_root\u0060 rescues \u0060_\u0060 and answers \u0060\u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/fleet/settings_coverage.ex"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64585c9dede81759dd9f4e371d1fdcf8bb502ad7ff10ebee88aa09e996941ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060ledger\u0060 rescues \u0060_\u0060 and answers \u0060{%{}, []}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/optimal_system_agent/agent/context/world_state.ex"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8688fc2761587b54096c79fcb0d7e50803662ffc51d0f5563599b1829a83fa4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060batch_sizes\u0060 rescues \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.cadence.replay.ex"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd97de9205ef0d90537e913a7f42ea06dd5213347547aabece4421ce798f4ceb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060decode\u0060 matches \u0060_\u0060 and answers \u0060%{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.cadence.replay.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"55224e37b40c2052bf887150295c59ca0a30f8fe365dff45b59f19a1adeb1e8b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060write\u0060 matches \u0060_\u0060 and answers \u0060true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/osa.gen.tui_types.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c76a301047a1ee9bf204a4e3db576718907e4caf8757f646a52dc0b7e35b5a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060index\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/document_controller.ex"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae49fcf36a19c28902a77b4a14c16a495f9afee46aea22917ae5aa6c4219226"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060probe\u0060 matches \u0060{:error, _}\u0060 and answers \u0060{\u0022error\u0022, nil}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy_web/controllers/gateway_controller.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18e1a3da5e8ec2e5764223fd908588be3a29e986045b23f5c31efc09dce712b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060safe_read\u0060 matches \u0060_\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/workspaces.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"993a5231fc9147cd6dbd970f938741dbfeab7a29d74b71840b39cef880336368"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060parse_stream_json\u0060 matches \u0060_\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"canopy/backend/lib/canopy/adapters/claude_code.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c4c55a46c757f68be0ac60cf40ea66dddd69a984d6798838900986b114f3f0"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060term.contains(\u0022256color\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060term.contains(\u0022256color\u0022)\u0060 also satisfies \u0060term.contains(\u0022256\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":"priv/rust/tui/src/render/colors.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f43dcf677c76873dcb4aca4c5e7bc156fb7524222d32752f77a7dfaef56a76"}}],"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-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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-73","guid":"43703bfd-8c43-f15f-9cba-58e5f73ea7e9","name":"External Control of File Name or Path","shortDescription":{"text":"External Control of File Name or Path"},"helpUri":"https://cwe.mitre.org/data/definitions/73.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":153,"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."]}]}