{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"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":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"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":"AgentLoop.chat (cyclomatic 89): AgentLoop.chat has cyclomatic complexity 89 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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/core/toolshell/agent_loop.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4e7e7c24dedc4f01bb1ed6e6a37f4e48373e2124216f71d01c7ac6cc8599a9"}},{"ruleId":"D1","level":"warning","message":{"text":"reader.read_word (cyclomatic 79): reader.read_word has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c144a2fe1ad102d00e54a1a398e961301cd1095ccb328c47bdd21caca3dd8f5c"}},{"ruleId":"D1","level":"warning","message":{"text":"reader._read_xlsx (cyclomatic 68): reader._read_xlsx has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca4ef62ee8abd47b2581d81e6c584ebf618196b98608c3e1b9576c308d2f23"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiClient.chatStreamFull (cyclomatic 59): OpenAiClient.chatStreamFull has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda83ad15dd0bd0f04732ca2df23afbc6217dcfee321d85de2d737eee9ca39c7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatNotifier._handleEvent (cyclomatic 43): ChatNotifier._handleEvent has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"de057f576318095e4d58c8656c86436de5e51cd4c5f0a5cbf55017ee2c9ff1b2"}},{"ruleId":"D1","level":"warning","message":{"text":"VplCodeGenerator._generatePythonChain (cyclomatic 43): VplCodeGenerator._generatePythonChain has cyclomatic complexity 43 (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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"995106887346d6e55db8d64da3213e344b545a43db395d486186af8173410085"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatNotifier.sendMessage (cyclomatic 42): ChatNotifier.sendMessage has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4526caecf497e3f9bcb3e1c26a3aeadc4fa9cb709b1b3893d1a341a8f387514"}},{"ruleId":"D1","level":"warning","message":{"text":"_ModelCardDialogState.build (cyclomatic 41): _ModelCardDialogState.build has cyclomatic complexity 41 (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/features/models/model_cards_page.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d28f10b993ffd87ced1895ea0f8b19bee29e90e28a94e2b8e71c06a048c13b6"}},{"ruleId":"D1","level":"warning","message":{"text":"reader._read_xls (cyclomatic 41): reader._read_xls has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f39a676cf48872c1330cc4612ec3b4c32b256db85776615fcfa2996ea343a14"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentContextBuilder.build (cyclomatic 40): AgentContextBuilder.build has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d38abcb5e71011dab227991ecfb244d0a9d80833b5aa411514f3ef6994ce64c"}},{"ruleId":"D1","level":"warning","message":{"text":"writer.edit_word (cyclomatic 40): writer.edit_word has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"0794335af281a2ccb01f2926844860a328519a829ce70df0c6f98e2674853988"}},{"ruleId":"D1","level":"warning","message":{"text":"AutonomousLoop.run (cyclomatic 34): AutonomousLoop.run 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":"lib/core/toolshell/autonomous_loop.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b8700762804dd8c70d7b2bf03049c09e540334a679f2dac6703c674e4f9104"}},{"ruleId":"D1","level":"warning","message":{"text":"writer._replace_once (cyclomatic 33): writer._replace_once has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8334a1240c98ef3c90ee8f07716fa93e60d9a218e15244e2085fb0cf764e90f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactor._findRecentBoundary (cyclomatic 31): ContextCompactor._findRecentBoundary has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2779483124e19e8bd05b7703595b9dc08fc3b1c28b73a1406e7e04d052365971"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerSessionBuilder.build (cyclomatic 31): ServerSessionBuilder.build has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/server_session.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4a2cf8d8073b28750b9eb39332f11591525c5fdad8dcb485f1c6fd50728612"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.run (cyclomatic 31): Executor.run has cyclomatic complexity 31 (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/core/toolshell/executor.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f370a16eae241b197fdb706d5f695262a834416cbf1316cb0dad2ea97584b5b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._visualEvents (cyclomatic 30): AgentLoop._visualEvents has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5497c53ad27b60abe425fbaf7247e5ad6bc2cc4d243f1cad02978dffe2c184"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolPipeline._runParallel (cyclomatic 28): ToolPipeline._runParallel 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":"lib/core/agent/tool_pipeline.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"62042ae810c7c1841a0f27b6293cc264394090f77612ef9755a83e9567695910"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageAgentCapability._execute (cyclomatic 28): ImageAgentCapability._execute 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":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ee21de6a89f601250f955ade9989e2a8e86c3ed0075bfa65c8a6a49695f4b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageAgentService._geminiGenerate (cyclomatic 28): ImageAgentService._geminiGenerate 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":"lib/core/image/image_agent_service.dart"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe4819d8f7382225d3b1044854c937d636728c4cc36c340e7990e7fe7fb84a1"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.build (cyclomatic 28): MessageBubble.build 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":"lib/features/chat/widgets/message_bubble.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed6ccd26a2426b68ce4ba3e058922a8259962f0a14e0d9daad734e0e94043ac"}},{"ruleId":"D1","level":"warning","message":{"text":"_McpServerFormDialogState._applyJsonPayload (cyclomatic 28): _McpServerFormDialogState._applyJsonPayload has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7ec91fc61e01116256e3338172d421111703d0b2679bd90cdabeb53bdc7806"}},{"ruleId":"D1","level":"warning","message":{"text":"reader._render_sheet_md (cyclomatic 28): reader._render_sheet_md 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb935d3b56bdf88bd9ca37bb291efc71aa863193e72a6639a6cee652f180b1f"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactor._cleanOrphanedToolMessages (cyclomatic 27): ContextCompactor._cleanOrphanedToolMessages 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/core/agent/transformers/context_compactor.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc5d01ee2c737442a8ec5300a3d20e8c19f554212ef4da708c98d7e96771d57"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageAgentService._extractOpenAiChatImage (cyclomatic 27): ImageAgentService._extractOpenAiChatImage 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/core/image/image_agent_service.dart"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baa678f872ab13ab503d5e36069fbe052f501e14edb8e4ce858c5b4b03e37ce"}},{"ruleId":"D1","level":"warning","message":{"text":"writer.create_word (cyclomatic 27): writer.create_word 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4ccd13a65bb541e1eda35a8756d22e2c41da58a2b3e1a846b61c4d2ac95fb"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiAgentNotifier._friendlyError (cyclomatic 26): MultiAgentNotifier._friendlyError has cyclomatic complexity 26 (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/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3360ac86bd8eae683015968b64d774ebf18650a6b7e9b67fbb91d714555a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"reader._render_markdown (cyclomatic 26): reader._render_markdown has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fe3061e4683619393b8d238070e633942aef106d71219458a01a774b2fba2b"}},{"ruleId":"D1","level":"warning","message":{"text":"writer._add_markdown (cyclomatic 26): writer._add_markdown has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26786e87fb8f03134c92aca5da3f46454cf1908e3d936c6f7a478dc07055f34"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiClient.chat (cyclomatic 24): OpenAiClient.chat 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":"lib/core/llm/llm_client.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7a2fc15c190379075ef53bd37cc5adc1a323041506c2058e72f9402fe9ef95"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineServer._handleChat (cyclomatic 24): OnlineServer._handleChat 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":"lib/core/online_service/online_server.dart"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"568518bbe2fca979de28bfe58a37f8afdbee9a8ee352a1ab2dfd67243600e88e"}},{"ruleId":"D1","level":"warning","message":{"text":"reader._collect_images_from_paragraph (cyclomatic 24): reader._collect_images_from_paragraph 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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"33696679a9a0785360cf0e495f928831c86c3cf5bcc0e63f437ef16bc50a0ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"ocr_task.main (cyclomatic 24): ocr_task.main 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":"assets/scripts/paddle_ocr/ocr_task.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b59b95c1138c7bb613032b77cfdbcd2a67e166d0d3e79b8af02a6c4ae93c635"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineServer._handleWsMessage (cyclomatic 23): OnlineServer._handleWsMessage 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":"lib/core/online_service/online_server.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3cd4ce167707b0060d3f15597ba0fa56146ec314d29e04fb03ee9419db1d09"}},{"ruleId":"D1","level":"warning","message":{"text":"_ModelCardDialogState._testConnection (cyclomatic 23): _ModelCardDialogState._testConnection 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/features/models/model_cards_page.dart"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d0709cdfa1d43a6cd83d154e0df3f43e06750aaea3e86de1c5eb276490c8df"}},{"ruleId":"D1","level":"warning","message":{"text":"VplCodeGenerator._generateDartChain (cyclomatic 23): VplCodeGenerator._generateDartChain 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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eb19770e0580f569577b9d3a7b9a6ddf2bdb69448406ca4f1d89be4765d5f7"}},{"ruleId":"D1","level":"warning","message":{"text":"reader.read_excel (cyclomatic 23): reader.read_excel 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"2892e81b5df3fd8fa15a616eba8eb7f38cd6edcabb82485dd4f4ffd68b613245"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor._runJs (cyclomatic 22): Executor._runJs 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":"lib/core/toolshell/executor.dart"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b714d82cfb1170ba644ba405888790f2ce26f7fd8afa1ab39c5ef3a61e349676"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatNotifier._handleLoopEvent (cyclomatic 22): ChatNotifier._handleLoopEvent 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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"062cc4334113b2ca7fefc9bf1e07680c1e954f192715b431202b4e222eb4a2df"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiAgentNotifier._runAgentLoop (cyclomatic 22): MultiAgentNotifier._runAgentLoop has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6805ebd5feae23211c6ae440ab49f43dd28d074596dca48ce19d01c184cca3"}},{"ruleId":"D1","level":"warning","message":{"text":"writer._add_blocks (cyclomatic 22): writer._add_blocks 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b216b73e585a452849bfe568233a5c86d6c53e9832223babc2a8a4ecdff92ae"}},{"ruleId":"D1","level":"warning","message":{"text":"writer.file_operation (cyclomatic 22): writer.file_operation 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b9f709829e5121d57cb324d55493673e95109841586ed70aaeb77adad6212c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicClient._parseSse (cyclomatic 21): AnthropicClient._parseSse 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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc966d3b31020c5f71649e534c62edbae60d8b75970793e33832fb1d60aa233"}},{"ruleId":"D1","level":"warning","message":{"text":"McpConnectionsNotifier.connect (cyclomatic 21): McpConnectionsNotifier.connect 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":"lib/providers/mcp_provider.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b6e3b7c185cd0f52b7c18ef1cfe582420e218bff75b82bccc176203edc9d94"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolPipeline._targetKey (cyclomatic 20): ToolPipeline._targetKey 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/core/agent/tool_pipeline.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcea0de2d5f52b1fad50eb05b203f5bfdf7f349c66d8fcfa8abb112e1dc54ad9"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiClient._convertMessages (cyclomatic 20): GeminiClient._convertMessages 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":"lib/core/llm/gemini_client.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1063d4c28984a5a35bcab3ee18351aa4eb9e19eb9d55eafa1f614b4f519a5d"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiServer._handle (cyclomatic 20): ApiServer._handle 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":"lib/core/server/api_server.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e841296f95af92c48da5aea9bf34dbc7868264335585a8a6d1bb2c47aca28a85"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiServer._streamCompletion (cyclomatic 20): ApiServer._streamCompletion 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/core/server/api_server.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f94104b3975a1f40c450f918523826729bfc6944dc77e14e730693be98f048"}},{"ruleId":"D1","level":"warning","message":{"text":"reader.file_operation (cyclomatic 20): reader.file_operation 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca162c420d43e8e85b1d4a74f002adc54c8de42b42f0bbbc51a38eeee6d146cf"}},{"ruleId":"D1","level":"warning","message":{"text":"ScheduleHook._buildSummary (cyclomatic 19): ScheduleHook._buildSummary 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":"lib/core/agent/hooks/schedule_hook.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"973cac8af84aec55a0ac7913188bc602c907117db3ff4266ce2bb9521ac77a26"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactor.buildFallbackSummary (cyclomatic 19): ContextCompactor.buildFallbackSummary 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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c750153765d1604be854f45d8bc55d0049b637d8f6b506315f45d6534c49882d"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineServer._handleTestModel (cyclomatic 19): OnlineServer._handleTestModel 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":"lib/core/online_service/online_server.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"807ffd34ed7102b757ff95c2faf6c89e401df7f20e729060f371d6d9bae5c211"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProxy.convertMessages (cyclomatic 19): AnthropicProxy.convertMessages 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":"lib/core/server/anthropic_proxy.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"646a8c4530a22e55afa6c2ebf58f14b5a1048ddf8354bc44b6a9e99b44aca0d0"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatPageState._buildMessageList (cyclomatic 19): _ChatPageState._buildMessageList has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f6b9f6995db352bc942c3127d8a2ad196811bd8920779f9266d6c6fd89cbdc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentContextBuilder._loadTools (cyclomatic 18): AgentContextBuilder._loadTools 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/core/agent/agent_context.dart"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0488ded780599504aadcfbe6473a7aac5cd62aa54a85a63712b17b9902f224"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamableHttpTransport._parseStreamResponse (cyclomatic 18): StreamableHttpTransport._parseStreamResponse 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/core/mcp/transports/streamable_http_transport.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99f00725ff350cc8ca05415e6e4ab9b6dcac10dbd203dd8c9847db30c614c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ScheduleExecutor._update (cyclomatic 18): ScheduleExecutor._update 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/core/toolshell/schedule_executor.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f821249ca83131f5c85d61716c1b487bf7bb5deaabc72938bf39ffecf6d4ea4c"}},{"ruleId":"D1","level":"warning","message":{"text":"SubReadersOrchestrator.runSubtask (cyclomatic 18): SubReadersOrchestrator.runSubtask 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/core/toolshell/sub_readers_orchestrator.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ce363dbeb9b77215b89e8e54a24750b38aee7ec0f69799f3468632355b06a0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatNotifier.cancelResponse (cyclomatic 18): ChatNotifier.cancelResponse 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/features/chat/chat_provider.dart"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eda603b42898b5d27eb178c80317771a8a027188802961ffca35b14a469fb7e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicClient.chatStreamFull (cyclomatic 17): AnthropicClient.chatStreamFull 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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"33070578eb01191e7c2fa8f50a66676287fd121714e733ac51eb7f9c804eb774"}},{"ruleId":"D1","level":"warning","message":{"text":"ScheduleExecutor._addTask (cyclomatic 17): ScheduleExecutor._addTask 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":"lib/core/toolshell/schedule_executor.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"460c8a0a27aaa59487a92170efc9a1da33135407a310580a643a3fe3157d95b4"}},{"ruleId":"D1","level":"warning","message":{"text":"WorktreeManager.finish (cyclomatic 17): WorktreeManager.finish has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d82761bf84ed2bf37f2e329432c67dc1b94fc6d46dd123d5a3fc0f2d504fcd"}},{"ruleId":"D1","level":"warning","message":{"text":"_McpServerFormDialogState._extractPackageAndArgs (cyclomatic 17): _McpServerFormDialogState._extractPackageAndArgs 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":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a028783d80539d68bf65a5d8835f424cc10b639aac43c07174cb8fb179bf1d"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageAgentCapability._normalizeIds (cyclomatic 16): ImageAgentCapability._normalizeIds 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":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4171835967afeb93da176f1dd6ffef0b9c58c041556c2d58b72cda682ec6daff"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicSdkClient._parseStream (cyclomatic 16): AnthropicSdkClient._parseStream 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":"lib/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2949e934459d56dfbd71c551efacc88881e0528bc01ec4ad5780acf6ece10a"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiClient._parseSse (cyclomatic 16): GeminiClient._parseSse 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":"lib/core/llm/gemini_client.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ba6307ae50bf5476d486863b7b0a3d9af28a764bfc9884a1e8298b63211f04"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillRegistry.listProjectSkills (cyclomatic 16): SkillRegistry.listProjectSkills 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":"lib/core/skill/skill_registry.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e137b668fbef466fdc9a7d72f90eca8f588a84e42da47a5ff2dadfa44c1c21e8"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsService._speakVolcano (cyclomatic 16): TtsService._speakVolcano 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":"lib/core/tts/tts_service.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b728754a09f2250c41821614dfbc1341005b09a795308478734b547c276979e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatInputState.build (cyclomatic 16): _ChatInputState.build 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/features/chat/chat_page.dart"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d22b81451c58e0dd9b5b6645847419a33b61b09bfdc042314a9dad3fff975d"}},{"ruleId":"D1","level":"warning","message":{"text":"_LoopChip.build (cyclomatic 16): _LoopChip.build 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/features/chat/chat_page.dart"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c6332cf80889b59a541d43a1557c7a19fc768f885e27619231343526dc4603"}},{"ruleId":"D1","level":"warning","message":{"text":"_CommandCenterState._exportTimeline (cyclomatic 16): _CommandCenterState._exportTimeline 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":"lib/features/multi_agent/widgets/command_center.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"39528b31138d83e9441eff6a618cbe001444d8d7a32e974470f735f57f6f8610"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScreenshotEditorState._drawAction (cyclomatic 16): _ScreenshotEditorState._drawAction 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 shape REPEATS in the file: one other method here (_EditorPainter._paintAction) 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/shared/widgets/screenshot_editor.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd20a0813dd14cc0809fe8b48f215abf938913c57e0584b0eb09169639e4567"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorPainter._paintAction (cyclomatic 16): _EditorPainter._paintAction 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 shape REPEATS in the file: one other method here (_ScreenshotEditorState._drawAction) 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/shared/widgets/screenshot_editor.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"7372bb3d197863d98b3dfbcac448ab5bf92b09413dd9d0d38f9c6406856cfd33"}},{"ruleId":"D1","level":"warning","message":{"text":"_DockSplitViewState._onDividerDrag (cyclomatic 16): _DockSplitViewState._onDividerDrag 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":"packages/dock_panel/lib/src/widgets/dock_area.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7841056ff822130cbe563d00edfdb9047f8031ef0098e9cb47f3d7245e93a9da"}},{"ruleId":"D1","level":"warning","message":{"text":"volcano_tts.synthesize (cyclomatic 16): volcano_tts.synthesize 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":"assets/scripts/volcano_tts/volcano_tts.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa49758580b7fb1a677c937ed16b389deb00e75b84c9229a7b4a6cf72ae7c59a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.chat (cognitive 205): AgentLoop.chat has cognitive complexity 205 (threshold 15). Drivers by points: if/else 40 (100 pts), ternaries 10 (41 pts), loops 11 (29 pts), boolean chains 27, match/switch 1 (5 pts), error handling 1 (3 pts) (nesting depth added 115). 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/core/toolshell/agent_loop.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"03950f33d8c302f67567f816498e3d6d7cc3c3b43ab7f1a3c6b3181a93f76fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"reader.read_word (cognitive 168): reader.read_word has cognitive complexity 168 (threshold 15). Drivers by points: if/else 35 (85 pts), loops 15 (40 pts), boolean chains 21, ternaries 3 (15 pts), error handling 4 (7 pts) (nesting depth added 90). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15f4e5dc146f1b3c087d19d09ccac77304aa9acde99cf5e9fb4cf5562aace60"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._read_xlsx (cognitive 157): reader._read_xlsx has cognitive complexity 157 (threshold 15). Drivers by points: if/else 32 (97 pts), loops 10 (22 pts), boolean chains 16, error handling 7 (13 pts), ternaries 4 (9 pts) (nesting depth added 88). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f13e474fc607a190f63cbc5e5c34c6961ff311a46f5cb8692be677d4cbc6b5"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiClient.chatStreamFull (cognitive 149): OpenAiClient.chatStreamFull has cognitive complexity 149 (threshold 15). Drivers by points: if/else 28 (93 pts), ternaries 7 (21 pts), boolean chains 12, loops 3 (11 pts), error handling 4 (9 pts), match/switch 1 (3 pts) (nesting depth added 94). To reduce it, split the body into named stages: move each independent step or branch into 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/core/llm/llm_client.dart"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e377e4837d43eeeafdfc3eb3ccfe1e58586b75f6fe0c32b84e0e117eecb3e386"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._read_xls (cognitive 87): reader._read_xls has cognitive complexity 87 (threshold 15). Drivers by points: if/else 19 (48 pts), loops 11 (23 pts), boolean chains 7, error handling 4 (6 pts), ternaries 1 (3 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ec5373ea6c1adeaadce06a71a1c94d2ca4e33b5d951ced7f771fa241dc2631"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._visualEvents (cognitive 83): AgentLoop._visualEvents has cognitive complexity 83 (threshold 15). Drivers by points: if/else 15 (52 pts), loops 4 (16 pts), boolean chains 6, error handling 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e6e3cf21349e71331b297f68e143fbb2dfb7c79e65ce54214b206f4b2d31ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentService._extractOpenAiChatImage (cognitive 75): ImageAgentService._extractOpenAiChatImage has cognitive complexity 75 (threshold 15). Drivers by points: if/else 15 (56 pts), loops 3 (10 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 49). 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/core/image/image_agent_service.dart"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"41615091f50c310a6d8a4a2cb034079af169be0e1e99e165c076395bb9a92886"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatNotifier.sendMessage (cognitive 68): ChatNotifier.sendMessage has cognitive complexity 68 (threshold 15). Drivers by points: if/else 25 (38 pts), ternaries 7 (13 pts), error handling 4 (7 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7074905264436a7b0f40d1d9948371833bacfa2f7bebea9b58e8a1502bb31a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._findRecentBoundary (cognitive 66): ContextCompactor._findRecentBoundary has cognitive complexity 66 (threshold 15). Drivers by points: if/else 16 (45 pts), loops 8 (15 pts), boolean chains 5, ternaries 1 (nesting depth added 36). 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/core/agent/transformers/context_compactor.dart"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7007dc8064137a91f53f3c785ff5479708e81ae07bb243a2788c1187c1aa05c4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentContextBuilder.build (cognitive 62): AgentContextBuilder.build has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 11, error handling 3 (11 pts), loops 2, ternaries 2 (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":"lib/core/agent/agent_context.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae023a42615e289e163cda7980fc17c35953b0a21e5f07c231e6cddbb3760067"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineServer._handleChat (cognitive 60): OnlineServer._handleChat has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 3 (9 pts), ternaries 2 (8 pts), match/switch 1 (4 pts), error handling 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_server.dart"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ffd907a043a1a2b735a6f78aee4d911405a9145c01acd4c03ec3aeabc0a60a"}},{"ruleId":"D2","level":"warning","message":{"text":"McpConnectionsNotifier.connect (cognitive 60): McpConnectionsNotifier.connect has cognitive complexity 60 (threshold 15). Drivers by points: if/else 11 (30 pts), ternaries 6 (26 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/mcp_provider.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c81891215a8d2736c18ad4f67898617903f3ed7de432b2328604244df5907f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatNotifier._handleEvent (cognitive 58): ChatNotifier._handleEvent has cognitive complexity 58 (threshold 15). Drivers by points: ternaries 15 (32 pts), if/else 8 (17 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 29). 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/features/chat/chat_provider.dart"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e4052f738da19d275f61f0c8017fd1d48437bdaccec830a003c713d9651c7"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._add_markdown (cognitive 57): writer._add_markdown has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 5 (12 pts), boolean chains 5 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f69777bc3188457df1afa6c8b210d848f2a79912d656d04e6ede0e12f6c984"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentService._geminiGenerate (cognitive 56): ImageAgentService._geminiGenerate has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (35 pts), ternaries 4 (8 pts), boolean chains 6, loops 3 (6 pts), error handling 1 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed274b82b387e380efcecd606f7d33602129e7e618c85f8f8e1b969eec0c829f"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._replace_once (cognitive 55): writer._replace_once has cognitive complexity 55 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 6 (10 pts), boolean chains 6 (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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ebdb57d0bbc9fa03fb22562cafd4ae76234f0d559052cbc51f942859ccb955"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentCapability._execute (cognitive 52): ImageAgentCapability._execute has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (39 pts), ternaries 3 (5 pts), loops 3 (4 pts), boolean chains 3, error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f3c5b1fd9b2abef140dbdd1ef12ddbf7f38e1f3064e0c751aeee65cd66424"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerSessionBuilder.build (cognitive 52): ServerSessionBuilder.build has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 7, ternaries 3 (6 pts), error handling 1 (5 pts), loops 4 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/server_session.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3b51c98a86ed18baa8b1e8eda1a628b6bbf4bb28b463ba23f87512cd42be8c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ModelCardDialogState._testConnection (cognitive 48): _ModelCardDialogState._testConnection has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (40 pts), boolean chains 5, loops 1 (2 pts), error handling 1 (nesting depth added 22). 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/features/models/model_cards_page.dart"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1b082d3907185fc0084b9aaed2fa6911e4397df328f05264a5f1701b69be4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._cleanOrphanedToolMessages (cognitive 47): ContextCompactor._cleanOrphanedToolMessages has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 10, loops 4 (6 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"94750f11575c60422a10b89120de06bcc23ea47b1e2bdcb7e557242052667897"}},{"ruleId":"D2","level":"warning","message":{"text":"ocr_task.main (cognitive 46): ocr_task.main has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 4 (8 pts), ternaries 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/paddle_ocr/ocr_task.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e338c7ed84669a29f26863040085b62fbfd672eae58c8c58728edbd391919f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient._parseSse (cognitive 45): AnthropicClient._parseSse has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (34 pts), error handling 1 (3 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d8f64c0bd95f15592b3fe89bc330bc70531e1621b707644a7668f9c83832b3"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableHttpTransport._parseStreamResponse (cognitive 45): StreamableHttpTransport._parseStreamResponse has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (36 pts), error handling 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/transports/streamable_http_transport.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8609fcb6ba5b338d204c1364b877b0cc56d1a7b0ba254b46588ddd3498e938b"}},{"ruleId":"D2","level":"warning","message":{"text":"AutonomousLoop.run (cognitive 45): AutonomousLoop.run has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5, ternaries 1 (4 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/autonomous_loop.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adf783f9c1edbed39136c82aad89997040a0baf9b10a790575512536fad8c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ModelCardDialogState.build (cognitive 42): _ModelCardDialogState.build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 14, boolean chains 11 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/models/model_cards_page.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbffb3634a38861fa0b03c19a5c692bfdb75ff8fa099022864b8ad7205d3695"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolPipeline._runParallel (cognitive 39): ToolPipeline._runParallel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 8 (10 pts), boolean chains 2, ternaries 1 (2 pts), error handling 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":"lib/core/agent/tool_pipeline.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b097362e11bb0d71ca55c1ef2d0fefe354b9060668270f91e047f25883cfba93"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleExecutor._addTask (cognitive 39): ScheduleExecutor._addTask has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 4 (13 pts), boolean chains 3, ternaries 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/schedule_executor.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c28514afcf8223977f1df89a7656911abb1fa1b1677604ca7e2c4e5b8785586"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._collect_images_from_paragraph (cognitive 39): reader._collect_images_from_paragraph has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 5 (9 pts), boolean chains 6, error handling 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb567e9ec248bbe30e16fc8aed6e5968ab6e8e43edb6c6ff8e004d0aae576df2"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiClient._parseSse (cognitive 38): GeminiClient._parseSse has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 3 (6 pts), error handling 1 (3 pts), ternaries 2, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"558c5ad1586ebe0f2ae1d08b791c50f4336f6ad6850ee1fb6d8bdc2fb37a45a4"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProxy.convertMessages (cognitive 38): AnthropicProxy.convertMessages has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 2 (7 pts), loops 3 (6 pts), ternaries 1 (3 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":"lib/core/server/anthropic_proxy.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3318fc7cb99f84815fd2e2909507523bff6e6ffe6a1e33437d421e05d98e9d"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpServerFormDialogState._applyJsonPayload (cognitive 38): _McpServerFormDialogState._applyJsonPayload has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (24 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5493493e0bab860bb8f18fdaa558783d54a0fea1e19df534248144caf1717e"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._render_markdown (cognitive 38): reader._render_markdown has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 3 (11 pts), boolean chains 8, 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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a52e114f84df302810e33f0b5ea0892bfc6f564a16f0957e757d373e1e08d5a"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._add_blocks (cognitive 38): writer._add_blocks has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (28 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"aced3fc00ab7ec5eb6f271cd30d8fc0953a5df571d3cbb90dcbaeac6a8ccd1a2"}},{"ruleId":"D2","level":"warning","message":{"text":"writer.file_operation (cognitive 37): writer.file_operation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 6, error handling 1 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"20166ab3c76847b4d9ed62633f1bb75562cc79ee2fc50f7fc0707bd3c50b364f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatNotifier.cancelResponse (cognitive 36): ChatNotifier.cancelResponse has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 3 (6 pts), boolean chains 5, loops 1 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c78ea2ec3283ed7d1333a929aecd83cdfb464738d6494011f552989651cf96"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._render_sheet_md (cognitive 36): reader._render_sheet_md has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 11, loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"59af4b33273d3846c16c3b389b0b0814b2a625c17db0eb021f73eb9836e31113"}},{"ruleId":"D2","level":"warning","message":{"text":"writer.create_word (cognitive 36): writer.create_word has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2326f28be8ae33497499792c4eb791ca9ad9e85c0c47a99eeeede868a3a3378"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineServer._handleTestModel (cognitive 35): OnlineServer._handleTestModel has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (10 pts), boolean chains 4, error handling 2, match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_server.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5adf66ea687007df95e94e18cfefd335f10437a82893bde6cce3a7172dc3c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._runJs (cognitive 35): Executor._runJs has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 5 (9 pts), boolean chains 5, error handling 2 (3 pts), loops 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7650577364d79f86ceb1325f5a5a1a24fb480cde91c14f1fa045b7613de959"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.build (cognitive 35): MessageBubble.build has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (10 pts), if/else 8 (9 pts), loops 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/message_bubble.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edb7aff8d79931ef5f54fa909d2a69f3f20158824e820c370ebe82af5e4b793"}},{"ruleId":"D2","level":"warning","message":{"text":"writer.edit_word (cognitive 35): writer.edit_word has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 10, error handling 1, loops 1, ternaries 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"6991b1bacc525e36e8903f5e456392aa5781c13b52e0c95e5a6a9d7a79a19ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiClient.chat (cognitive 33): OpenAiClient.chat has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, ternaries 2 (6 pts), error handling 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8235d4ba61975e2178920539bd7277af4b89672c749a83bc342dbad613a011d"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillRegistry.listProjectSkills (cognitive 33): SkillRegistry.listProjectSkills has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (25 pts), error handling 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_registry.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05240014cad91b9119e8a5a828c62ccd51d829860fac4473305f10db1549941"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleExecutor._update (cognitive 33): ScheduleExecutor._update has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 4 (11 pts), boolean chains 3, ternaries 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/core/toolshell/schedule_executor.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0f3fc4b52bf8897e058e120bec471b962435e4bd60bb775c81f2474d568328"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiClient._convertMessages (cognitive 32): GeminiClient._convertMessages has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 6, loops 3 (5 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"27540661ef46869764ddc44182f3338a89a4d3a4676e59c1925aa2f80180d680"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentContextBuilder._loadTools (cognitive 31): AgentContextBuilder._loadTools has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 8 (13 pts), ternaries 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":"lib/core/agent/agent_context.dart"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"833fc01751fcc04e911fe36da74079cbbfef9f2e0d071c2e609c8eae791aaec9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatNotifier._handleLoopEvent (cognitive 31): ChatNotifier._handleLoopEvent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 3 (9 pts), error handling 1 (3 pts), loops 1 (2 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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef0106f65b6a17fca0e15be04dbf9fd4158d85a11e656a17a4c3dc1293dd870"}},{"ruleId":"D2","level":"warning","message":{"text":"VplCodeGenerator._generatePythonChain (cognitive 31): VplCodeGenerator._generatePythonChain has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e27fbc569b8531d0289bc110c3c767cfacee2515b74ffa353138e507dbe6b29"}},{"ruleId":"D2","level":"warning","message":{"text":"reader.file_operation (cognitive 30): reader.file_operation has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"0602abacca3d0472111379bd7c353f44e22f8c97315abb38cd4c45bba33bea89"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentCapability._normalizeIds (cognitive 29): ImageAgentCapability._normalizeIds has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (8 pts), boolean chains 2, error handling 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":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"13276270691134c6fa8ae2821555b0febd58ad191d671f4a5857e2ca6d9ca61e"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._findJsRuntime (cognitive 29): Executor._findJsRuntime has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 4 (9 pts), loops 2 (3 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa9d2159518c53b1bc25ce7b6a4c3dd42fdc07c595286ab45fb81b60bc8780d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor.buildFallbackSummary (cognitive 28): ContextCompactor.buildFallbackSummary has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 5 (9 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3373d0eb63058426414f3310ee1bd430d528446a0c99ad72090c0926c339a26d"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient.chatStreamFull (cognitive 28): AnthropicClient.chatStreamFull has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 7, error handling 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"747a71f0c8be186ac10c687b47eda71d33ff3c678681b082f17e5691e74d6265"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiServer._handle (cognitive 28): ApiServer._handle has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 9, error handling 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":"lib/core/server/api_server.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62b673d9a82b44657e9c9590f5421028930c08af8ebbe8c349c2cb8a775874a"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._findPython (cognitive 28): Executor._findPython has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 3 (7 pts), error handling 2 (3 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9f5bf2468cd376ef28866ca88038f999cda7928f22d3ac965e20835e48afc7"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsService._speakVolcano (cognitive 27): TtsService._speakVolcano has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 2 (4 pts), loops 2 (3 pts), boolean chains 2, ternaries 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":"lib/core/tts/tts_service.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb8261fea5f42771b5588cef83018e103c958dd22cf314b2dbd4ac9176463e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentContextBuilder._collectCapabilities (cognitive 26): AgentContextBuilder._collectCapabilities has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (9 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c1f5ea647f15123a069d7e0a93d571e0cd916d50d51692f3a743616cfbed1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerSessionBuilder.resolveModelCard (cognitive 26): ServerSessionBuilder.resolveModelCard has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 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":"lib/core/server/server_session.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"477a19e11c8535ea7ac2465941b392679e359eed1c292ef17c5f7ee2fb57242d"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillRouter._extractKeywords (cognitive 26): SkillRouter._extractKeywords has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (9 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_router.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f85de6541015c3eb894b3c696afb5415b1cdd5cc9855041cd4ae66b7828348"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidExecutor._install (cognitive 26): AndroidExecutor._install has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebca99683a8683c4c3f4e6610ea15d2e2a045af2f1eaf05065c34751d050aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._fixToolCallPairing (cognitive 25): AgentLoop._fixToolCallPairing has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fcbb3f537d07660c06b875b073128e893d2b38fea96317f725c589864cbb0a"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAgentNotifier._compressAndRoute (cognitive 25): MultiAgentNotifier._compressAndRoute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (7 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54cf466817a40165ec43ed6af2b57e896f81e6ffd1720c1c647d17cdbd33ff1"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAgentNotifier._friendlyError (cognitive 25): MultiAgentNotifier._friendlyError has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 12. 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/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ca8b593db595c13049276643a58e783f3fd04af2ca0831ab56967ede67f37c"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleHook._buildSummary (cognitive 24): ScheduleHook._buildSummary has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3 (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/core/agent/hooks/schedule_hook.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22679287712b071d09d1cb581cbb4a1a6effe10b8f0060636221dad8f8cf5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationExporter._exportWithFormat (cognitive 24): ConversationExporter._exportWithFormat has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 3 (4 pts), ternaries 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":"lib/core/export/conversation_exporter.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e591bca90e85b019c4b3b509f2ae07bb79c3c470d9a11d810a99977479440992"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationImageExporter.export (cognitive 24): ConversationImageExporter.export has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 1, error handling 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":"lib/core/export/conversation_image_exporter.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"742d3d160e95723c676730313ed28d490b0a612aa63909c23c3e3e4160bad801"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiClient.chatStream (cognitive 24): OpenAiClient.chatStream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 1 (4 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7546e15326c304d941956af818a37b71414d5ff453ed41d3897a9ff167595474"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemExecutor._androidDetails (cognitive 24): SystemExecutor._androidDetails has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), boolean chains 2, error handling 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/core/toolshell/system_executor.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac55e710def5f8b6acfd48ecd307feace997944cfb6f32b5161f9d768023248"}},{"ruleId":"D2","level":"warning","message":{"text":"reader.read_excel (cognitive 24): reader.read_excel has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 12. 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"9480460983150dbf8dc20c22c9fe91eb7ed7a630aba8954a401bc0bd7c48c20f"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._center_tables (cognitive 24): writer._center_tables has cognitive complexity 24 (threshold 15). Drivers by points: loops 5 (12 pts), error handling 2 (6 pts), if/else 3 (5 pts), boolean chains 1 (nesting depth added 13). 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"7836bce0868ebce0aad2684d40fa9b91de949c9993732bdc4e33705cb25143de"}},{"ruleId":"D2","level":"warning","message":{"text":"KbRecallHook.onBeforeUserMessage (cognitive 23): KbRecallHook.onBeforeUserMessage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), loops 2 (5 pts), error handling 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":"lib/core/agent/hooks/kb_recall_hook.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6967638121d5ecec30d987e95e0e0600184a404febe5844d9df01220df2e35cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentService._extractOpenAiImage (cognitive 23): ImageAgentService._extractOpenAiImage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c15eea3df5d8ed3a0d2c3269e6154134f258acf3a89ce6504890ff42bb80ceb"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient.chat (cognitive 23): AnthropicClient.chat has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, ternaries 1 (3 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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88f762b5261d206faff662a2e678d41774559562c118bfcfc0f1730b4858c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillRegistry.loadSkillTools (cognitive 23): SkillRegistry.loadSkillTools has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, loops 1 (2 pts), error handling 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":"lib/core/skill/skill_registry.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"76072a20f7ee9091943ebc1e6f528fa27dff84e91dd12cb0e62d856e8472b377"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillRegistry._loadSkillFromDir (cognitive 23): SkillRegistry._loadSkillFromDir has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_registry.dart"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5cdfb355a22ca8f1daf88351c86a162edbd8812a77729a410a7c882671fe48"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemExecutor._env (cognitive 23): SystemExecutor._env has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/system_executor.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"79605d8e7ac45ec41bf1d70016d348a19592e6181eb59047be66704522b1e22a"}},{"ruleId":"D2","level":"warning","message":{"text":"KbDocumentsNotifier.indexAllPending (cognitive 23): KbDocumentsNotifier.indexAllPending has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/kb_provider.dart"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b80fed449bec191569ee3c5846d69bfc69207b9027d14d54af7685b47209084"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationExporter.showExportMenu (cognitive 22): ConversationExporter.showExportMenu has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2, 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":"lib/core/export/conversation_exporter.dart"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d125e390110cd81be587ad920108744cf0a0adef1a49799ce5c915b77f82983e"}},{"ruleId":"D2","level":"warning","message":{"text":"VplCodeGenerator._generateDartChain (cognitive 22): VplCodeGenerator._generateDartChain has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11bb4d8c616a84820973ad41c745a6615c0715cf1e1aaa5e1bf469d5f4055a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsNotifier._migrateDirectoryWithProgress (cognitive 22): SettingsNotifier._migrateDirectoryWithProgress has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), error handling 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":"lib/providers/settings_provider.dart"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bae034987f8abbcd653827aa1b70a462d3ac9a3b8814d1bc01742abc7abd6da"}},{"ruleId":"D2","level":"warning","message":{"text":"reader._normalize_image (cognitive 22): reader._normalize_image has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (7 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"15113c975a4ed6d90ac9318949273d73c0d9a00ec465040b22c79f9a2e6880da"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemProbeHook._buildSummary (cognitive 21): SystemProbeHook._buildSummary has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/hooks/system_probe_hook.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d000cd6f6b49c81477b8d5c2eae5294b5057d31b881f598d255d157fcf146c"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicSdkClient._convertUserMessage (cognitive 21): AnthropicSdkClient._convertUserMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (nesting depth added 12). 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/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abe96bee80f5a10646ef0fa4d04d1700e2de3a9c2d6602fad6fb2bca2fc072d"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiServer._collectStream (cognitive 21): ApiServer._collectStream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 pts), error handling 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":"lib/core/server/api_server.dart"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc67c5f204cde7848a25110e093655e04b93490769c707630d8f86e6658090a"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._searchDart (cognitive 21): Executor._searchDart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (4 pts), error handling 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d202efc48c5013720e324895e2d79fc5b1b906294ea3127d389ae3544dd8f8fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._exec (cognitive 21): Executor._exec has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 6, error handling 3 (6 pts), ternaries 2 (5 pts), if/else 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":"lib/core/toolshell/executor.dart"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c82a275d6f334f91cdc64093b894e0a4e1be5dbf823164a0b00902874e5e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsPageBody.importZip (cognitive 21): SkillsPageBody.importZip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/skills/skills_page.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"540c3eba9575598c64f0163c12ee937282801baa50f243d57bbfab328b8ddab2"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._summarizeOnce (cognitive 20): ContextCompactor._summarizeOnce has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (7 pts), boolean chains 1, 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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"5168a07b9a21b3833d6450450f5f941803e1caf0519998c6dddcf2f73e6810d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAgentService._openAiGenerate (cognitive 20): ImageAgentService._openAiGenerate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (5 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b101ba53f1f9e8894da82983dfc0d4e395d7bae8190bbffa5ec19f8276ec551"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManager.recall (cognitive 20): MemoryManager.recall has cognitive complexity 20 (threshold 15). Drivers by points: error handling 5 (12 pts), if/else 4 (8 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":"lib/core/memory/memory_manager.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"742729121562e169e72228030f24260c29b782e8cd8ba5ae3cc7ce979d4f46e2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorktreeManager.finish (cognitive 20): WorktreeManager.finish has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 2 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adb310f52146378dad221c32aad92f24eedb946b35dc43641237fb13bc18eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatPageState._buildMessageList (cognitive 20): _ChatPageState._buildMessageList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 6 (7 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1a71c6230cbd48ce4f1e50548ff8b690c2b9f4c88767b1d5ff35fc5ffc7055"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpServerFormDialogState._extractPackageAndArgs (cognitive 20): _McpServerFormDialogState._extractPackageAndArgs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9 (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/features/mcp/mcp_page.dart"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb1f865880c83120aa67b372d6dea9f1051775603ea1b76180b7b420e42ae6b"}},{"ruleId":"D2","level":"warning","message":{"text":"_EmbeddingEditorDialogState._testConnection (cognitive 20): _EmbeddingEditorDialogState._testConnection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/settings/widgets/embedding_editor_dialog.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc67e504943876bfa8fdeb15d825efdb01ce39ea39e8d06911c3fb62b68c80e"}},{"ruleId":"D2","level":"warning","message":{"text":"doc_parse_task.main (cognitive 20): doc_parse_task.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 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":"assets/scripts/paddle_ocr/doc_parse_task.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c696d7b224f65729252252a445be9ed6b5a9a6e1019469f0acac1f9ad6dd751"}},{"ruleId":"D2","level":"warning","message":{"text":"volcano_tts.synthesize (cognitive 20): volcano_tts.synthesize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 4 (5 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/volcano_tts/volcano_tts.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8484c54e5bf45705da0401f89f10703c1e2ceac3411bf7df65dde05ab3a3f899"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManager._supersedeSimilar (cognitive 19): MemoryManager._supersedeSimilar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (5 pts), loops 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8396287317d669768cf8ecf6f24815464a79d7909efc6c19dc8a286c0db788e8"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantService._cleanWalLocks (cognitive 19): QdrantService._cleanWalLocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (5 pts), error handling 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":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1fc0111ef20c590ad045c3b2279293aafc3cefe8a81ddf1082fabbdd5270bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleExecutor._archive (cognitive 19): ScheduleExecutor._archive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3, boolean chains 1, ternaries 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":"lib/core/toolshell/schedule_executor.dart"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a1ab7b7815c618855a7d1853494ec7c50da286efdfbd6f1f196ccde2c2cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"_ImageGenSettingsState._testConnection (cognitive 19): _ImageGenSettingsState._testConnection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2, ternaries 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":"lib/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"34439bf899c3c395579116c44137424db6ac31af6beb1c9fbe5d262c42627bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"_PaddleOcrUIState._recognize (cognitive 19): _PaddleOcrUIState._recognize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, error handling 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":"lib/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff240e5cd4d8230a99c0f59140714a2be8e004ed8d73fc0c28b03aa39d671dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._replace_text (cognitive 19): writer._replace_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4774ce48c285c2ead1da4b8138b3a12ba5fee15c5e22c26932a7ea0b89bff7"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._compressLargeToolResults (cognitive 18): ContextCompactor._compressLargeToolResults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (4 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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1cf67bfd87d1d667f7f8fc3c87e0862c27ee2354be2c9f2cc83a18a73b54c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient._convertAssistantContent (cognitive 18): AnthropicClient._convertAssistantContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f12986829d674fd837c27b3f7f01e7c1c50828f7f7e19a2d8d21f8ff65952a8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicSdkClient._parseStream (cognitive 18): AnthropicSdkClient._parseStream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"400074dc7736563ea86da7e7f6941a1960daa62083809e54c56410c68e342a39"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiClient._convertAssistantParts (cognitive 18): GeminiClient._convertAssistantParts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 1 (4 pts), loops 1 (2 pts), boolean chains 1, ternaries 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/core/llm/gemini_client.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f28e2af4de0367dddf64f4abbbf580e67db164898c2793e69fb523c1719f19a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._runToolSafely (cognitive 18): AgentLoop._runToolSafely has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 2 (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":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"1292c80c4980263b5d1ac4a8f1fc03aa666a0e79ffab556f5750f989dad3180a"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._buildEnvironment (cognitive 18): Executor._buildEnvironment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 2, 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":"lib/core/toolshell/executor.dart"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a5fc43743126ea8b72c701b22b2143209531396d023f3a5648211aa426cd5d"}},{"ruleId":"D2","level":"warning","message":{"text":"_SlashCommandButton.build (cognitive 18): _SlashCommandButton.build has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (14 pts), if/else 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c7ccf1bf9ab4d5571b0ea736782169228307f15be63c1b6375e92e09afed21"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatNotifier.regenerateMessage (cognitive 18): ChatNotifier.regenerateMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbad3a71324fe1432dd29f0d9740e1e451612fed18966ffd777f929ce73e7b62"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAgentNotifier._loadToolsForAgent (cognitive 18): MultiAgentNotifier._loadToolsForAgent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (5 pts), match/switch 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"f575e84e84588c01eb86fef5ecc0e026e65ffc24c39e6cceb47af642a4e0ca09"}},{"ruleId":"D2","level":"warning","message":{"text":"_FormulaOcrUIState._exportWord (cognitive 18): _FormulaOcrUIState._exportWord has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, error handling 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62cc724d52b901ddc7fcf3b49ebed5a7d8be38c2c228fb299536a03e9d8dda6"}},{"ruleId":"D2","level":"warning","message":{"text":"_PaddleOcrUIState._exportWord (cognitive 18): _PaddleOcrUIState._exportWord has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, error handling 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":"lib/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a608a835661499ba48b1d658bfc116e4f4d3e59845a93be654acfd26bfabe413"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._delete_image (cognitive 18): writer._delete_image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ab782b824c62997d4fb283eafd5a49f9893a2ef7890c03d413822b5f3c0732"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._estimateTokens (cognitive 17): ContextCompactor._estimateTokens has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea40ba70e39acd02ddc439cefa82bc18d942906ccaaf2e4e8c0bfacee0b009"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiClient._convertUserParts (cognitive 17): GeminiClient._convertUserParts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (2 pts), ternaries 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":"lib/core/llm/gemini_client.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1db3679a652d3f51e1f6edb1448b3afbff321b14aafc40128bab360339ffbf"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._estimateTokens (cognitive 17): AgentLoop._estimateTokens has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14bd1bbb04e8c4358d22ff7b90581b9b39bfe8a14eadbb3f6d05dc40d5fef77"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolProgressTracker.record (cognitive 17): ToolProgressTracker.record has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/budget.dart"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b04742cdf8a47106f5da6acb4a92fd27fd6a583dd23bdb083f42a708ab22079"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.run (cognitive 17): Executor.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), boolean chains 1, error handling 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":"lib/core/toolshell/executor.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6157472426358722f031df97a2e9a11e632eb7cd666a1c317b9c304f08c7e0a6"}},{"ruleId":"D2","level":"warning","message":{"text":"SubReadersOrchestrator._parsePlan (cognitive 17): SubReadersOrchestrator._parsePlan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 1 (3 pts), boolean chains 2, loops 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":"lib/core/toolshell/sub_readers_orchestrator.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaed44f5e032c4dc8d59afc8e07a66f6a5386548fdf688726ab1bf466c5fb8a"}},{"ruleId":"D2","level":"warning","message":{"text":"_CommandCenterState._exportTimeline (cognitive 17): _CommandCenterState._exportTimeline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (6 pts), match/switch 1 (2 pts), error handling 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":"lib/features/multi_agent/widgets/command_center.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1447332fdd7dcdcceb6524b615e585dc7437434f33fe94685da4a86cc6cd3863"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScreenshotEditorState._drawAction (cognitive 17): _ScreenshotEditorState._drawAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (_EditorPainter._paintAction) 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/shared/widgets/screenshot_editor.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5dda3fdb2ee97a79938c88f852d13fdba9d0e82db2d3759c366899d6867dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPainter._paintAction (cognitive 17): _EditorPainter._paintAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (_ScreenshotEditorState._drawAction) 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/shared/widgets/screenshot_editor.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5f492d95c91d6fbed55ca122a9dbfd7be3f502d8a3e3d29f4570bc1c3b21a9"}},{"ruleId":"D2","level":"warning","message":{"text":"_DockSplitViewState._onDividerDrag (cognitive 17): _DockSplitViewState._onDividerDrag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, loops 2 (4 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/dock_panel/lib/src/widgets/dock_area.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe121e7fd3df2a9664ea809955a2d67d79f81dd23c33e2dea0e52d2f2c5dd26"}},{"ruleId":"D2","level":"warning","message":{"text":"_DockSplitViewState.build (cognitive 17): _DockSplitViewState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/dock_panel/lib/src/widgets/dock_area.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7607d9e093ce8b5d04414f6ae4340d4124ed7479cb416caea0cf90b89a1c0ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._sinkToMemory (cognitive 16): ContextCompactor._sinkToMemory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"9346ff1a48579316a0674c675f3d4a7f0c3c2197a4cd3b5600a8bf755c6dcc9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactor._summarizeInChunks (cognitive 16): ContextCompactor._summarizeInChunks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 2 (6 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51cf06a4bb87f4bccace472685a9ff64cd0f79751d5d8c9c7fa28bd46db0500"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient._convertMessages (cognitive 16): AnthropicClient._convertMessages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 5, match/switch 1 (2 pts), loops 1, ternaries 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/core/llm/anthropic_client.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91f4b8d22178f68bbd6b0033c7f17cf34b90b2a7bc92a2c6c667d4d8b2b4705"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableHttpTransport.sendRequest (cognitive 16): StreamableHttpTransport.sendRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, error handling 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":"lib/core/mcp/transports/streamable_http_transport.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af1d834ac4e302d6a9e5e88d45cf982ee0b8ad1ab58ce38d081f830339ac8b0"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiServer._streamCompletion (cognitive 16): ApiServer._streamCompletion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 1 (3 pts), loops 1 (2 pts), error handling 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":"lib/core/server/api_server.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4025a3bc0c0276c0adc8ec15121e0ef2b163412226bcb1a7dfd2f5401dc9547b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillInjector.inject (cognitive 16): SkillInjector.inject has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_injector.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c595395882becddbed56fdeacfd15efcc7ed28784172368a920c209628b7994"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._validateToolCallPairing (cognitive 16): AgentLoop._validateToolCallPairing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9af256f9a25ba6699d81fd9b8ef3c453fdd6d21be27310471a46277b4e8c48d"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidExecutor._tap (cognitive 16): AndroidExecutor._tap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 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":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e4bcc6f825cbd684c6d5ce83444090772ac7e01d9bb9f6ce0c53841d051c72"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolProgressTracker._walkForArtifacts (cognitive 16): ToolProgressTracker._walkForArtifacts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/budget.dart"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd20b8de90abbd513625c2879c7d9b9fe9f6bc0425afbef11e4584269ce9472"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._runPython (cognitive 16): Executor._runPython has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (6 pts), boolean chains 4, error handling 2 (3 pts), if/else 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/core/toolshell/executor.dart"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"9080c3c686acddc34c0bfbff578d46c57a91ed5b8d870466d58df5af47bb3118"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._runOffice (cognitive 16): Executor._runOffice has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), error handling 2 (4 pts), if/else 4, 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/core/toolshell/executor.dart"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"482e204d1e2becd4643a996201dbaaf0b4c90a4dfdd86e0daba70de1a8b4c118"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._memStore (cognitive 16): Executor._memStore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, error handling 1, ternaries 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":"lib/core/toolshell/executor.dart"},"region":{"startLine":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"71683e0f285f13f8a58f985ae3f0959746623fa5150920558b73e36db88295d0"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatInputState.build (cognitive 16): _ChatInputState.build has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, ternaries 6, if/else 3 (4 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/features/chat/chat_page.dart"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6bbebf0c14463792a60f4c63990d3970c8972f8413caff497d44ce980204fe"}},{"ruleId":"D2","level":"warning","message":{"text":"_LoopChip.build (cognitive 16): _LoopChip.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 5, if/else 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":"lib/features/chat/chat_page.dart"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4e975d04befcc72e7f6c064e5a1b42f14553709da9a84e1f9b0f4dcc640b17"}},{"ruleId":"D2","level":"warning","message":{"text":"_FlowchartEditorPageState._exportImage (cognitive 16): _FlowchartEditorPageState._exportImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), 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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"debd320f29023dc009a44d6f9baaeabddf9283935d5ac02d63916131a165a990"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.main (cognitive 16): cli.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 1, loops 1, ternaries 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":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"644c58052b293e866498c0b3fc11803b712c13879e889738142b9e8f8f9f7ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.main (cognitive 16): cli.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 1, loops 1, ternaries 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":"assets/office_engine/word/word_engine/cli.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23a37bcd6bf61b4a010d745a2e1ae613dd8b86b9a3a20b409986c2e3def2b1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/chat_page.dart: FileTooLong \u2014 2274 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1774 over it, 4.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/features/chat/chat_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"116c0c35e5cf02c368a769cd839758e01985c956e2bb3e304f9a20585c54e602"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatNotifier: ClassTooLong \u2014 1329 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 929 over it, 3.32\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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb90d90c03bb277593f9fd3c02eee9acbce3e3f6ff7018bcffc5f3df4241e885"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentLoop.chat: MethodTooLong \u2014 chat runs 320 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 220 over it, 3.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"751df0f35a8e3c1fbaa09c4652779f90853a74c29828e54a12e6f5c391a99cd3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/chat_provider.dart: FileTooLong \u2014 1555 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ChatNotifier (311-2431). The bar is 500 significant lines; this is 1055 over it, 3.11\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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"395e786f0bad4ae0af5330a7daa040eb5a69b26ba0bbe7b6d16e4d36b97b6b64"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Executor: ClassTooLong \u2014 1154 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 754 over it, 2.89\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":"lib/core/toolshell/executor.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e116ac2db0884b4b965da05e479a48e94f8b20e66a430c594b785a7cdfab34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ModelCardDialogState.build: MethodTooLong \u2014 build runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\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":"lib/features/models/model_cards_page.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c320a69f83b34ce65865d6f4cf05665b547f6940100bc5a8b46c3e6344461d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatNotifier._handleEvent: MethodTooLong \u2014 _handleEvent runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"05766fc8d5bc91883a4d592e6f0e08e8406196588a27f7a6f1055967d9443851"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/mcp_page.dart: FileTooLong \u2014 1185 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: _McpServerFormDialogState (453-1600). The bar is 500 significant lines; this is 685 over it, 2.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":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be9b7764b6bdc21f56b28abd25f490c6bf190595e080074a538e0319990c72f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LastTwilightTheme.buildDark: MethodTooLong \u2014 buildDark runs 236 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/theme/independent_themes/last_twilight_theme.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a050ec66aa443747ea8efb51efc4af40fe1c1e226c12f0f0cefe5b3812f2a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: toolshell/executor.dart: FileTooLong \u2014 1179 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Executor (23-1775). The bar is 500 significant lines; this is 679 over it, 2.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1578e93ea1ee5a718c9d28c6770869ae5a3a5b7e72b7e7c40239bf3b99473dd7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VplCodeGenerator._generatePythonChain: MethodTooLong \u2014 _generatePythonChain runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1e2f679119f604d829f9c0f4a5964ddfbaa4031cc121b8080025149c92bfee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _PetPageState: ClassTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 490 over it, 2.23\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":"lib/features/pet/pet_page.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b55bc735f05c64ee645b06e53f07eb8f1aaea7d0ef878eae7b106098c1a5b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentContextBuilder.build: MethodTooLong \u2014 build runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8d717294a0af77498c4696752e94b0cb186faa59f5add2c93a117e4603ffb8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContextCompactor: ClassTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 387 over it, 1.97\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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad3c3b23b8baf6ef2cf7a038fa28502bc5f5efa450bcc4bebcf05403bbe7745"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _McpServerFormDialogState: ClassTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 381 over it, 1.95\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":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f66bac704717a27e750a1a47ecdefe20027b6da4531c2f1b2950a12d74306ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnlineServer: ClassTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 378 over it, 1.95\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":"lib/core/online_service/online_server.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5472050f354994070226548b5bc52572ff69ef06a16f804bbce6dc5216e4531b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: word_engine/writer.py: FileTooLong \u2014 969 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 469 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c841103f7a5f044606cac59dc9a4d4d1c249432432770c679b0c3f898831081"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: excel_engine/reader.py: FileTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 410 over it, 1.82\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a1e5f9ac95877acf46b71748168224b055d443caa7322b59020d1eb19cfab6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ApiServer: ClassTooLong \u2014 727 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 327 over it, 1.82\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":"lib/core/server/api_server.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8300b7b890e95c405239063493eff21fe8e70c7eb05161821002519f4d8fa853"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pet/pet_page.dart: FileTooLong \u2014 906 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _PetPageState (23-1286). The bar is 500 significant lines; this is 406 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":"lib/features/pet/pet_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833b6e2ed4b509eeb95fe8d104c0c1e431bd648cb7f71620bf5b624de17466aa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentContextBuilder: ClassTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 300 over it, 1.75\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":"lib/core/agent/agent_context.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4a3a8b2ab3ba4b6792acbf5a66e1334f546dd6553c5506d0700de1692ca388"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAssets: ClassTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 283 over it, 1.71\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":"lib/core/online_service/web_assets.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49bbec1a982184704b115460dd30c4e9379dcfdbc5e12b87a1db42fb7bee97c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AutonomousLoop.run: MethodTooLong \u2014 run runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"lib/core/toolshell/autonomous_loop.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4244b7e8c83d8fb5176f229c6baedb6187445c8eddedbf055c021482f929c77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ImageGenUIState.build: MethodTooLong \u2014 build runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"lib/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf8e9d64390a34bc9dd1127c611c5753368ea0c49fb24a16aa5cbb379d6adec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssets.indexHtml: MethodTooLong \u2014 indexHtml runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"lib/core/online_service/web_assets.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbe9dc5e10613aa55df49abfdc7953f1ca23e8b2090be98175611201e1382bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/agent_context.dart: FileTooLong \u2014 823 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: AgentContextBuilder (171-1325). The bar is 500 significant lines; this is 323 over it, 1.65\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":"lib/core/agent/agent_context.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2625439ed63d1ffaa8bd929434bf57ff4fdac31235f881b21ebc02f7df485be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: online_service/online_server.dart: FileTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: OnlineServer (24-1172). The bar is 500 significant lines; this is 322 over it, 1.64\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":"lib/core/online_service/online_server.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6baecaf8c2f0e808e51127f2bf788f6cd563ec43b3dd5c65ea08fbb4874e34d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatNotifier.sendMessage: MethodTooLong \u2014 sendMessage runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed751e3f580771e891af13b8c0c727b43cd1f5042954a670a7b9ccb62d5e1c67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/message_bubble.dart: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/message_bubble.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f02f2abe14b318490bda106c10e8fec7f7683c6f0d11b2bc8a88ef6ed09cb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: toolshell/budget.dart: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 298 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/core/toolshell/budget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"342862bb65b271f49d01cd8d2d99b578d216745bbca4e63eba6cfe58850e9102"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageAgentService: ClassTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 237 over it, 1.59\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":"lib/core/image/image_agent_service.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa4d76d036c110d904e240e76f45287107c54188eed4daa67eca474c395cf41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/context_compactor.dart: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ContextCompactor (21-1574). The bar is 500 significant lines; this is 295 over it, 1.59\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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87edd3e11b7ec2ce4b19a5602812bded148db4a6a2109f231a79b90dc1f2741"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatabaseHelper._createTables: MethodTooLong \u2014 _createTables runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"lib/core/db/database.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d709de807790d27602de77abc08fe777cb9e42c4229d5e06cabd8e9cd6dafae1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PetPageState._buildSettings: MethodTooLong \u2014 _buildSettings runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"lib/features/pet/pet_page.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"73358481d533b2711a1848dcccc5cf66739ded10b6b9c5bc9467d41c1bf7c53c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CreateAgentDialogState.build: MethodTooLong \u2014 build runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"lib/features/multi_agent/widgets/create_agent_dialog.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c4c90a1c90b9ca229aa6cc313181ad61283cd73b18901898edc30085d5f84f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatNotifier: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e692796de50074eadfaca9062f3480aa51d54abce90df5e8f2aa683e937f9bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerSessionBuilder.build: MethodTooLong \u2014 build runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/server_session.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54c50894184671471f7c9d2bda0bea23875b8fba09b3ebe9d74c1a4eef930e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FormulaOcrUIState.build: MethodTooLong \u2014 build runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9d704995a0c2a7530c3f6bdb4f7faa1f8f0037608f7a5aa6e0167f1f32ea61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatNotifier._handleLoopEvent: MethodTooLong \u2014 _handleLoopEvent runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4e305626a1d8c9710ba2c9de2812985f4b663ebf6eb01dc6e49de0a3851281"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultiAgentNotifier: ClassTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 193 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ca5c7f38d8ec0e024f6c882307fbc88c07af51cf4ad0164df6812fe5a53346"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/api_server.dart: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ApiServer (27-1098). The bar is 500 significant lines; this is 241 over it, 1.48\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":"lib/core/server/api_server.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba35e801d964580b068cfddd5317fa8e8e7279a91268f953914e358e38ddd572"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OnlineServer: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"lib/core/online_service/online_server.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc820c93c22edb91577a80f030e511e7e1de0915677cae5e86a22c0e78e81f79"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Executor: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"lib/core/toolshell/executor.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37001ac8860c49affb90fae2c0be3b418c0d4e9bd2d5c458ca18061a23bbbec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentLoop: ClassTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 177 over it, 1.44\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":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d582fe388928d12fcae2198c0a7977d33d78465cf257c2301239d5179d9a6a59"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentBadgeDialog.build: MethodTooLong \u2014 build runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"lib/features/multi_agent/widgets/agent_badge_dialog.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"749f011963f4306d9d65c28970ffcba627cb8f4eb009a86360b5704bea261608"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowledge/knowledge_base_page.dart: FileTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 208 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6dc73ad01121e55672ada1e080e1ff67f5e64c7b83ef11009dd3903d468ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/multi_agent_provider.dart: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: MultiAgentNotifier (112-1018). The bar is 500 significant lines; this is 195 over it, 1.39\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":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c03c4340922ff4ab7730adfdb8d553e1dbdce5b58f4a44847ce05e14ffe0e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LoopChip._showLoopConfig: MethodTooLong \u2014 _showLoopConfig runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"33901b5ab1afb582053d1fb53062181cd0fc334866b0c71c30f795f81d81a98d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: toolshell/agent_loop.dart: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: AgentLoop (214-1200). The bar is 500 significant lines; this is 190 over it, 1.38\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":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf9a711e54644d7230eec362007376f8168523eb0591ab719a2bfa62dd3d1ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CommandCenterState.build: MethodTooLong \u2014 build runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/multi_agent/widgets/command_center.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"271ef290ef1629bd0f6c399c5b46c96579d6ff64012729c76fc93660fb916dd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: online_service/web_assets.dart: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WebAssets (3-828). The bar is 500 significant lines; this is 183 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":"lib/core/online_service/web_assets.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1286f13748972019a050c05becc50f0d33f306c657b4b7a19032726f47066f2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flowchart/flowchart_editor.dart: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: _FlowchartEditorPageState (38-767). The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52dadaf85000b5e1ac98088a28e5175e925ea08c1ec414eef2061ed997f390c7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ApiServerCardState: ClassTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 144 over it, 1.36\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":"lib/features/settings/widgets/api_server_section.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cc2c70701799108a0e0d83011cd677d0b58263da4f94a71bade2fb189e39f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: image/image_agent_service.dart: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ImageAgentService (80-998). The bar is 500 significant lines; this is 176 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"274d9177f3e0bbaa3055d3032d05f8ead21c2bbc56a424608a5a5602c7329b82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: word_engine/reader.py: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 160 over it, 1.32\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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d52970effe284ad02c00e4c9222a2901dc74bb34bcbe2bc0deec0d239b6d5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paddle_ocr/paddle_ocr_tool.dart: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: _PaddleOcrUIState (120-744). The bar is 500 significant lines; this is 157 over it, 1.31\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":"lib/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ac1ab6b0baa98346d03662ecc538b635f24aac24ba758436a8053c22d3c0cd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _VplEditorPageState: ClassTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 118 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/vpl/vpl_editor.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f72201d051b25d4b97482125507ce6e2916c7723367b908207760beda19aa2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageAgentCapability._execute: MethodTooLong \u2014 _execute runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7244a0ff687344a165dffa17e8539b4375566e13ecf0ad2624e7a364d8d1d3f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _FlowchartEditorPageState: ClassTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 115 over it, 1.29\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":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b281a02a4fdd7bedc17d9dc1c8b9b1a0b72456d3654411439f0697f1dab0ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/markdown_view.dart: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 137 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/markdown_view.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2817aff23199b8892a44a84de67f2d12cd5ffb0ffcbaa3dd4b4d4bdb27adf416"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Executor._runPython: MethodTooLong \u2014 _runPython runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"lib/core/toolshell/executor.dart"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d39cfdeb96c4be026f1e0eb87c736a3226786c436a3ec2c58850cf94a5c57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VplCodeGenerator._generateDartChain: MethodTooLong \u2014 _generateDartChain runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f1c97c66debbaea9b07e0e05361538721ac1744e82fb5140417c17d35ad659"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vpl/vpl_editor.dart: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: _VplEditorPageState (24-745). 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":"lib/features/tools/vpl/vpl_editor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1629fd96082dca58dbb01d676e4585a042c0d7f2294ae8fa3dd58413e9bb7ffb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContextCompactor._summarizeOnce: MethodTooLong \u2014 _summarizeOnce runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"706e1fd31e6b63dba9b7546058263ba7956a98f06683f5de43369724c65a8892"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatNotifier.cancelResponse: MethodTooLong \u2014 cancelResponse runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/chat/chat_provider.dart"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"155b1525375d2427b24ee4dc3709a273bb9c0c1641cacec53b7b89380c383238"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageAgentService: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"lib/core/image/image_agent_service.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaca80a08aa3f19fa8059451fe2416d44694b340971bd955563f954f05daf1f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ApiServerCardState.build: MethodTooLong \u2014 build runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/settings/widgets/api_server_section.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c01c0a4d4124b51e78c32969b793c7f36da0279203a72178509e9bda71c492f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/llm_client.dart: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"264aa75f7a12617a5b3eb904bec555102967e6769075e883872e224978203192"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _WhitelistEditDialogState.build: MethodTooLong \u2014 build runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/online_service/online_service_page.dart"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e567569407b812c651c0a2a08d4c0e3a338356fea07577e543a5eec8853b7f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VplCodeGenerator: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 80 over it, 1.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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e05114f8ab7dd2501ac5fc58e2646f61581d870c173f99105dcdb9bc8be562e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/model_cards_page.dart: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: _ModelCardDialogState (260-833). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/models/model_cards_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b92f30c2b047619970988cc68805d600f3111365e4a584489d7f75549da12e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SearchProviderCardState.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/search/search_page.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e02fc46658a1595a98aed57f46f662a08eedec9df47f5874ea8cd80e325121"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/api_server_section.dart: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _ApiServerCardState (51-817). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/settings/widgets/api_server_section.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6355d238232742a806f39f2179f06fd559667ea7e000ab48f741fb6a447a6492"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatInputState.build: MethodTooLong \u2014 build runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bf27a7a5075ba838e4cf598fad01f906d853821cdbbb318127c8efe3cb6db8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: online_service/online_service_page.dart: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 73 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/features/online_service/online_service_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fb1de6029dbd0f1359e23d21e1b8d19503c183ba866815097d647fe1d08659"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorktreeManager: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 48 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":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1346ec9122d9885fea6e89e894744411ace3eaf3a73c9eb8b5538b7ed144b12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PaddleOcrUIState.build: MethodTooLong \u2014 build runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a985ed49afc5f71ba4db0c55b5bd00eaefb1046b5d5107d809e9675967ddf34"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContextCompactor: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11d9c0376c0fa828daf2712e233790d7421d9c8e1f8131b501222ee69af5895"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NodeEditDialogState.build: MethodTooLong \u2014 build runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ddc3cbed52fbb5d8d26195c8d4adea0602ae2a19a3e3702588504a0944284d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ExpertEditorDialogState.build: MethodTooLong \u2014 build runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/experts/expert_editor_dialog.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e609be55ac279eae3aa14eeb97b24508d21761ab9c4c52b4c4e1b2aeb9b9e89e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: image_gen/image_gen_tool.dart: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 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/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e9092918b3ca96a53a3af63f1db62239dc8ec0bd2389480e72d1cdd1b85fb5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _PaddleOcrUIState: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 25 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441c56adfaf5f48d9134a9345269b7fb118d5eb3b77547bc87ab61470d0786f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnlineServer._handleChat: MethodTooLong \u2014 _handleChat runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/core/online_service/online_server.dart"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0ae7c54ee5291e111918893e40a9b7e733f529905a9b83d0abe3df2b5fe286"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ImageAgentChip._showSheet: MethodTooLong \u2014 _showSheet runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e909e056e080a0e34c35694d4a59abea5ab022dcf59e626d5ad9dc4178075203"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SkillCardTile.build: MethodTooLong \u2014 build runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/skills/skills_page.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a46f1878fa9dce371a9cfe0e7cbd71aa2eaddc68d0cf05e76de951fb23ca2d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryManager: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 15 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":"lib/core/memory/memory_manager.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a19b2f60518c3c642e49a691126f7479642fedaffc509f6295e364f5483f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolProgressTracker: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"lib/core/toolshell/budget.dart"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e147702dcd11106fa9a62d2eb5780f60ae39ef2c67c5e988526b6efdffe00a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VplPortPresets.portsFor: MethodTooLong \u2014 portsFor runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/tools/vpl/vpl_nodes.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"420dedee1f8397ed84c93921aac050f49d4f8c71f79e96a1f9af9f31bb1dfa1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pet/pet_economy.dart: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 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/core/pet/pet_economy.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eac1eda77af3adf42a9f60aeb4d086439d546904722f2562d6c174bfc6e36e3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ModelCardDialogState: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/models/model_cards_page.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c18986cb692a58ba46fe8b1a242bb475ee4ca0aa3065299c32b49a8d812ead"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ThemeSwitcher.build: MethodTooLong \u2014 build runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/settings/settings_page.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"39980a791752db6fac8c6ad329eb23628bf4dabc2492fc6ccef67d2f6c626f8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NewWorkspaceDialogState: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 5 over it, 1.01\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":"lib/features/chat/widgets/new_workspace_dialog.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"416863de5c3c43bf277c4ffdd3d8c2dd34641d708ce55a11f63fa184281e1a70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _McpChip._showMcpSheet: MethodTooLong \u2014 _showMcpSheet runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"lib/features/chat/chat_page.dart"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c98d883c26825081355436d50925c4b08c130c8970cc28dcce7b64ed71d073a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 24 shared lines): lib/features/settings/settings_page.dart:676-713 | lib/features/settings/widgets/custom_license_page.dart:170-217 | lib/features/settings/widgets/custom_license_page.dart:270-307 | lib/shared/layout/app_scaffold.dart:302-351 | lib/shared/layout/app_scaffold.dart:510-549 \u2014 These 5 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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/features/settings/settings_page.dart"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcdfded13104cfb05331c5e18fc0dd05e90efb04fc319b5e1f800f0a07638a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): lib/features/tools/vpl/vpl_code_gen.dart:119-374 | lib/features/tools/vpl/vpl_code_gen.dart:460-607 \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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bf7bf55f75e5aa4c7b11c5efe95fc464b538783c6dc1033de2f1bf7be4eb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): lib/features/tools/formula_ocr/formula_ocr_tool.dart:242-471 | lib/features/tools/image_gen/image_gen_tool.dart:193-439 \u2014 These two members are variants of one another: 54 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/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dcc913814f3f3731df662c9d8df07a9f2547b11117dbf2bd5762eaaa92c729"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/features/knowledge/knowledge_base_page.dart:259-293 | lib/features/mcp/mcp_page.dart:386-420 | lib/features/models/model_cards_page.dart:181-215 | lib/features/settings/widgets/embedding_section.dart:265-295 | lib/features/skills/skills_page.dart:447-481 \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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd20ab76876fac0b9d88882744ca55cfd220180a0eebe194a7388b0d1ad8f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/features/chat/widgets/markdown_view.dart:387-451 | lib/features/chat/widgets/markdown_view.dart:510-559 | lib/features/chat/widgets/visualization_cards.dart:120-243 | lib/features/chat/widgets/visualization_cards.dart:332-450 \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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"142a464c3fa9add2c41b57257b23c7cd52f36ded0037d2174f78a9c89ab761d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/features/chat/widgets/visualization_cards.dart:120-243 | lib/features/chat/widgets/visualization_cards.dart:332-450 | lib/features/chat/widgets/visualization_cards.dart:478-584 | lib/features/chat/widgets/visualization_cards.dart:643-729 \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/features/chat/widgets/visualization_cards.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b7e20b7f0aaa63dbcfc17517cbbddbb63500c5c83412310c80c353cbfafaec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): assets/scripts/paddle_ocr/doc_parse_task.py:25-117 | assets/scripts/paddle_ocr/ocr_task.py:25-140 \u2014 These two members are one piece of code written twice and then edited apart: 93 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/paddle_ocr/doc_parse_task.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bbea7652f216924286690f4a13257425e0de368a944a49b67a9b61d0f4d05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (125 corresponding lines): lib/features/chat/chat_page.dart:1159-1283 | lib/features/chat/chat_page.dart:1370-1505 \u2014 These two members are one piece of code written twice and then edited apart: 125 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d275209814d30e0c243ccfc6dfda9366eab857947324abbc7883786b6d3fc66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): assets/office_engine/excel/excel_engine/reader.py:1026-1092 | assets/office_engine/word/word_engine/writer.py:1061-1141 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"f759d35807c86130ecfbe0afff998b84aeee4b61f5844ea32d3f458e4e469f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): lib/shared/widgets/screenshot_editor.dart:423-493 | lib/shared/widgets/screenshot_editor.dart:552-603 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/shared/widgets/screenshot_editor.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cbd98012c2ea7cd5233f76a93ecf51e0b3d53d817c7428cf7ee65cdd0783d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): lib/features/models/model_card_tile_optimized.dart:79-183 | lib/features/settings/widgets/embedding_section.dart:114-213 \u2014 These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/models/model_card_tile_optimized.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2637a30b2408c8c41704900e3cfcf20ac0e3fad15878e368649da266db88472c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): lib/core/server/api_server.dart:270-346 | lib/core/server/api_server.dart:499-592 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/api_server.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b8f75f609862bb05a21433c7a5eacdd65578640a2de3df996973b14dd05768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): lib/features/mcp/mcp_page.dart:69-129 | lib/features/skills/skills_page.dart:114-196 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dc9a85b4821e8d5e1ac8983aa30226b770ca7e74c0b26195fdc040e4eed440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): assets/office_engine/excel/excel_engine/cli.py:42-89 | assets/office_engine/word/word_engine/cli.py:57-112 \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":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"945eaaf123b1b8c259ec3336dd4840732fc324a5e244e79765778406083a667a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): lib/features/pet/pet_page.dart:765-827 | lib/features/pet/pet_page.dart:829-893 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/pet/pet_page.dart"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"b587ba9e0fb13f981054afe380094c080c47d7518d4e2640feb7ef1bdaa38c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lib/features/settings/widgets/api_server_section.dart:543-581 | lib/features/settings/widgets/api_server_section.dart:584-631 \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/features/settings/widgets/api_server_section.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5f2b79368fb525012fbe893230ef771573fd2053d2fefa7db059050be70cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): lib/features/online_service/online_service_page.dart:277-328 | lib/features/online_service/online_service_page.dart:396-448 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/online_service/online_service_page.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b043b3eb79229f2363a38fbf4aec133dc00f182659accb3efbc601d9270996"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): lib/features/settings/widgets/update_dialog.dart:144-190 | lib/features/settings/widgets/update_dialog.dart:327-383 \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":"lib/features/settings/widgets/update_dialog.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bba60b3c908dcf44bee458359e583d288d3f1c6a0730b37f5a297a5613e9a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): packages/dock_panel/lib/main.dart:293-344 | packages/dock_panel/lib/main.dart:584-625 \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":"packages/dock_panel/lib/main.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c89dfa4535bb0f46840831c2f6c992b1d0be230bbc623839afef0b9505d88b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lib/features/settings/settings_page.dart:578-615 | lib/features/settings/settings_page.dart:622-668 \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/features/settings/settings_page.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"407969a2e590f9e4876382d3896fb1b308a0618fa3abff81c21b330089ba5338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/features/tools/flowchart/flowchart_editor.dart:416-454 | lib/features/tools/vpl/vpl_editor.dart:506-539 \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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75644483dc669334ab7fade22357d58164d4113bb7949c29fd048d8384800cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): lib/features/chat/widgets/markdown_view.dart:469-508 | lib/features/chat/widgets/visualization_cards.dart:262-304 \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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"225ff92358209d32f666ee70fa040b5d4ab89cfd9167ff4d571fe9b8aa47a236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/features/tools/flowchart/flowchart_editor.dart:245-271 | lib/features/tools/vpl/vpl_editor.dart:150-176 \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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2867ab0c73bdf14c3336933a5d6e4787a791430a9362c1a226d294edc3743413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/core/llm/anthropic_sdk_client.dart:209-244 | lib/core/llm/anthropic_sdk_client.dart:267-304 \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/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa4488a59ec4144d4019dc1a8dc2e0734e34684b3991d90a038750c5e08921f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/core/llm/gemini_client.dart:291-321 | lib/core/llm/gemini_client.dart:375-418 \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/core/llm/gemini_client.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f81fe0bb048422553257cd758eff9457ad893efe8f6261ab8d4c5d1231efeab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/features/chat/widgets/markdown_view.dart:918-953 | lib/features/pet/widgets/pet_bubble.dart:194-233 \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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5130eef21434f0895c8f18578ad110b5ed968166d65f109c89fa545df703e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/features/chat/chat_page.dart:1540-1572 | lib/features/mcp/mcp_page.dart:307-345 \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/features/chat/chat_page.dart"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb28f8e983827104254e91934edc47949703383dbee498f084b6e8ce5e9f7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/features/tools/flowchart/flowchart_editor.dart:470-497 | lib/features/tools/siyu/siyu_editor.dart:365-392 \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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b829ec97c8213983b8572bac5850307de7950e625db624f4648dd4d4aa17d7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/features/history/history_page.dart:147-177 | lib/features/history/history_page.dart:179-203 \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/features/history/history_page.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"95685ecac24e6dfd2b00b8a26224d0b2c0819eab77a798460f43ff41fe2f2c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lib/features/tools/flowchart/flowchart_editor.dart:373-414 | lib/features/tools/vpl/vpl_editor.dart:466-504 \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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcff569816027ea1d2ce9393069b8c5ccded9d3de784f55e351ed6d5bf07462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/features/experts/experts_page.dart:25-48 | lib/features/memory/memory_page.dart:10-33 \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/features/experts/experts_page.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b629a7605485947a5361a61b040c2da67ab7c111f7b6d15260d187b61b8863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 23\u002B corresponding lines): lib/features/experts/experts_page.dart:143-168 | lib/features/knowledge/knowledge_base_page.dart:100-126 | lib/features/knowledge/knowledge_base_page.dart:979-1001 | lib/features/memory/memory_page.dart:122-147 | lib/features/settings/widgets/embedding_section.dart:70-95 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 23 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/features/experts/experts_page.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"51521e22dd90c9dd7775c8bda68ccaa209081886562f2ae2d4cc6f3075fd093f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): lib/features/mcp/mcp_page.dart:351-378 | lib/features/models/model_card_tile_optimized.dart:277-302 | lib/features/skills/skills_page.dart:342-369 \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/features/mcp/mcp_page.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cca7a1188c687669efb04ffa686e156efb5389b31e6e0b9a20275f27ba8b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/features/chat/widgets/markdown_view.dart:273-309 | lib/features/chat/widgets/message_bubble.dart:343-376 \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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a6bbad9b592a27c7df6f7d828aacb251f252b130ffb0a310e8070028efcc1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/core/mcp/transports/sse_transport.dart:226-245 | lib/core/mcp/transports/stdio_transport.dart:180-197 \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/core/mcp/transports/sse_transport.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"612e04db200e8f82ca6448ab5f427a5977d13227015af6cda0e359d5daf665e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/features/skills/skills_page.dart:507-528 | lib/features/toolchain/toolchain_page.dart:433-454 \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/features/skills/skills_page.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c65b9862ce63f6764169a45a0da0151d0beebfc5dfeb81d5d9dffe4562c5c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): assets/office_engine/excel/excel_engine/protocol.py:53-69 | assets/office_engine/word/word_engine/protocol.py:63-87 \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":"assets/office_engine/excel/excel_engine/protocol.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b2226057e59b8037cff473f0681deefa1c1ffbe6f622b2b519aad6e71c083a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): lib/features/chat/chat_page.dart:1711-1730 | lib/features/chat/chat_page.dart:1906-1927 | lib/features/chat/chat_page.dart:2052-2075 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_page.dart"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e23b9c454e0a0b7fbc2b686d3143e8185c1bebd98672c43ce04eea16b485353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/features/models/model_card_tile_optimized.dart:185-215 | lib/features/settings/widgets/embedding_section.dart:215-241 \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/features/models/model_card_tile_optimized.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3738fe4e8d2a8c725c7de022be4d28c0ea8c4a46f776b4b8f877645a6d19521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/llm/anthropic_client.dart:552-568 | lib/core/llm/anthropic_sdk_client.dart:372-388 \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/core/llm/anthropic_client.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b95494d82622f3d486f8d17a52f4484d74bcfc098c57c9e44a15abf9b2ac09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/features/tools/formula_ocr/formula_ocr_tool.dart:95-112 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:144-161 \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/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd224fa4a3e6225f54bdfe72bf90a107afc68a62e34ec22f7dc7a8d43348ee95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/features/chat/chat_page.dart:1143-1157 | lib/features/chat/chat_page.dart:1353-1368 \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/features/chat/chat_page.dart"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4392c286df4577ff13a33d90ddf09b43850c7b5900804ab886745c50caf6a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/features/tools/flowchart/flowchart_editor.dart:188-202 | lib/features/tools/vpl/vpl_editor.dart:117-131 \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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"67857cf5829f20677d5b925bd5a3351e1101e0310e4f1240d3454832c1ceac03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): assets/office_engine/excel/excel_engine/utils.py:56-65 | assets/office_engine/word/word_engine/utils.py:60-71 \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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5119df225a5058cf7371bef4ba0a55b049e3121a8dfacb16c1994bf34db2da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/core/online_service/online_session.dart:23-32 | lib/core/settings/app_settings.dart:66-76 \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/core/online_service/online_session.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d119a91e79a53ee00f0a085a041f4ab6e7055cf2a1ea15f62db8c79e29f206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/core/llm/anthropic_client.dart:262-280 | lib/core/llm/gemini_client.dart:267-287 \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/core/llm/anthropic_client.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6554d9203a370068e7160c4c05b1bb7dbe9d92756aa906c43259da716a49338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): lib/features/chat/chat_page.dart:736-752 | lib/features/multi_agent/widgets/agent_chat_panel.dart:87-101 | lib/features/multi_agent/widgets/command_center.dart:51-63 \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/features/chat/chat_page.dart"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5ddbeeea611b5ce8d3bcc1b4788810351f0e530829d53d2c4a93a0c19e4645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): packages/dock_panel/lib/src/providers/dock_manager.dart:195-212 | packages/dock_panel/lib/src/providers/dock_manager.dart:283-300 | packages/dock_panel/lib/src/providers/dock_manager.dart:302-324 | packages/dock_panel/lib/src/providers/dock_manager.dart:354-372 \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":"packages/dock_panel/lib/src/providers/dock_manager.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb0676e12f2cf7da4e1590f41faee55242c18584407e715d0c7f46e26bf69eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/core/image/image_agent_service.dart:784-798 | lib/core/image/image_agent_service.dart:800-809 \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/core/image/image_agent_service.dart"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"862210ac2d874ccdc80f4537447c74851aec2daf5272586cf8cb78c45a5f87e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): assets/office_engine/excel/excel_engine/cli.py:22-38 | assets/office_engine/word/word_engine/cli.py:23-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":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5f6deb387fd1a5c97434bdaf19c6b648a7e93b68d2534839c248b7ceda1ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/features/chat/chat_page.dart:3048-3059 | lib/features/chat/widgets/message_bubble.dart:625-637 \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/features/chat/chat_page.dart"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3850cdae9a845b904a92b975120db43f1469af2ada56ffab73f1ffdca272c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/core/db/tables/knowledge_base.dart:61-80 | lib/core/settings/app_settings.dart:36-54 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/tables/knowledge_base.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a7135a6de9b58a675823c3b07a26f1caed117e132983f72d576607bed253fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/providers/settings_provider.dart:241-258 | lib/providers/settings_provider.dart:260-273 \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/providers/settings_provider.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e9eed7dfd8b74eba0f306d2f81c2c2b1bc49e58b6b805a82bc76db81d13919"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/features/chat/widgets/chat_scroll_nav.dart:50-62 | lib/features/chat/widgets/chat_scroll_nav.dart:64-76 \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/features/chat/widgets/chat_scroll_nav.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"476f90ca78c25995337d9ba70104628e23fca790a31ed66855c9cc7df9eb83bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/mcp/transports/sse_transport.dart:160-171 | lib/core/mcp/transports/streamable_http_transport.dart:115-130 \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/core/mcp/transports/sse_transport.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e463a8189b96244df72ecbd5c9abe14f52054b870a50b7000369c18d5ea8c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/features/chat/chat_page.dart:618-625 | lib/features/chat/widgets/markdown_view.dart:247-254 \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/features/chat/chat_page.dart"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0465b1694cb1aa78cd284a2985ca42e265f225b587bc7cad240cde776ea5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/features/mcp/mcp_page.dart:16-27 | lib/features/skills/skills_page.dart:16-27 \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/features/mcp/mcp_page.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"731bdf18fe03b26992bbeecd15916df347efc630c0abab79cdd8b3369b5597eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): assets/office_engine/word/word_engine/writer.py:313-322 | assets/office_engine/word/word_engine/writer.py:326-335 \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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e1338d419103f041f0ff501f5ff1648dbda147ab0fa1c926529bd0feffa524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/core/settings/app_settings.dart:348-358 | lib/providers/search_provider.dart:76-84 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/settings/app_settings.dart"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"9906c989fc1cf0287ca82098b511185e12427d64bb85fb1c0596969e9bc8eccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): assets/office_engine/excel/excel_engine/utils.py:69-76 | assets/office_engine/word/word_engine/utils.py:75-83 \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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eba89dcd2f277c3cf30bf8fe99cb3c937a8ffdfe9aacc8d270b5f7501f8b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): lib/core/export/conversation_image_exporter.dart:506-510 | lib/core/toolshell/worktree_manager.dart:727-732 | lib/features/memory/memory_page.dart:241-248 \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/core/export/conversation_image_exporter.dart"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f022aa5d532eb6c830a4d832be28c5009b4c09dc32b3cacd098dae5e181b9dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/core/toolshell/android_executor.dart:271-282 | lib/core/toolshell/system_executor.dart:88-98 \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/core/toolshell/android_executor.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8330c68b126d8059032a6377af468f2865b584149f38154130d79701dabebc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/features/tools/image_gen/image_gen_tool.dart:32-47 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:35-51 \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/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12163ea0083fc825d5c233ef444468ec0d5a3e97c3550fdb423b133ca53bf6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/core/toolshell/worktree_manager.dart:509-521 | lib/core/toolshell/worktree_manager.dart:523-538 \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/core/toolshell/worktree_manager.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"94834e1f91c25def18b923bdf16e9de9ff2f3712b327571325b0e6e9f6e1ce9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): assets/office_engine/excel/excel_engine/protocol.py:73-81 | assets/office_engine/word/word_engine/protocol.py:91-100 \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":"assets/office_engine/excel/excel_engine/protocol.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d230f569aefa59a2fad0228cc1bfa13e7e3dc8bc1ccdd1718625a3511e5c0bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/features/tools/image_gen/image_gen_tool.dart:612-621 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:794-803 \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/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e0d84133f8090e2699c56001e068f44c3a25592adea18f737c4723664cdbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/core/db/daos/kb_dao.dart:23-30 | lib/core/db/daos/model_cards_dao.dart:36-41 \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/core/db/daos/kb_dao.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc6ebd3a812eb5296aae2abffc1bf07e8c27340fe2105fea2d3cf566c219dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/features/chat/chat_page.dart:3071-3078 | lib/features/chat/widgets/message_bubble.dart:652-660 \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/features/chat/chat_page.dart"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ce9e392535ae6a847daff50f0fbb7690758147df05a67e44752e1ef3d2c741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/features/tools/vpl/vpl_editor.dart:452-462 | lib/features/tools/flowchart/flowchart_editor.dart:313-321 \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/features/tools/vpl/vpl_editor.dart"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b8afbb7566936661063665ac15202fac768a16837e60edf81a7da3da9d2058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/core/llm/context_capacity.dart:82-88 | lib/core/llm/gemini_client.dart:62-72 \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/core/llm/context_capacity.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7503ff0c8d485a17ec8059e8d9cb03bd5ecaed2c86ec888887f5c349ad6dcb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/core/pet/pet_sprite.dart:62-71 | lib/core/online_service/online_service_config.dart:104-110 \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/core/pet/pet_sprite.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27f670e17127bc30e4c7db5c55f3073483a151deec8975be62713773ce19f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): assets/office_engine/excel/excel_engine/utils.py:49-52 | assets/office_engine/word/word_engine/utils.py:53-56 \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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efc5e54762cdd9524a2e77333748c287f8e6970d113fec9f1e81ed312303aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/core/online_service/online_session.dart:34-42 | lib/core/settings/app_settings.dart:56-64 \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/core/online_service/online_session.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf2016fd7801297666702995fce6912055b5afa42e00fbb40f9b73c8a47d888"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/core/llm/llm_client.dart:1054-1058 | lib/core/llm/models.dart:145-149 \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/core/llm/llm_client.dart"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"b219cf1b3d59ecaefe8c89b173740778c9ff2f2921d322cbc409399a7b5de0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/core/image/image_agent_service.dart:996-997 | lib/core/image/session_image_registry.dart:287-288 \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/core/image/image_agent_service.dart"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"49911a19a9833b257b2718e054eea077cb99a8165c562b5eb60c4a3822bca7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/core/llm/context_capacity.dart:312-315 | lib/core/pet/pet_economy.dart:711-714 | lib/core/shortcuts/shortcut_config.dart:135-138 | lib/features/pet/widgets/floating_pet.dart:403-406 | lib/shared/layout/app_scaffold.dart:183-186 \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/core/llm/context_capacity.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"992466439ba612b3168af91f88b0b94e23fb279bb74b48bbb5bf6aa8e8e69d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/core/db/daos/kb_dao.dart:247-250 | lib/core/db/daos/model_cards_dao.dart:120-123 \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/core/db/daos/kb_dao.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea39c300b8dbe1988ca96f2cb60ef529f84e1c5cc462a63eb06f793c0494402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/core/server/api_server_config.dart:194-197 | lib/core/settings/app_settings.dart:288-291 \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/core/server/api_server_config.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"06617666c843d020946367f0228b8799060042d2b117ed25bfa18ba0d36b76f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67\u201375 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:164-238 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:309-375 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a806f6192b72f33751743b491235a3b481afa781072837289aeee4b48285f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 3): lib/features/chat/widgets/visualization_cards.dart:120-180 | lib/features/chat/widgets/visualization_cards.dart:332-392 | lib/features/chat/widgets/visualization_cards.dart:478-538 \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/features/chat/widgets/visualization_cards.dart:120\u0060 it does not close everything it opens, so those exact 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":"lib/features/chat/widgets/visualization_cards.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae38be4c7d3bc8087deb0b974d44d9656ef7841fca2c3eb627af134f05d97de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:387-424 | lib/features/chat/widgets/markdown_view.dart:510-547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/widgets/markdown_view.dart:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4817ef1e7e4f33ea167f4f6ea4321898d5317fc3ceec0a00a9127dff4a942d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): lib/features/settings/widgets/font_section.dart:260-293 | lib/features/settings/widgets/font_section.dart:344-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/widgets/font_section.dart: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. 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/features/settings/widgets/font_section.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aac9a9b4b1f33b2b555f89b6ffe1458232082fd9de3f645e0587afde93ded3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): lib/core/llm/anthropic_client.dart:302-334 | lib/core/llm/anthropic_client.dart:410-442 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/core/llm/anthropic_client.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"246a202ad68e7889b41eb8ddc3a8eb08f3a1a15c4e85a7cf5fd93c2e98161224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): lib/features/chat/chat_provider.dart:1878-1906 | lib/features/chat/chat_provider.dart:1947-1977 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/chat_provider.dart:1878\u0060 it begins part-way through the construct above it, so those exact 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/features/chat/chat_provider.dart"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc2f00b984f8aa8597574819019ff11633e2a18a3a65ad512a33f07003d2ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): lib/features/tools/vpl/vpl_code_gen.dart:120-149 | lib/features/tools/vpl/vpl_code_gen.dart:461-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/tools/vpl/vpl_code_gen.dart:120\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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7f4ae74693d47a2f1718b95cca39b553fbc6018f8100188b570b5070eb13f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/core/toolshell/schedule_executor.dart:173-199 | lib/core/toolshell/schedule_executor.dart:329-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/core/toolshell/schedule_executor.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cc6f4e314bfd0af8dfa74c5273d8928d37b6bc8dc99b9e79cd7b503a969570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 5): lib/features/settings/settings_page.dart:685-708 | lib/features/settings/widgets/custom_license_page.dart:183-206 | lib/features/settings/widgets/custom_license_page.dart:279-302 | lib/shared/layout/app_scaffold.dart:320-343 | lib/shared/layout/app_scaffold.dart:519-544 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/settings_page.dart:685\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/features/settings/settings_page.dart"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42c9ad71e9629b3ae5a8471884bf40cf94cb99cc56bef53f1da10e45781ce64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/features/models/model_card_tile_optimized.dart:191-215 | lib/features/settings/widgets/embedding_section.dart:217-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/widgets/embedding_section.dart:217\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/features/models/model_card_tile_optimized.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4491c2438c330376d5014338179d91b4100b971b950c04ae491537cb65e65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): lib/features/chat/widgets/visualization_cards.dart:165-188 | lib/features/chat/widgets/visualization_cards.dart:377-400 | lib/features/chat/widgets/visualization_cards.dart:523-546 | lib/features/chat/widgets/visualization_cards.dart:682-705 \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 \u0060lib/features/chat/widgets/visualization_cards.dart:165\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/features/chat/widgets/visualization_cards.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b482e66d41167959bf2073bf804eb6fd395a52403e2c5358c525f8dd30fd12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:924-947 | lib/features/pet/widgets/pet_bubble.dart:200-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d790dffedf350d605c8d75e27906b961b3ceb687c1a48883c9099b823b70e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/features/chat/chat_page.dart:1183-1205 | lib/features/chat/chat_page.dart:1395-1417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/chat_page.dart:1183\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/features/chat/chat_page.dart"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0ed95d20574ec222527f3d312c7e1028e5ccbfd3e2ba32ebad5a1fcacd4d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/features/knowledge/knowledge_base_page.dart:229-251 | lib/features/settings/widgets/embedding_section.dart:192-213 \u2014 before extracting anything, compare \u0060lib/features/knowledge/knowledge_base_page.dart\u0060 and \u0060lib/features/settings/widgets/embedding_section.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/features/knowledge/knowledge_base_page.dart:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c57e26dc1a7d5ade1ad7ce7b0dc11ecfcc8d4a2a328edc0c27cd6d253f634ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:421-443 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:688-709 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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/features/tools/formula_ocr/formula_ocr_tool.dart: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. 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/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10a583bc873cc716c98bb749d271dac3fb987bd1b5148540049450eba1680fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/features/tools/formula_ocr/formula_ocr_tool.dart:242-263 | lib/features/tools/image_gen/image_gen_tool.dart:193-214 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:388-409 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/image_gen/image_gen_tool.dart\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 67 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/features/tools/formula_ocr/formula_ocr_tool.dart:242\u0060 it does not close everything it opens, so those exact 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"6950b9cb8fbe40fbcbe7918f134f84ee0c784efcabd9cecf2c59aceeb19cef49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/core/server/api_server.dart:500-521 | lib/core/server/api_server.dart:754-775 \u2014 both copies are in the same file, so extract the block 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":"lib/core/server/api_server.dart"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9b223aed72a9dd9c49033c51a30d70735a53ef3ebcda24f54cda2b95be7f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/features/chat/chat_provider.dart:1844-1865 | lib/features/chat/chat_provider.dart:1916-1937 \u2014 both copies are in the same file, so extract the block 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/features/chat/chat_provider.dart:1842\u0060 calls \u0060log\u0060 and \u0060lib/features/chat/chat_provider.dart:1914\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/features/chat/chat_provider.dart"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b45948c63d10d42a5857fcebbf3ba4e9c07257fa64da0821418e7f7cdcfcf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): lib/features/tools/vpl/vpl_code_gen.dart:198-218 | lib/features/tools/vpl/vpl_code_gen.dart:227-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/tools/vpl/vpl_code_gen.dart:198\u0060 it begins part-way through the construct above it, so those exact 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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"69017faae49beab4ecd2d8785fab5e1652d61db44a24bd2682c8631c6d545b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/features/tools/vpl/vpl_code_gen.dart:537-557 | lib/features/tools/vpl/vpl_code_gen.dart:564-584 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/tools/vpl/vpl_code_gen.dart:537\u0060 it begins part-way through the construct above it, so those exact 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":"lib/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff74c8131ac7d93054c16de47d782c026cceba082395c44a9c0950bc99d7125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:357-375 | lib/features/tools/image_gen/image_gen_tool.dart:360-378 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/image_gen/image_gen_tool.dart\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 67 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/features/tools/formula_ocr/formula_ocr_tool.dart:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b1e12539f103f90f21abd271cf19bde2cf9a66150aae15b4ad4fb45387cf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): lib/features/knowledge/knowledge_base_page.dart:262-279 | lib/features/mcp/mcp_page.dart:389-406 | lib/features/models/model_cards_page.dart:184-201 | lib/features/skills/skills_page.dart:450-467 \u2014 \u0060lib/features/mcp/mcp_page.dart\u0060 and \u0060lib/features/skills/skills_page.dart\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 46 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/features/knowledge/knowledge_base_page.dart:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"26437f2a9429fc2393be5a04a69466dc9a2905c13559095524031ddf3371609b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:469-485 | lib/features/chat/widgets/visualization_cards.dart:262-279 \u2014 before extracting anything, compare \u0060lib/features/chat/widgets/markdown_view.dart\u0060 and \u0060lib/features/chat/widgets/visualization_cards.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/features/chat/widgets/markdown_view.dart:469\u0060 it does not close everything it opens, so those exact 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"172dba6d50cfec81edff618bcf18487e6f919ea557f2b77421b28b34f2491fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:889-906 | lib/features/chat/widgets/message_attachments.dart:144-161 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/features/chat/widgets/markdown_view.dart:889\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c368cc9f1b84e56230baea5d9a5e3f06ebd127b6f269811bd10bce9100d4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/core/llm/anthropic_client.dart:436-452 | lib/core/llm/gemini_client.dart:402-418 \u2014 before extracting anything, compare \u0060lib/core/llm/anthropic_client.dart\u0060 and \u0060lib/core/llm/gemini_client.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/llm/anthropic_client.dart:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/core/llm/anthropic_client.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f211ffd6f54a04d9626a37142164c1db13d979bdb744d4bfc12be41683ffb189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lib/features/multi_agent/widgets/agent_chat_panel.dart:455-469 | lib/features/multi_agent/widgets/command_center.dart:270-286 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/features/multi_agent/widgets/agent_chat_panel.dart:455\u0060 it begins part-way through the construct above it, so those exact 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/features/multi_agent/widgets/agent_chat_panel.dart"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"154bf8de15b3abf2d6b7d4fcc9afd8cc1634f761a67050735f2b4831b08ea9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:335-351 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:501-516 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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/features/tools/formula_ocr/formula_ocr_tool.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"080ac6a0fe0cbcb44b8271ce41684218d49f5a94439272336633a8365c5b5eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:844-857 | lib/features/chat/widgets/message_attachments.dart:121-136 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/features/chat/widgets/markdown_view.dart:844\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8da04f6dae0f5984b19da9c693490d8ec70ba4babd857609e21a706b1bbd227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/features/skills/skills_page.dart:513-528 | lib/features/toolchain/toolchain_page.dart:439-454 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/features/skills/skills_page.dart:513\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/features/skills/skills_page.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"085991b13770fb80bc7f9da9506bc6cf28c2fbdc2659679d5db8eb58507788b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): lib/features/tools/vpl/vpl_code_gen.dart:157-171 | lib/features/tools/vpl/vpl_code_gen.dart:194-208 | lib/features/tools/vpl/vpl_code_gen.dart:223-236 \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/features/tools/vpl/vpl_code_gen.dart:157\u0060 it does not close everything it opens, so those exact 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/features/tools/vpl/vpl_code_gen.dart:172\u0060 calls \u0060writeln\u0060 and \u0060lib/features/tools/vpl/vpl_code_gen.dart:209\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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2ab381aee44d0dfa8ec093a2e6af7cc3de8b8b87e0e3a7bf8184cfb47968ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): lib/features/tools/vpl/vpl_code_gen.dart:496-509 | lib/features/tools/vpl/vpl_code_gen.dart:533-547 | lib/features/tools/vpl/vpl_code_gen.dart:561-574 \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/features/tools/vpl/vpl_code_gen.dart:496\u0060 it begins part-way through the construct above it, so those exact 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/features/tools/vpl/vpl_code_gen.dart:510\u0060 calls \u0060writeln\u0060 and \u0060lib/features/tools/vpl/vpl_code_gen.dart:548\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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f9fae6c4ac2297483dc5d00fab3bebb293067ea53293b0475bd573d62a25e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): lib/core/llm/gemini_client.dart:304-315 | lib/core/llm/gemini_client.dart:394-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/llm/gemini_client.dart:304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71078eee411a077bfa02670b7cee0d1e943294cba12e4db40034fa4429a8b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/core/mcp/transports/sse_transport.dart:231-245 | lib/core/mcp/transports/stdio_transport.dart:183-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/core/mcp/transports/sse_transport.dart:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/core/mcp/transports/sse_transport.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0027171d2e61c816186c56065de7689db565ed95c340ae7a29c9b75679d1a7b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/features/online_service/online_service_page.dart:166-180 | lib/features/online_service/online_service_page.dart:277-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/online_service/online_service_page.dart:166\u0060 it does not close everything it opens, so those exact 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":"lib/features/online_service/online_service_page.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f99040a8265e34e264e76a8b175af92dec5e9a14cf274ecd9c3010261f8858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/features/tools/flowchart/flowchart_editor.dart:250-264 | lib/features/tools/vpl/vpl_editor.dart:155-169 \u2014 \u0060lib/features/tools/flowchart/flowchart_editor.dart\u0060 and \u0060lib/features/tools/vpl/vpl_editor.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 36 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/features/tools/flowchart/flowchart_editor.dart:250\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"87884e442266d1e0715a9e3d212841597c46269a563853ca6b60f14e016d57e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:148-162 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:293-307 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6711ea308a444df3453bf91182b35c0fde37fc3fd45c205cd5dfceca2ade4b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): lib/features/online_service/online_service_page.dart:171-183 | lib/features/online_service/online_service_page.dart:282-295 | lib/features/online_service/online_service_page.dart:402-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/features/online_service/online_service_page.dart: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/features/online_service/online_service_page.dart:400\u0060 calls \u0060watch\u0060 and \u0060lib/features/online_service/online_service_page.dart:169\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/features/online_service/online_service_page.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02baa608f258a809b8279523ae4f081fcd0f6a663c1d83d13b57a503f3f2a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/core/llm/anthropic_client.dart:328-341 | lib/core/llm/gemini_client.dart:309-321 \u2014 before extracting anything, compare \u0060lib/core/llm/anthropic_client.dart\u0060 and \u0060lib/core/llm/gemini_client.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/llm/anthropic_client.dart:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ea90fb9b484aeb2ab2c981dc7186a7fe8c5d54a0f2dcc931b8d4f41437b3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/core/office/office_engine.dart:94-107 | lib/core/python/python_bootstrap.dart:293-305 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/office/office_engine.dart:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/core/office/office_engine.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8e9b30299559a8ea07ed8626b34ebef9924d1f25e5e7364b95b00579eb03d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/features/chat/widgets/message_bubble.dart:426-439 | lib/features/chat/widgets/message_bubble.dart:529-542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/widgets/message_bubble.dart:426\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/features/chat/widgets/message_bubble.dart"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e6bd35a4977c38b83e20af0cff1df5d19549eb39aba16652877d405cefa28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/features/knowledge/knowledge_base_page.dart:110-123 | lib/features/knowledge/knowledge_base_page.dart:985-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/features/knowledge/knowledge_base_page.dart:110\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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d9f71d8b5298476e99d0d1c2160a2b428ed29b60aaf137ce9f9a8c32562b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/dock_panel/lib/main.dart:543-556 | packages/dock_panel/lib/main.dart:561-574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/dock_panel/lib/main.dart:543\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":"packages/dock_panel/lib/main.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b44d996d27200d729e9fda64c62dbeb9608622417a6342fdd31d30072afa550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/features/tools/vpl/vpl_code_gen.dart:156-168 | lib/features/tools/vpl/vpl_code_gen.dart:193-205 | lib/features/tools/vpl/vpl_code_gen.dart:222-234 | lib/features/tools/vpl/vpl_code_gen.dart:323-335 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/features/tools/vpl/vpl_code_gen.dart:172\u0060 calls \u0060writeln\u0060 and \u0060lib/features/tools/vpl/vpl_code_gen.dart:209\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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"850ef42539ad04cd1a2e06f7c22113dd2b346bc51197db3a42ad3a2167ab20d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/core/llm/anthropic_client.dart:556-568 | lib/core/llm/anthropic_sdk_client.dart:376-388 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/core/llm/anthropic_client.dart: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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eca1cec660998785badac4772b1eb2887a7710cc7530e52892c284fa7e9c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/features/chat/widgets/sub_readers_card.dart:21-33 | lib/features/chat/widgets/tool_call_card.dart:32-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/features/chat/widgets/sub_readers_card.dart: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. 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":"lib/features/chat/widgets/sub_readers_card.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b28f4f1a289ba8f3254c4ca39fed550c40eebf81a610a3ba9bfab8c73011c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/features/pet/pet_page.dart:798-810 | lib/features/pet/pet_page.dart:864-876 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/pet/pet_page.dart:798\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/pet/pet_page.dart"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca7ac45d545b561796d142b9f2768553f946c28f4f5da875427a9527c269b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/features/settings/widgets/update_dialog.dart:144-156 | lib/features/settings/widgets/update_dialog.dart:327-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/settings/widgets/update_dialog.dart:144\u0060 it does not close everything it opens, so those exact 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":"lib/features/settings/widgets/update_dialog.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1902712c640e600208513f289418ac94aed94b1adc6538a3d4809129efd5b42e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:290-302 | lib/features/tools/image_gen/image_gen_tool.dart:264-276 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/image_gen/image_gen_tool.dart\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 67 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/features/tools/formula_ocr/formula_ocr_tool.dart: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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8320446da4000e9832b7d822cc3c4c772b3dbd11abc92ad1d42c6ad149ea74a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/features/tools/vpl/vpl_code_gen.dart:210-222 | lib/features/tools/vpl/vpl_code_gen.dart:549-561 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/tools/vpl/vpl_code_gen.dart: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. 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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2e7a4142d3e47dfa67ce857f506dca9574a95701b3ffc87a7f8cc526464323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 4): lib/features/tools/vpl/vpl_code_gen.dart:238-250 | lib/features/tools/vpl/vpl_code_gen.dart:255-258 | lib/features/tools/vpl/vpl_code_gen.dart:262-265 | lib/features/tools/vpl/vpl_code_gen.dart:576-588 \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 \u0060lib/features/tools/vpl/vpl_code_gen.dart:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/features/tools/vpl/vpl_code_gen.dart:250\u0060 calls \u0060_resolveInput\u0060 and \u0060lib/features/tools/vpl/vpl_code_gen.dart:258\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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d700cd5d488cf4cef5891f41d2a0f97c44fed3719e58d6c7344931816bbe2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): lib/features/knowledge/knowledge_base_page.dart:259-270 | lib/features/mcp/mcp_page.dart:386-397 | lib/features/models/model_cards_page.dart:181-192 | lib/features/settings/widgets/embedding_section.dart:265-276 | lib/features/skills/skills_page.dart:447-458 \u2014 before extracting anything, compare \u0060lib/features/knowledge/knowledge_base_page.dart\u0060 and \u0060lib/features/settings/widgets/embedding_section.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/features/knowledge/knowledge_base_page.dart:259\u0060 it does not close everything it opens, so those exact 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":"lib/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22892c0b7fdfac2d4e8a1f59c655a0536330b77019cbc7347e207b2972462ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/features/tools/flowchart/flowchart_editor.dart:457-468 | lib/features/tools/siyu/siyu_editor.dart:352-363 | lib/features/tools/vpl/vpl_editor.dart:542-553 \u2014 \u0060lib/features/tools/flowchart/flowchart_editor.dart\u0060 and \u0060lib/features/tools/siyu/siyu_editor.dart\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 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"851b7235aa4ea90410838de52f32a92cf59f411e2f56f7f7e2eae336cc7ce314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/core/toolshell/executor.dart:1055-1066 | lib/core/toolshell/executor.dart:1416-1427 \u2014 both copies are in the same file, so extract the block into one function there 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/core/toolshell/executor.dart"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb82e13a960bd6516f2968a1dbb642c9e56d1bb231469b9bc295edeaebcbe49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/features/chat/widgets/markdown_view.dart:368-379 | lib/features/chat/widgets/visualization_cards.dart:83-94 \u2014 before extracting anything, compare \u0060lib/features/chat/widgets/markdown_view.dart\u0060 and \u0060lib/features/chat/widgets/visualization_cards.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c235c0e6ff4cbcf73ebc682567c7f0118e0cbdf3cbaf1ac0218af8cc5480c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/features/memory/memory_page.dart:128-139 | lib/features/settings/widgets/embedding_section.dart:80-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/features/memory/memory_page.dart:128\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/features/memory/memory_page.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a63edc8bbacf47c164ce61e8aea9f0bdba60ed8b9d02d951dd5c40df6e485c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/features/chat/widgets/markdown_view.dart:394-404 | lib/features/chat/widgets/markdown_view.dart:517-527 | lib/features/chat/widgets/visualization_cards.dart:195-207 | lib/features/chat/widgets/visualization_cards.dart:407-419 \u2014 before extracting anything, compare \u0060lib/features/chat/widgets/markdown_view.dart\u0060 and \u0060lib/features/chat/widgets/visualization_cards.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/features/chat/widgets/markdown_view.dart:394\u0060 it does not close everything it opens, so those exact 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/features/chat/widgets/markdown_view.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"87270228132ff0d504b64e061d2a2a8133c285bc1190136032369139880e9394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/core/online_service/online_server.dart:1018-1028 | lib/core/online_service/online_server.dart:1044-1054 | lib/core/online_service/online_server.dart:1066-1076 \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/core/online_service/online_server.dart:1018\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/core/online_service/online_server.dart"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc271e134676bf35b7af3a87f1183f2bdc6c8e70534c143eb844df51edd1de5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/image/image_agent_service.dart:548-558 | lib/core/image/image_agent_service.dart:603-613 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/core/image/image_agent_service.dart:548\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/core/image/image_agent_service.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f33c63dddb897dbe072bfd17ade0245c74d7f29919d657bab64a4fa398946cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/python/python_bootstrap.dart:94-104 | lib/core/python/python_bootstrap.dart:106-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/python/python_bootstrap.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e0222a9df310414e5c7544d4eaf4666c312dd1ec8faf1945e375e22f2614b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/server/api_server.dart:300-310 | lib/core/server/api_server.dart:539-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/server/api_server.dart:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/api_server.dart"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1828a5a55ec4f2e21843e3eaa70bb5e2463cc66a7f7ce66d08b83b8fc2dfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/features/chat/widgets/new_workspace_dialog.dart:71-82 | lib/features/multi_agent/widgets/create_agent_dialog.dart:67-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/chat/widgets/new_workspace_dialog.dart:71\u0060 it does not close everything it opens, so those exact 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/features/chat/widgets/new_workspace_dialog.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b4ac39d9716fd34eb8206f827589d24797c2f349f72e4d4bb13b30f350c004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/features/settings/settings_page.dart:248-258 | lib/features/settings/settings_page.dart:464-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/settings_page.dart:248\u0060 it does not close everything it opens, so those exact 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":"lib/features/settings/settings_page.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"58768b9f33598521fdc5ec00b9ca163328c0fb7494965b20471bcab3d07b9e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/features/settings/widgets/embedding_editor_dialog.dart:58-68 | lib/features/settings/widgets/embedding_editor_dialog.dart:140-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/features/settings/widgets/embedding_editor_dialog.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"96966a4c9408dc35697a40fad0f1f8c52f263cf8406e7b7138f0b6a7e8876d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/shared/widgets/region_screenshot.dart:190-200 | lib/shared/widgets/screenshot_editor.dart:529-539 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/shared/widgets/region_screenshot.dart:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/shared/widgets/region_screenshot.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3c0a1e0c2438b6014731a56a83bb4f5661437e1048e647c7a1b28941a0c266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 4): lib/core/agent/agent_context.dart:918-927 | lib/core/agent/agent_context.dart:929-939 | lib/core/agent/agent_context.dart:941-950 | lib/core/agent/agent_context.dart:951-956 \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 \u0060lib/core/agent/agent_context.dart: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. 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/core/agent/agent_context.dart"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"980944f95ed006954b8dd24987de20d1735d8d64b0a3547aaa1adbff9e15c717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/core/toolshell/schedule_executor.dart:175-184 | lib/core/toolshell/schedule_executor.dart:244-253 | lib/core/toolshell/schedule_executor.dart:331-340 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/schedule_executor.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b2f58837d9a5e5bac976885461e3daded9e281bdff21c5203b08ef2313ad59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/features/settings/widgets/font_section.dart:154-163 | lib/features/settings/widgets/font_section.dart:262-271 | lib/features/settings/widgets/font_section.dart:346-355 \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/features/settings/widgets/font_section.dart: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. 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/features/settings/widgets/font_section.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e390dedddb21e7669aaeb075659b35a245f51c4b5003e21098816d143048b895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/chat/chat_page.dart:1160-1169 | lib/features/chat/chat_page.dart:1371-1380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/chat_page.dart:1160\u0060 it does not close everything it opens, so those exact 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/features/chat/chat_page.dart:1382\u0060 calls \u0060watch\u0060 and \u0060lib/features/chat/chat_page.dart:1171\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/features/chat/chat_page.dart"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4e05a656c4352193abdd96d00926eef58a15408b75f6956407e83cadd85ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/chat/chat_page.dart:2107-2116 | lib/features/chat/chat_page.dart:2794-2803 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/chat/chat_page.dart:2107\u0060 it does not close everything it opens, so those exact 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":"lib/features/chat/chat_page.dart"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"405fb20170113a7b34593cf0d1edef62420956ea850b4481300f0d3215ef36e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/chat/chat_page.dart:3048-3057 | lib/features/chat/widgets/message_bubble.dart:625-634 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/features/chat/chat_page.dart:3048\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/features/chat/chat_page.dart"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea8e451d9519d2754eb7fade8322bfa064a8e681b9a913cc5104cf33860d1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): lib/features/history/history_page.dart:157-166 | lib/features/history/history_page.dart:185-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/history/history_page.dart:157\u0060 it does not close everything it opens, so those exact 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/features/history/history_page.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd91657fb1e771860e14d0b86c369ae2afd04b090f2442158d0125464904123e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/models/model_cards_page.dart:739-748 | lib/features/models/model_cards_page.dart:773-782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/models/model_cards_page.dart:739\u0060 it begins part-way through the construct above it, so those exact 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":"lib/features/models/model_cards_page.dart"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9438d79d074cb0bdab732d1c116aee0b1867d1b7bd4cf31eb147c8c84e68c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/tools/flowchart/flowchart_editor.dart:470-479 | lib/features/tools/siyu/siyu_editor.dart:365-374 \u2014 \u0060lib/features/tools/flowchart/flowchart_editor.dart\u0060 and \u0060lib/features/tools/siyu/siyu_editor.dart\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 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/tools/flowchart/flowchart_editor.dart:470\u0060 it does not close everything it opens, so those exact 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":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7c8a57ab06144d4eb3f1fa3b7fe0c0489e711b148b8bc910a75c599147c277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:603-612 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:938-947 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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/features/tools/formula_ocr/formula_ocr_tool.dart:603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a774679e898a9ef5023d91f719b004f25ae64bdff7ceacde2473045246ee23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lib/core/llm/anthropic_client.dart:327-335 | lib/core/llm/anthropic_client.dart:435-443 | lib/core/llm/gemini_client.dart:308-316 | lib/core/llm/gemini_client.dart:401-409 \u2014 before extracting anything, compare \u0060lib/core/llm/anthropic_client.dart\u0060 and \u0060lib/core/llm/gemini_client.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/llm/anthropic_client.dart:327\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/core/llm/anthropic_client.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1be7008fb45427e75296fdbb630f9a332230edff5d46e064120b468eefcf0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): lib/core/llm/anthropic_client.dart:438-446 | lib/core/llm/anthropic_sdk_client.dart:291-297 | lib/core/llm/gemini_client.dart:404-412 \u2014 before extracting anything, compare \u0060lib/core/llm/anthropic_client.dart\u0060 and \u0060lib/core/llm/gemini_client.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/llm/anthropic_client.dart:438\u0060 it begins part-way through the construct above it, so those exact 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":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d86cf3aefcf603408b98f19e61f96e92b52275ff0a0956e4f8714f6c51319a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/features/chat/chat_page.dart:1161-1169 | lib/features/chat/chat_page.dart:1372-1380 | lib/features/chat/chat_page.dart:2249-2258 \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/features/chat/chat_page.dart:1161\u0060 it does not close everything it opens, so those exact 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/features/chat/chat_page.dart:1382\u0060 calls \u0060watch\u0060 and \u0060lib/features/chat/chat_page.dart:1171\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/features/chat/chat_page.dart"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebda00fceca2f94990931e47b90d4dc306d5866c2420f8bdedd3dae90803166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/features/tools/flowchart/flowchart_editor.dart:471-479 | lib/features/tools/siyu/siyu_editor.dart:366-374 | lib/features/tools/vpl/vpl_editor.dart:560-568 \u2014 \u0060lib/features/tools/flowchart/flowchart_editor.dart\u0060 and \u0060lib/features/tools/siyu/siyu_editor.dart\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 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/tools/flowchart/flowchart_editor.dart:471\u0060 it does not close everything it opens, so those exact 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":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"81de87da495ed88458e15457256f7bda4e3a1cb7024f5c577d597ef1879a3bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/core/llm/anthropic_sdk_client.dart:229-237 | lib/core/llm/anthropic_sdk_client.dart:286-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/core/llm/anthropic_sdk_client.dart:229\u0060 it begins part-way through the construct above it, so those exact 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/core/llm/anthropic_sdk_client.dart:228\u0060 calls \u0060_parseResponse\u0060 and \u0060lib/core/llm/anthropic_sdk_client.dart:286\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/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0529178b8b6bf8bf927c1f5d40bc513bd110782f33713ea74a7a555984edd018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/core/server/api_server.dart:283-290 | lib/core/server/api_server.dart:519-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/core/server/api_server.dart: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/core/server/api_server.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab26e1883798ddb8e3b0796160f585089a5761a5b5992200497f63e93db87304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/core/toolshell/executor.dart:281-289 | lib/core/toolshell/executor.dart:328-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/core/toolshell/executor.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd171f8b3ef893b6caea4780a9730ba9b2aba04448df9ff98a82b179cfaaac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/core/toolshell/schedule_executor.dart:134-142 | lib/core/toolshell/schedule_executor.dart:293-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/schedule_executor.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bf6dffd49844324fcb3a46aed15403aa883ed236698579fa4e15f8330dbd96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/features/mcp/mcp_page.dart:324-333 | lib/features/skills/skills_page.dart:65-73 \u2014 \u0060lib/features/mcp/mcp_page.dart\u0060 and \u0060lib/features/skills/skills_page.dart\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 46 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/features/mcp/mcp_page.dart:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/features/mcp/mcp_page.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aa57dc698a7f1e8e4cd1d22a909c4205cca97c3a6dc8e3fe51694427ab1bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/features/settings/settings_page.dart:578-586 | lib/features/settings/settings_page.dart:622-630 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/settings_page.dart:578\u0060 it does not close everything it opens, so those exact 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":"lib/features/settings/settings_page.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ab0511f2ae8173fb474443608080958aaa898340a89a1567f179096e23bf1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/features/settings/widgets/api_server_section.dart:565-573 | lib/features/settings/widgets/api_server_section.dart:615-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/settings/widgets/api_server_section.dart:565\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/features/settings/widgets/api_server_section.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3b0b464febb95c7559c485be87a9ea940d907f41864c425f91141f9306e383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/features/experts/experts_page.dart:37-44 | lib/features/memory/memory_page.dart:22-29 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/experts/experts_page.dart:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/features/experts/experts_page.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"338b956a8c53607eff3bff112ca38ee976d36c261dc9a82686f48c0f9868ae43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/features/multi_agent/widgets/agent_badge_dialog.dart:43-50 | lib/features/multi_agent/widgets/create_agent_dialog.dart:65-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/multi_agent/widgets/agent_badge_dialog.dart:43\u0060 it does not close everything it opens, so those exact 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":"lib/features/multi_agent/widgets/agent_badge_dialog.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e41bd4d1dceff87ad6052145ee370d8d64bef57a0ecbce7fe83388996cd011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/features/settings/widgets/embedding_section.dart:125-133 | lib/features/skills/skills_page.dart:601-608 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/features/settings/widgets/embedding_section.dart:125\u0060 it does not close everything it opens, so those exact 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/features/settings/widgets/embedding_section.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"da04251aabcb22b58dc825476e7f4269f230a093c2607c2a48038da194372804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:228-236 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:840-847 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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/features/tools/paddle_ocr/paddle_ocr_tool.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf7c33a8cbaca423796a12d5be029b881acee7933c05e3267906b4b4483e881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/features/multi_agent/widgets/agent_chat_panel.dart:91-97 | lib/features/multi_agent/widgets/command_center.dart:55-61 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/features/multi_agent/widgets/agent_chat_panel.dart:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/widgets/agent_chat_panel.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0811150f7a08ff10585a7b7ab482af2d04433f6ebc6741b55701f4ff9f4fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:99-105 | lib/features/tools/image_gen/image_gen_tool.dart:153-159 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/image_gen/image_gen_tool.dart\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 67 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/features/tools/formula_ocr/formula_ocr_tool.dart:99\u0060 it begins part-way through the construct above it, so those exact 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00102a69610e1bfcad39f33bb42a322a710c629bad781b5e5e0e554198fafe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/features/mcp/mcp_page.dart:73-78 | lib/features/skills/skills_page.dart:118-123 \u2014 \u0060lib/features/mcp/mcp_page.dart\u0060 and \u0060lib/features/skills/skills_page.dart\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 46 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/features/mcp/mcp_page.dart:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/mcp/mcp_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d922e8ad2b8b884634e85329c0db19dc4cc135f1149dc6d40bc4101718e2d9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/features/tools/vpl/vpl_code_gen.dart:151-156 | lib/features/tools/vpl/vpl_code_gen.dart:492-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/features/tools/vpl/vpl_code_gen.dart:492\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/features/tools/vpl/vpl_code_gen.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9dd81a0018e44bcc4d732d6363df78f2bd39509c01eb3460ac0885a19ba020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/core/llm/anthropic_client.dart:37-42 | lib/core/llm/anthropic_sdk_client.dart:41-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. 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/core/llm/anthropic_client.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c2d769fb2946dc96e1d9d71f2cb0571833c48efd8be4d4e7dfdd74792ca1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/core/mcp/transports/sse_transport.dart:254-261 | lib/core/mcp/transports/streamable_http_transport.dart:247-254 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/core/mcp/transports/sse_transport.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eebab00faca620595061755925746c93ac5acc72aec4b9abb99ab4b00c2c85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/features/tools/flowchart/flowchart_editor.dart:364-369 | lib/features/tools/siyu/siyu_editor.dart:225-230 \u2014 \u0060lib/features/tools/flowchart/flowchart_editor.dart\u0060 and \u0060lib/features/tools/siyu/siyu_editor.dart\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 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"3787c4e35a1373f20cfa3586ec3d5c3d10b2a4638ec1860e39d7ebe92ecb31cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/features/tools/formula_ocr/formula_ocr_tool.dart:473-480 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:377-384 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\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 8 separate duplicated blocks between them, totalling at least 176 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cef8b0cbab51ed090017f6ea2ca90210c6c53ae0a48089096a44481f0ffbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/core/db/daos/kb_dao.dart:15-21 | lib/core/db/daos/model_cards_dao.dart:11-17 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/core/db/daos/kb_dao.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"827dd3c7d60a530d6ceaf65951ee2b228c9cb4f8faf47edce2d3f92700ebb0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/features/knowledge/knowledge_base_page.dart:78-87 | lib/features/settings/widgets/embedding_section.dart:59-68 \u2014 before extracting anything, compare \u0060lib/features/knowledge/knowledge_base_page.dart\u0060 and \u0060lib/features/settings/widgets/embedding_section.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd5b197a3be36c6eb86f4a43f041cc44a8d7580edd9a358917189eb2fba7988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/features/tools/formula_ocr/formula_ocr_tool.dart:53-58 | lib/features/tools/image_gen/image_gen_tool.dart:59-64 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:60-65 \u2014 \u0060lib/features/tools/formula_ocr/formula_ocr_tool.dart\u0060 and \u0060lib/features/tools/image_gen/image_gen_tool.dart\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 67 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":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af3c5b91a0c86a9e4698965d257920be52f8f3451bd4ae28880e62da0b42a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/features/tools/image_gen/image_gen_tool.dart:630-635 | lib/features/tools/paddle_ocr/paddle_ocr_tool.dart:812-817 \u2014 \u0060lib/features/tools/image_gen/image_gen_tool.dart\u0060 and \u0060lib/features/tools/paddle_ocr/paddle_ocr_tool.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 34 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":"lib/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acc418d0314a2ac712228a6c88597b43b8f23e440e512f9da58a6039891c13b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71\u201374 lines \u00D7 2): assets/scripts/paddle_ocr/doc_parse_task.py:25-95 | assets/scripts/paddle_ocr/ocr_task.py:25-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. 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":"assets/scripts/paddle_ocr/doc_parse_task.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6148dddada7fe6c516ac0723a0e62401145c8bb357ba2b4c52094865764774b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:949-986 | assets/office_engine/word/word_engine/reader.py:731-767 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9cffd6f4c580ccd56dd60d16bf788adbc8deaede55416cc0b009d744c4e3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201342 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:1046-1085 | assets/office_engine/word/word_engine/writer.py:1092-1133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060assets/office_engine/excel/excel_engine/reader.py:1046\u0060 it begins part-way through the construct above it, so those exact 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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ddbfc04597af4e1e2a842d0eff5699a83ac068e061b8df312c49836f9f2dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): assets/office_engine/excel/excel_engine/cli.py:49-70 | assets/office_engine/word/word_engine/cli.py:64-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. 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":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81a0c1f5d092b9b356029b68b40bdcafd8d2ceb290cb73df70c2ea45b8b1960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): assets/office_engine/word/word_engine/reader.py:169-190 | assets/office_engine/word/word_engine/reader.py:214-235 \u2014 both copies are in the same file, so extract the block 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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa501bf316cdb59988ac046dcb2d2e4565c9f3eeec918ee1e8e342aac8d6fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): assets/office_engine/excel/excel_engine/cli.py:72-89 | assets/office_engine/word/word_engine/cli.py:95-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060assets/office_engine/excel/excel_engine/cli.py:72\u0060 it begins part-way through the construct above it, so those exact 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":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"df05017399893c5952a051c467140b75ea9b9662cdfa3ff8b1c6864b8606a2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): assets/office_engine/excel/excel_engine/protocol.py:53-65 | assets/office_engine/word/word_engine/protocol.py:64-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060assets/office_engine/word/word_engine/protocol.py:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"assets/office_engine/excel/excel_engine/protocol.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"67240eca97168c8d2e59df36502e6bf2a7206c0d60194aa8ff444a2f12de0c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:329-344 | assets/office_engine/excel/excel_engine/reader.py:642-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060assets/office_engine/excel/excel_engine/reader.py:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f81e85e22f612d008b8230ca57c148333f454d8fbac6fb2133a3ca67bbf8811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:90-104 | assets/office_engine/word/word_engine/utils.py:122-136 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"516bf534d11dd7596e03a53e067c29fd28d0037aeea8282efdf0f038be1b5107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:108-117 | assets/office_engine/word/word_engine/utils.py:140-155 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e238992a90d4053e3d9127c97cec1e0242fa17b934b10cf8c2f4158ef56acca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:357-365 | assets/office_engine/excel/excel_engine/reader.py:386-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a71e9f7a007e2b6ca4b0c63a28c6d2b1f1642a3b15a0973b54522b25214db0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:915-922 | assets/office_engine/word/word_engine/reader.py:490-495 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060assets/office_engine/excel/excel_engine/reader.py:915\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d539917f931e8b6dd4748cc4b759e570cf8567a3e76eea5af83e549d2a2c8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:1026-1034 | assets/office_engine/word/word_engine/writer.py:1061-1069 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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, \u0060assets/office_engine/word/word_engine/writer.py:1057\u0060 calls \u0060rmtree\u0060 and \u0060assets/office_engine/excel/excel_engine/reader.py:1022\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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"9601abecc3f568f337b13e24cb0a85607653bc4d2847aed759eaa6b0fbf28111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:69-76 | assets/office_engine/word/word_engine/utils.py:76-83 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14cd62db8d89b6e94641eb7153060c77b5257d42292063f913d68b02a4e7623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): assets/office_engine/word/word_engine/reader.py:477-484 | assets/office_engine/word/word_engine/writer.py:849-856 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"8952e67ee3ba0ba11c98a7adec681bf9bc149a58417b0a48311e09ae9bd4a300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): assets/office_engine/word/word_engine/writer.py:313-319 | assets/office_engine/word/word_engine/writer.py:326-332 \u2014 both copies are in the same file, so extract the block 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":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0c4969f534224d4f0b9acdc4c70354d8c47318fa401ad7867d5e158b93d42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): assets/office_engine/excel/excel_engine/reader.py:888-893 | assets/office_engine/word/word_engine/reader.py:475-480 | assets/office_engine/word/word_engine/writer.py:847-852 \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":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"982993690f62251dc43d27e3bda28c4f990c716d0c0c3f235534baf44fd8091f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): assets/office_engine/excel/excel_engine/reader.py:239-245 | assets/office_engine/excel/excel_engine/reader.py:563-569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"804767b4230907623f3889b4ce1a3e9603fa1479d35f672a7a609c65191854f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:56-60 | assets/office_engine/word/word_engine/utils.py:61-65 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fallback\u0060 to \u0060str = \u0022sheet\u0022\u0060 in one and \u0060str = \u0022file\u0022\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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c5689cd3d66441e6e2d625341e231b3109f203204263368845637f76806362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): assets/office_engine/excel/excel_engine/protocol.py:29-39 | assets/office_engine/word/word_engine/protocol.py:39-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. 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":"assets/office_engine/excel/excel_engine/protocol.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"012507fe01d1c246909760e1332aae79b5a96df1e706d332954a0afcb0c17d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:27-31 | assets/office_engine/word/word_engine/utils.py:31-35 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dc748882241ded4941658f375641b4a47a8b398a0331f715020663698542c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): assets/office_engine/excel/excel_engine/utils.py:80-86 | assets/office_engine/word/word_engine/utils.py:87-93 \u2014 before extracting anything, compare \u0060assets/office_engine/excel/excel_engine/utils.py\u0060 and \u0060assets/office_engine/word/word_engine/utils.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"assets/office_engine/excel/excel_engine/utils.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf4026a363c9b8d3369a50c998cca9a5ea26047626500194329769517edd240"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: dock_panel: dock_panel: abstractness 0.05, instability 0.00, distance 0.95 \u2014 an application entry point, so it is concrete by design \u2014 the distance is expected; what is worth checking is that other projects depend on it at all, since a host should be a leaf of the graph."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"241793e4ca6c7d4655a407193361b3e977acac556df5e99a7c499b9460718e41"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImageAgentCapability (LCOM4 6): ImageAgentCapability\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"965300ceead91ea5421f69ddfdc40b8002f2fb9ae1185adbdfe47d12bf0500dc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatNotifier (LCOM4 5): ChatNotifier\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba7dba486fc314cf21cd13c4ca73d614f00b3373b653bb662b161378edee994"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// 3. \u5B8C\u6574\u5185\u5BB9\u53EF\u9009\u5730\u6C89\u6DC0\u5230\u8BB0\u5FC6\u7CFB\u7EDF\uFF08TODO\uFF09 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/transformers/context_compactor.dart"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c82a5affcb1a604516f9df0d43849cc113ae46336b810cf0139b27bb1f8482f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no map of the repository\u0027s parts: The repository has 5 units (\u0060archify\u0060, \u0060dock_panel\u0060, \u0060flutter_highlight\u0060, \u0060gpt_markdown\u0060, \u0060highlight\u0060); \u0060README.md\u0060 and the documents it links name none of them. Add a short list of the parts and what each does."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f047b1120601c2537f0645d9b67f052758989ccf5801de4d919633bcff2a3cc2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060packages/dock_panel/lib/main.dart\u0060 makes this repository a deployable product (line 6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/dock_panel/lib/main.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9ae84cf7242d4639b94c8ce769c3404c0e68002948befcccb1edebcd17fc3b"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (71426 LoC, 404 module-visible types across 78 directories) overshoots its size bounds. 1 of 8 build unit(s) (Python, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.5/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"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":"6217492faf1d73756f7acf67b44df2c7809cef55b0a95251be59deae2bb79aef"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.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]","[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":"3.1.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"05e3112b4f261a3947ad67dc2df83874745eb2d40564c12bc54432a9d9ce8599"}},{"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":"586d652eac2e479fafd77733e35b3283119f064c6905631d90acb80a47af286b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: agent_context.dart \u2194 chat_page.dart: \u0060lib/core/agent/agent_context.dart\u0060 and \u0060lib/features/chat/chat_page.dart\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060dceaf40e\u0060 Version 1.0.5 is expected to be released.; \u006049bb518d\u0060 Version 1.0.4 is expected to be released.; \u0060428caf47\u0060 Version 1.0.4 is expected to be released. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d423f206b106dd5bceb7729410482332fbede524e47c704feb7b07916aa2bc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat_provider.dart \u2194 model_cards_page.dart: \u0060lib/features/chat/chat_provider.dart\u0060 and \u0060lib/features/models/model_cards_page.dart\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060ef0e0de3\u0060 Version 1.0.5 is expected to be released.; \u00604ffd1063\u0060 Version 1.0.5 is expected to be released.; \u00607805afa8\u0060 Version 1.0.5 is expected to be released. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"025cbed63cd4fb626cb652fc94e29d0d3b3f096418347ca5684e4607e88c7333"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: agent_context.dart \u2194 model_cards_page.dart: \u0060lib/core/agent/agent_context.dart\u0060 and \u0060lib/features/models/model_cards_page.dart\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006013120f13\u0060 Version 1.0.5 is expected to be released.; \u0060dceaf40e\u0060 Version 1.0.5 is expected to be released.; \u006049bb518d\u0060 Version 1.0.4 is expected to be released. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be78b5de223c575264f840a20cd2b4379bb5673b0a7431f9d215e38a280a78e4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/web/index.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0c45c3a71e79529635580cb09e3dddf00165837d788109abdec04308d36310"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/assets/template.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"062e16793efcacfd156da7c951e46e479311e6beff74c1f0652a07e7865c2ea9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/assets/template.html"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"601a78b15ec08a568996ccd47770c9a5cc3f16b1f7d041046ab238e2428977b4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.archify-toast\u0060 moves (\u0060transition: opacity 0.2s, transform 0.2s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/assets/template.html"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2194cd0365bc9f8a16f74cd57bd3d1ea58aecc831c011ee7548d4af74b39ef4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060#stop-btn\u0060 sets color: #fff on background-color: #f44336 \u2014 3.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/web/style.css"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a12f898853ff843f0a2e73c6acbde04c0cabbb29e7cbe70fcdbb9fafcf4279"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: S (1183 abstract methods): \u0060S\u0060 declares 1183 abstract methods: \u0060appTitle\u0060, \u0060navChat\u0060, \u0060navModels\u0060, \u0060navSkills\u0060, \u0060navTools\u0060, \u0060navMultiAgent\u0060, \u0060navExperts\u0060, \u0060navMcp\u0060, \u0060navSettings\u0060, \u0060navHistory\u0060, \u0060navMemory\u0060, \u0060navLogs\u0060, \u0060navPet\u0060, \u0060settingsTitle\u0060, \u0060settingsAppearance\u0060, \u0060settingsTheme\u0060, \u0060settingsAccentColorTitle\u0060, \u0060settingsAccentColorPurple\u0060, \u0060settingsAccentColorGreen\u0060, \u0060settingsAccentColorBlue\u0060, \u0060settingsAccentColorCyan\u0060, \u0060settingsAccentColorTwilight\u0060, \u0060settingsNotifyOnBlur\u0060, \u0060settingsNotifyOnBlurDesc\u0060, \u0060settingsEnterAction\u0060, \u0060settingsEnterSend\u0060, \u0060settingsEnterNewline\u0060, \u0060settingsEnterSendHint\u0060, \u0060settingsEnterNewlineHint\u0060, \u0060settingsStorage\u0060, \u0060settingsDatabasePath\u0060, \u0060settingsHistoryPath\u0060, \u0060settingsSkillsPath\u0060, \u0060settingsLogsPath\u0060, \u0060settingsToolPaths\u0060, \u0060settingsPandocPath\u0060, \u0060settingsPandocNotDetected\u0060, \u0060settingsQdrant\u0060, \u0060settingsEmbedding\u0060, \u0060settingsAbout\u0060, and 1143 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/l10n/app_localizations.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"479ee4e4302b43abfb91b94b1739c05138bec6fa1a8bfe54acb19caa31e6d5a1"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"C2","level":"note","message":{"text":"Thin authorization enforcement: Only 1 place(s) refuse an unauthorized caller \u2014 too few to demonstrate default-deny across handlers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1240e406e864a89e38d5e3fa370dee11971db94808c3db2fda9b41bf2e5b8efb"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_url_not_stored_test.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c662ae3a2fdd67735f439ce6765f3ea51dc454c34e5117808ca8d4244cafe05"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_url_not_stored_test.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaac74e92a310a529f814b5865204f1985c31db31a098a9bb143a00abe3b262"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_with_title_test.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9f2282ffc76b0bf449b98260c1856ad373a2c8d7c964952016feec2a6685f8"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_with_title_test.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"903ffb1d86da3bb8bc48fce189029a58866dada5399808de3137831819efcf65"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_with_title_test.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dfc05dc1d2ba3b6b216502f689884dc0a8cd8107dc12de604181e6945431fc"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gpt_markdown/test/bugs/link_with_title_test.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0379d02ad98a7582521fef9533ccaf6fde6bf5da17c1414ff643ccc9b94c8fb"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: assets/office_engine/word/README.md links to \u0060images/\u56FE1.png\u0060, but \u0060assets/office_engine/word/images/\u56FE1.png\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":"assets/office_engine/word/README.md"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"99107f0b250541db146291d435d983fa6d85b4ee9e35a18f359a9c961f8de988"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: packages/gpt_markdown/test/README.md links to \u0060img.png\u0060, but \u0060packages/gpt_markdown/test/img.png\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":"packages/gpt_markdown/test/README.md"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf61d03052d5433419687ed5adc82e389e6b97414b2d8034686160703fd88d0"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060assets/scripts/archify/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":"assets/scripts/archify/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a0cb05dd1107c5d6acea5e7a4af4020cc8b2a2bfa7dbc6d69776dc4e169500"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060loadAll\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/font/custom_font_loader.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4636a4296a7f1fa00481cefcf8983e75220847d8b3b13f6077530c9c01f759"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060removeFont\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/font/custom_font_loader.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"30929acff84dc8fab70fd78d2d91e7b9191ab652c6c7135b967abe2fd9097545"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 10 plain JS \u2014 the untyped files are assets/scripts/archify/renderers/architecture/render-architecture.mjs, assets/scripts/archify/renderers/dataflow/render-dataflow.mjs, assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs, assets/scripts/archify/renderers/sequence/render-sequence.mjs, assets/scripts/archify/renderers/shared/cli.mjs, assets/scripts/archify/renderers/shared/geometry.mjs (\u002B4 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (13 clone groups): 13 duplicated blocks under assets/scripts/archify/renderers/ have copies in at least two of the sibling directories architecture, dataflow, lifecycle, sequence, workflow \u2014 11 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 13 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 13 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 13 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3eddbdd929487569573432488b19ac76318003ba62e937858bf9978abf3c0b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (160 matched lines \u00D7 2 locations): assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:88 \u00B7 assets/scripts/archify/renderers/workflow/render-workflow.mjs:66 \u2014 the two spans are one implementation copied and then locally edited \u2014 1442 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c533882aab3179a1e44032f8ded121d78095fa323a918e48265adf79f97baa8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (91 matched lines \u00D7 2 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:113 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:148 \u2014 the two spans are one implementation copied and then locally edited \u2014 900 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ce6d9295425eddfbc0262b1a0cbe001a8f85587478e664998804616c66fd7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (72 matched lines \u00D7 2 locations): assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:59 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:97 \u2014 the two spans are one implementation copied and then locally edited \u2014 901 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ece726f1dbf1ba1272f5e852bf862d2f15658263e2d662f552af371f38eb07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:181 \u00B7 assets/scripts/archify/renderers/workflow/render-workflow.mjs:242 \u2014 the two spans are one implementation copied and then locally edited \u2014 419 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4745eda28deab99f2bf4055ddadd07e0d2c9671dde825c3828d158d221e9afa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:153 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:200 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"337115a40eea311394cb8e0dc59a342caf0e16c131c79ff963b2363cdb14d159"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:286 \u00B7 assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:264 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:353 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eabb1ebfe885eb3299e955da78c2f4cf39af701f78fbe8203603e8364a9ab92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:194 \u00B7 assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:181 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:236 \u00B7 assets/scripts/archify/renderers/workflow/render-workflow.mjs:242 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebeb27aa9c6a9b544886f7bcefeaeead242312c105dbf40c203203eb69b379d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:218 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:293 \u00B7 assets/scripts/archify/renderers/workflow/render-workflow.mjs:276 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"462098385f3e3f349377fa5e37ac910d1b21d3891e687d472ed76308e401b49a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:150 \u00B7 assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:122 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:174 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0e1c3707affe7f402ede857d9a26e8f7ed12889f9d9c42d19fe229054da65a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:143 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:195 \u00B7 assets/scripts/archify/renderers/sequence/render-sequence.mjs:119 \u00B7 assets/scripts/archify/renderers/workflow/render-workflow.mjs:188 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3689ca5948f6273965ce4a36cd744e31488f1925756474f176527bce70bd98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): assets/scripts/archify/renderers/architecture/render-architecture.mjs:140 \u00B7 assets/scripts/archify/renderers/dataflow/render-dataflow.mjs:111 \u00B7 assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs:164 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"757b5ad9841983641a112f220718070ca7baf0e5715571f68cfcf85763d61535"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: assets/scripts/archify/renderers/shared/validator.mjs:14 imports ajv/dist/2020.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/shared/validator.mjs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0398b0101a4455c47342d3be1ef1779ac60d3b24bf83e808ac48d0d48fa8911d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateWorkflow (cyclomatic 53, cognitive 77): validateWorkflow has cyclomatic complexity 53 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/workflow/render-workflow.mjs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bb4d6154aa47d4e0a2643bdb4e51b705890861ef5e6c19af8e9946fdf5321c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLifecycle (cyclomatic 53, cognitive 74): validateLifecycle has cyclomatic complexity 53 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9dc789ceacf7a83f2f4de595c7952c294ed65221c860ff77a1067a650b90457"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateDataflow (cyclomatic 51, cognitive 70): validateDataflow has cyclomatic complexity 51 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e88f359bcd6782630073b90783f7fa934ab0610cd1f07c9fad70b31a191eb87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateArchitecture (cyclomatic 49, cognitive 62): validateArchitecture has cyclomatic complexity 49 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/architecture/render-architecture.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccc57d31e84af3d807c9f85fa1a230507e5088c1f767c633a820f40a7571c84"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSequence (cyclomatic 44, cognitive 62): validateSequence has cyclomatic complexity 44 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/sequence/render-sequence.mjs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc56ae4c05867ffae6e8da9f59212524e0602d1af6dcb994280a5cdcd3fb97c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeVia (cyclomatic 17, cognitive 11): routeVia has cyclomatic complexity 17 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce1d02a10dfb96acd57167555c993a8e093284ca4de9950660fd2b7eef3875e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeVia (cyclomatic 17, cognitive 11): routeVia has cyclomatic complexity 17 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/workflow/render-workflow.mjs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"802c8fbd45949b005232423f9cc274dca81a6c4f5eda3b297fe14d748c7fd6de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function measureState (cyclomatic 13, cognitive 12): measureState has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/lifecycle/render-lifecycle.mjs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"78959e6907c13889e3070a090ec41598a0e442057d30f8d15ac6c9bd4955a1b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeVia (cyclomatic 13, cognitive 10): routeVia has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/dataflow/render-dataflow.mjs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb993f3b2fd31c42610cb069298bb23d5e07228b61379fdd71ee044547af8807"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function annotatePath (cyclomatic 12, cognitive 16): annotatePath has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/scripts/archify/renderers/shared/validator.mjs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c451dff92a0ee000b7c613ed207633528b729e7bff7569117bb21468a598983"}},{"ruleId":"R6","level":"warning","message":{"text":"No test, lint or typecheck script: test \u2717 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a9372ffc30204d52cc3368af49ceaa995574db973935e30b3946f83785dea15b"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository runs an HTTP server that is not bound to the loopback interface alone \u2014 or binds it at an address its source does not spell out \u2014 and nothing in its Dart source secures the transport: no \u0060HttpServer.bindSecure\u0060 or \u0060securityContext:\u0060, no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: lib/core/server/api_server.dart:53 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Dart server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: lib/core/server/api_server.dart:53 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content == null || (content is String \u0026\u0026 content.trim().isEmpty) || (content is List \u0026\u0026 content.isEmpty)\u0060 appears character-identically in 2 files \u2014 lib/core/agent/transformers/context_compactor.dart, lib/core/toolshell/agent_loop.dart. 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/core/agent/transformers/context_compactor.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"9931a36dc40f1388ba98b34bf020e36ff2ed8fc69f6aa533e15b7dd492f3a7c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060d.status == KbDocStatus.pending || d.status == KbDocStatus.failed\u0060 appears character-identically in 2 files \u2014 lib/features/knowledge/knowledge_base_page.dart, lib/providers/kb_provider.dart. 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/features/knowledge/knowledge_base_page.dart"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdf3636d64f47c7c793257544260d06aaef73f9f57ef47972f812ebda1124a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060explicitPath != null \u0026\u0026 explicitPath.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/core/agent/agent_context.dart, lib/core/image/image_agent_capability.dart. 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/core/agent/agent_context.dart"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40209c97976284707ce57cfdde49ddab205215ac3f78c6cbca36331fb41a4d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060finishReason != null \u0026\u0026 finishReason != \u0027STOP\u0027\u0060 appears character-identically in 2 files \u2014 lib/core/image/image_agent_service.dart, lib/features/tools/image_gen/image_gen_tool.dart. 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/core/image/image_agent_service.dart"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"825df63b7b2edb526cc712ae91323e1d356b20338cd41c117359bfa65c90a5c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.isEmpty || !line.startsWith(\u0027data:\u0027)\u0060 appears character-identically in 2 files \u2014 lib/core/llm/anthropic_client.dart, lib/core/llm/gemini_client.dart. 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/core/llm/anthropic_client.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae716fbbd4f83ee6bb08a1bef62528f6ac2320552a5c563b1be38bea6d0e43b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m[\u0027role\u0027] == \u0027user\u0027 || m[\u0027role\u0027] == \u0027assistant\u0027\u0060 appears character-identically in 3 files \u2014 lib/core/agent/agent_context.dart, lib/core/online_service/online_server.dart, lib/core/server/server_session.dart. 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/core/agent/agent_context.dart"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"72021377827f0b78b2170f63dcf5fa6e2fc32324dc376ca7d5de819dcf8ab77c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.containsKey(\u0027id\u0027) \u0026\u0026 message[\u0027id\u0027] != null\u0060 appears character-identically in 2 files \u2014 lib/core/mcp/transports/sse_transport.dart, lib/core/mcp/transports/stdio_transport.dart. 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/core/mcp/transports/sse_transport.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf7be5877244692b815d3d8065c754249ff72619cc98ffcb214e02a7f8aca83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.toolCalls != null \u0026\u0026 message.toolCalls!.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/core/db/daos/conversations_dao.dart, lib/features/chat/widgets/message_bubble.dart. 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/core/db/daos/conversations_dao.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"21227cb1ad8dc75a1470ca4d90f02a35b32c5243ae3e71a66603e829892a7c88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.role == ChatRole.assistant \u0026\u0026 msg.toolCalls != null \u0026\u0026 msg.toolCalls!.isNotEmpty \u0026\u0026 (msg.content == null || msg.content!.startsWith(\u0027[\u5DE5\u5177\u2026\u0060 appears character-identically in 2 files \u2014 lib/core/export/conversation_exporter.dart, lib/features/chat/chat_page.dart. 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/core/export/conversation_exporter.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a572e59ae6722e7b48eca50665c2aaaba1c0aa4063bac89794274427d509dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg[\u0027role\u0027] == \u0027assistant\u0027 \u0026\u0026 msg[\u0027tool_calls\u0027] is List\u0060 appears character-identically in 2 files \u2014 lib/core/agent/transformers/context_compactor.dart, lib/core/llm/gemini_client.dart. 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/core/agent/transformers/context_compactor.dart"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0179c97977c015e9ef51ebca984583730822bad0e50e3438a2f8a2874718bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.isEmpty || result.toUpperCase().startsWith(\u0027SKIP\u0027)\u0060 appears character-identically in 2 files \u2014 lib/core/agent/hooks/memory_store_hook.dart, lib/core/agent/transformers/context_compactor.dart. 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/core/agent/hooks/memory_store_hook.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"655ed8c8b849e066b3edb3de86e93b53658b1034bef441d9984cdc7375a8351d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status != null \u0026\u0026 status \u003E= 400 \u0026\u0026 status \u003C 500 \u0026\u0026 looksLikeMaxTokensRejected(detail) \u0026\u0026 _degradeMaxTokens()\u0060 appears character-identically in 3 files \u2014 lib/core/llm/anthropic_client.dart, lib/core/llm/gemini_client.dart, lib/core/llm/llm_client.dart. 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/core/llm/anthropic_client.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"65039d344d93b7054c33e359c18a476dde991e241300886c20e70ed2e70cd7e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060toolCalls != null \u0026\u0026 toolCalls!.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/core/llm/llm_client.dart, lib/core/llm/models.dart. 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/core/llm/llm_client.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a05fc8cf328b8f0ea985dc926ab743fc839bb101f40368d93207cd33798f18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action is not None and str(action).lower() != args.command\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/cli.py, assets/office_engine/word/word_engine/cli.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d284b4a66ee2ce9751ec00f8c3a4f8d0023a490c8fde892d7290e8d2ce68ced"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dest.exists() and request.get(\u0022overwrite\u0022) is not True\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/writer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"35429741eb830c9cf9e6d13a66f5a71838089aa23bc8956299dfbbaa8b2b6582"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(output_value, str) and output_value.strip()\u0060 appears character-identically in 3 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/reader.py, assets/office_engine/word/word_engine/writer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"723831673d83e9ab1feceb8facb346fdb1a3ae07f7d674227022ddeec0c071af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_chars and max_chars \u003E 0 and len(text) \u003E max_chars\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/reader.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"29141ee76010f563b9cd431d277198b83712080073be15f29f850ac59d097cc0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(dest_value, str) or not dest_value.strip()\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/writer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2126989727ffc4d244f0bcd163ebc356dab21abc87af68f3b0a70e267019511"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(path_value, str) or not path_value.strip()\u0060 appears character-identically in 3 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/reader.py, assets/office_engine/word/word_engine/writer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f647fd01e4f7d73ad6aa434008b91833a4aaeab7017d4fb56800d1e734a94da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.get(\u0022dest\u0022) or request.get(\u0022destination\u0022)\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/writer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc185d9e81fc32a7dae7ca9c5a6a38749acec2fc2c63ef6e25f3bcab5ef19e85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.get(\u0022path\u0022) or request.get(\u0022source\u0022)\u0060 appears character-identically in 2 files \u2014 assets/office_engine/excel/excel_engine/reader.py, assets/office_engine/word/word_engine/reader.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c540effabc827c71a3d519deb4d066c8c10d96e48292bd13d921fdbb1c142b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060compileKeywords\u0060 is public and takes \u0060dynamic rawKeywords\u0060 from its caller, and it calls itself at line 42 (\u0060compileKeywords\u0060) with a piece of \u0060rawKeywords\u0060 \u2014 and nowhere in \u0060compileKeywords\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. \u0060jsonDecode\u0060 sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws \u0060StackOverflowError\u0060 from about 20,000 levels \u2014 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser\u0027s stack). That is an \u0060Error\u0060, not an \u0060Exception\u0060: an \u0060on Exception catch\u0060 around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through \u0060compileKeywords\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/highlight/lib/src/compile_keywords.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4115ef10abb223fc8a3fb2e7b576f64668ccf6d2f7033a06fc4bbaf7481181b1"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a CancelToken: Only 3/37 functions that make a cancellable request (Dio, AbortableRequest) accept a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. Take a \u0060CancelToken? cancelToken\u0060 and hand it to the request as \u0060cancelToken:\u0060 (or hold one and cancel it in \u0060dispose\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"767a6f188a93a9fdcf866e430f9755aeab7ca6acdd21a1a80f8ac4ef4cc6cf7c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _callGeminiImageGen: \u0060_callGeminiImageGen\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed84be5ddcfe025d1b5c01d9569df6111d4d41c17c5e427d6342278ebd2bfa87"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _testConnection: \u0060_testConnection\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/image_gen/image_gen_tool.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b107b167c3741d59dbdae31e96f730565c5ae6c0264d72121938beda5e1610d6"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _callP2tApi: \u0060_callP2tApi\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/formula_ocr/formula_ocr_tool.dart"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d7e1511c1cca4c49da3d5ec020d612dac4294442de8de94b2068546f9e64f4"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _testConnection: \u0060_testConnection\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/settings/widgets/embedding_editor_dialog.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3c0c1407b2a042a455d0236805a10d2f66ff1c6f327a5fe0e78738c4dfa317"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _testConnection: \u0060_testConnection\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/models/model_cards_page.dart"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f0e2e6fbb9b31990e19ead9f379856188d7db6dfe73784bfce6e62fb086ff2"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _saveAs: \u0060_saveAs\u0060 calls \u0060Dio(\u2026).get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/markdown_view.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"b367c123a3a93b1c88fa524008cf092f1ca88cad7bad8d629bc5cb2522bf6012"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _runTest: \u0060_runTest\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/new_workspace_dialog.dart"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ed911539a9fe7ada255ed04f852ee5a42a47b0fa4cd8e5b430bec265d5cd46"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: check: \u0060check\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/update/update_checker.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca87389418c6942ead24ea1adb6c58cce0d640d7465fa35683ea3a93554e090"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _searchTavily: \u0060_searchTavily\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/search/search_service.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e85394d44b6558a8377c2507e2ee718a56c93482df393a15573b51e11c6102"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _searchBrave: \u0060_searchBrave\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/search/search_service.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce014a86b93d6ddf68053ee6d0bab3db7a1d5b2b3f231f89b4a6f8b17be86d9d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _searchBaidu: \u0060_searchBaidu\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/search/search_service.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f881836a1e9e618a19984090c03c48824918bb23eb358f8e973746a5529e7af6"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _ensureUv: \u0060_ensureUv\u0060 calls \u0060dio.download(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/python/python_bootstrap.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e895258b48181e3865fc8ca7442a6c08c426589c9f11265e76b6d8a43e172cad"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _handleTestModel: \u0060_handleTestModel\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_server.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed1080db05d33a497429e12ec368ed10786c354240bad6fc41569e390b4a4ad"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: ensureCollection: \u0060ensureCollection\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"642a4c71696f871eeec9862d60dfcc44f7c4ff087ccff5cf6e8d81dfe510ce2a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _embed: \u0060_embed\u0060 calls \u0060_embeddingDio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed7a4f1d38b741bc8358eb0fef1279100660a70e2c031cc2ee0e4369e6ac1d0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _writePoint: \u0060_writePoint\u0060 calls \u0060_dio.put(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8700bcc5653717efc71429a3fd678ef22389e14bf3661b27006a2faf04989ba"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _supersedeSimilar: \u0060_supersedeSimilar\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"313ff15d0e7369dfab7dea59403c9594aded58d73cc05cc78d265f924d0a2fcd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: addKnowledgeChunks: \u0060addKnowledgeChunks\u0060 calls \u0060_dio.put(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61da9beb1bdb5b89779ce2242320fc6fd85d53fac72ce4bb94f95cb383b04fd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _recallFromQdrant: \u0060_recallFromQdrant\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd321a5710fffa518dc0e19c04725a5f1ec6e2b29443bde973a7845311ceda31"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: deletePoint: \u0060deletePoint\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade080b8e4cdad7f8562922c992776fb26956482065fb28f1e9aae18e9c99d78"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: deletePointsByField: \u0060deletePointsByField\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1e31613cfeb166d357012d3c8542487eafb230fb9bca3718ee1d101b6bee63"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getVectorSize: \u0060getVectorSize\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6a8e7b270402336a7eadde32ea8602edb86fb597cc16cfe87cc666d9a236b0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: deleteCollection: \u0060deleteCollection\u0060 calls \u0060_dio.delete(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c42c044ae46b4c8bb0a5a87bfc7dd28787e93865e5fe378666d1075302a96a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getPointCount: \u0060getPointCount\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4d711effe8a51bf3b0946d76415450af1befb526d7922b99906de23021fe57"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: listCollections: \u0060listCollections\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dc478918967df58a6613f2258d7bd74791fc19b56b9c8ecea18ccafa1c0e47"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: listPoints: \u0060listPoints\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92c21607bfa0f7e9d87365550c24b65230d1bbf5381a04f1e0376d2044beadb"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: rebuildFromSqlite: \u0060rebuildFromSqlite\u0060 calls \u0060_dio.delete(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ac61a7607b1df5791252eb14a9959a7a6bcbb463a032e056005ac4dc6178cb"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _checkHealth: \u0060_checkHealth\u0060 calls \u0060_dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eb48d6401083542eadefae105fcabb5d3d622920a754804907a4a00610462a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: chatStream: \u0060chatStream\u0060 calls \u0060_dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"711d356e75a8b72ff2c488ffcf67c81f8729026d3b1ea620c02d75ab5842236e"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _sendOpenAiEdit: \u0060_sendOpenAiEdit\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadc703d726d8a5748ff11274f3d2625836f44dbd9afa60c18071e8275c5ee9e"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _sendOpenAiGeneration: \u0060_sendOpenAiGeneration\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6910e11085a8bfacef7725e6249982af7f7a497a13fb9a4ed192290dfa43d3"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _openAiChatImage: \u0060_openAiChatImage\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe76cee75d07eef9b7363fd6a7647e1ce165bb4712c1a78a9c5b01263965b8d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: post: \u0060post\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69268aeef8f29a4c201fa4bb8d41717309a67109bd1df577f1c9ca00a44feef"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _bytesFromUrl: \u0060_bytesFromUrl\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c96ec445397426373ec5ea459e306627568b93ea0cc4f58151c294d123125c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/highlight/lib/src/mode_compiler.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfea1c864c04724958f0e6120f58fde4549b57e80852f2a171382da441378878"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"953015bd178e74f832d5d015e09a1a463a36bc9b8d89e703f89e6212920a0426"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/shared/layout/app_scaffold.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ff77830b7e6bdaa9f5843419ad6b368676f0971a54e8339caab82c640db7ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/shared/layout/app_scaffold.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"24118bb4a05d6702cb363448d2796c0822367fe9aec6032e547422034766c569"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/kb_provider.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6f5430bccf1b5af35d8905601ebe080709d6f7f6392116ed88f14e7db754bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/memory_provider.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0785989e797fde17322e958cdc636ca467e442347a409855881dfd74d61f8b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/memory_provider.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"055eaaffffa2a4cd3a47185f32b13c37e150f01c8b80e2a6afbf7cd0970c245c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/settings_provider.dart"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42158d7740a5ce5d9af5421c554da5049a1a6f628fd908b226479385125ac4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/siyu/siyu_editor.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e01bffd152943348156e297f0d1c93057b9b9a6cfa13f73383913c11c28add3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/tools/flowchart/flowchart_editor.dart"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e0a5c2768021c02453c584106a6992f288db0556f42f0dbc7e9ccc93827514"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/toolchain/toolchain_page.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead4f57d30b07321d4ce0ade92090b26327bc4058ffd8b154e8ec074919f56a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/settings/widgets/font_section.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dc0ab155dfda59462aeca80ee6d2d0150790ad24721717baae98a3834992d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/pet/widgets/floating_pet.dart"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61ce597dd1b47ee45cf6aa2f76a69332a28f0ae1b06d0137d31f20eb43bd412"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/pet/widgets/floating_pet.dart"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9971f721089a4b12e5fa0efd9f6db29afcc1467f630c389eaba6ddaefc87027a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/online_service/online_service_provider.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcaeae5d87f7cc52ff3ead89c8a2d50d0c8777345dbc3d4e900afceb27f4c97"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/widgets/agent_workspace.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9947d34b229890ce543bf2d01bc0dfd79be94f05b556cfd538074142ae52830"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c09a5ec8e4a6d49ab351322eaad4df85935d03c2b79da3eccc92d03d118a0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"716318827aaccf83be78789fc336b1d415ff42ea8fbc2b6aed89feb6867b4cdb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bb8ed2c1aa50caf1b78a0e9e4d47162ba8f9bae9266df2b5b8f4f197c69194"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba054a771acd5fbf34d54f4d3abf38376ee0e575b86ff7629661621bee43233"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"89921f48e9c55a6c990dcfb70d6ca8265bf4ec4974bc2b0e4f512d04ab2d194e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/chat_provider.dart"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eb31a11dd3a00a7e97cb5c758f772d8c22d45ec04fab998b67047588ab0475"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/markdown_view.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a100c131ef859a34f87b3dd81b3f6353da3e7254ede2dde1109e5df49b138db7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/markdown_view.dart"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce60658b88f7f0ce0a822e6ddadab695352a423584e3e54f006416d7bc3c4fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/markdown_view.dart"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"c433391485c5e6b4ab7523443f0d6f207a1655019273c972c6c58ad8c01f21c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/message_attachments.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"017636e4b577163d73b2d4c2849fe32c456431f0d1d6064a4d4cf6046b668d0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/tool_call_card.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0511f95465c62a905433e592ec0f668152dea3b4fdeeed3aa3274319f54ef97a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/tool_call_card.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9148629834ed03ab9e442e8a6532b62c52e3455143f3e421954067c7ab03c5a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/chat/widgets/visualization_cards.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caa5e5860e53fe8ad8b5fd09fc6f14d9b8b3eb7d00fc0afe022bfe3955af561"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/document_extractor.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8143f33c03da0dd76a643cda1eee73f661bea00d9d3c55d1c0d8d7541ba375fb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/document_extractor.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c88ecfead83e3296fd97100248d46296759ba989e9e3bfdfd31905c31f81b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/document_extractor.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"59affff5c7393536e3ccf6319acac36da15e5502efb978e6745a75b531aa26dd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/tts/tts_service.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfb74453829eeffb834abd4caa32bb679284f26bd4049412fcfafc79ee8b1d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/tts/tts_service.dart"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"512b37ed117633b81aabaec8f066ffa8c16e3e74898b253173dc40eed37295d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/tts/tts_service.dart"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"882822216c1f64501ccaed167fe0306526930776bf786768b14b0272c11eb17f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/agent_loop.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e7f9fb589d7a59eac595c73c256dcca0c537317ffe65839170a9daf667a90f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e981053373ef7a1590494ca9d1e1518a592c61a6497f7ec5d47e32dbe16ddf13"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c38b743f51bc72f3cd74bce3434dda79b13b5a253e1f51a9c3151eecd69cdd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"2207ba2f1d02ce60ec9c6b829760107cd38e34d60d28d575d85532a0411e7d09"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/background_jobs.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16d7aaaf39bf03fdc4e73b6be9896d010fc847a776270386565ed6c07f83588"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/background_jobs.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab24c4b4c588b19a29d23de5e48d1905a4514ab319c0f4d550e6d3966e3ab5f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060close()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/background_jobs.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"505a437a809e1246f279196277a2ce35f4a312279b76e6f19a4ff6a2bb5b16d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/budget.dart"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8c85777181d5e3415ec58386c75c91548bee44ca6ff32dc6cfa57d8a404b99"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c51dc02891c320b2e89c8709dc819546a3b8e831cc92e089b85a05c6bd88725"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be88569961aaef8947ba421a257d1844cc9a701ba0faf0046b172898aed7a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa8ec11bab16377624e5aecb984dcbb3cc7e01c5ea778e21a23d48b4e6aabc8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d91e7a4209977423a9dbb69d8ff17d7a6e718ef57eff756dd9e66b5d5a2a062"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ebb1b843f7df589361a808af62b711c48b2cac48bebe250fa3a40eb5887b67"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac818bf08f1bc153a67481741193d13bfe46d57725899a9685581fff9a3bf0c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eee1e45233000168fe88b81a4806d3753f345c9df8413a814f83df218c1c48e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5067e9415c65e4845329ca7b896076e26ee6588c94c3e7de3bcbad74186fb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/executor.dart"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0394b4fb69346e53da21ed9503530a6e7c6423de32056bcf493efc116afb9d0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/sub_readers_orchestrator.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c6c38f0314a84b8a5abecb6756478b0af318d1f211cf2d5503ea01c692f7d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/system_executor.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a3f52c717f222ef1fa7afbd3682e0e51bba7fd28cc062b63b83a8031cbd66d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/system_executor.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c751e7db43463504be53697014e13662b4083b30ee12429d5a1397d570283db6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b53dfbded6c0ead5a53ca73b592bdc18f1c2ebaf411db28891bdf5b37759dab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"345df7ff8884c58e510d57b06d2c9e93c553b652b87f5a8e8a042ce8313c67bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/worktree_manager.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a937bbd8387646242a4518355c34ee8ad5809499a0e8a42087a2022eeac8f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/tools/tool_config.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"920f4438407383a1850fdfbfd2de00a624596923b8b54a5f3f654c130183faa0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/tools/tool_registry.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ab0d1552aad709baed98dcdc30bdb9d8579c1c7896b5074f0af8ef5089ae6b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_registry.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"697bda25c02f473d9a7a37e6ca9af584eeaa4b4b252b245465a77021b0f23781"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_registry.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"da143a343c39db3b24c4ea5b53ce3b08b30fe036d1afd4770c1710ecbd6f4f8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/skill/skill_registry.dart"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"855d96a34486875c86183d62030fa360e96d0f179279daf8d28c594e4afee95b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/shortcuts/shortcut_config.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8682a6e78011970950fccba9db82c3a835e504a715bc1b3165a08aaa8edeadc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/settings/app_settings.dart"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3035e4beed8081c419878e586d96b5b5cbba9ca56cd90338ff77d67f69b0d53"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/settings/app_settings.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec934edecaf115b9e0023c6b0ce35a49dcc63c48a08590fd16e600a386272c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/anthropic_proxy.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"236d3be5afbceff28392f7717a646cb5ee809cf9b7ed71fe02de2ffebdfc1e20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/api_server.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"600dddf9c4736dde268e11ccc5d7a552cb011f921fb657b261bdea144b6fb45b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/api_server.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"586b0407c936e14ba7aef57b26593f69f77cdf33e76e179b59cead2a1b2a4985"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/server/server_session.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e325debfa1918edd2afcc43c45f947ebef104bd0a4f0be6dbe36b2cdf394d06b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/python/python_bootstrap.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0347bceb664ce4e62ce19572397e0acbb5b1528f198ba428b16fda15e292f793"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/python/python_bootstrap.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3afead3e4ec3b8e23bc9db11f9e603cdf0e4504b60b200d562ba2f14bf067f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/python/python_bootstrap.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aa1603f14068ec678748d38d4de3e1b3b38665508977a9707742c129b52190"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/pet/pet_economy.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f628ecb265912e679a15887177a6b23da1963574e97340927b83bd71351ef627"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_server.dart"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba35603b7b2a7633815f7b0b34f74fb2bfe6e2657420a30161ca3bf1c5fcb0eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_server.dart"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4aa2f23b01d1da6a454e80251648aeef901bfda935bcc84db0c250af4e8e8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_service_config.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cedec12d440f653c71e920fd74ea3da7206098624dc0ec209972c4676d33df2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/online_service/online_service_config.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"671c8e2875710829ebcb14d05867e83861d32b3ce994bdd431227a6812d69309"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/office/office_engine.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e903f13e271dd2a82e7b18ba215889c7946a6259ae0e122c563ab83cf5b214"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33b965a806089b1a15daac6be11df56726deae8fd1cbb63f11d386d49e3ab71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c44b1f54438b7bb2ff0563b4081d6be37cc3f7fdabab359666f8c2e1c8f4fa7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f015f5c5aed5edbeccb76537f207416b7481fec413506ee14c9c0e773c5cdd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f132e3026bdee601d06700e3fff0ffac406290fc9426719b1376faa15ce29b08"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68b85674c24c1180a6c53e4721b18b920398e6a3ae8985a0b280949bd93e75d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad8b1206a3b09728d53a14a917585c166014fc6d0dd1148815de1824ba2f2a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ad8120e709539955fc8270eaaf943d94c6c7ac4b5562fc1f15ad9463d45c33"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43a51be1e8f17f58e5a21d9188d45b8471621100e34583fa96880d95797e980"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a41fc2db0f4af07727fdc93e57edd6cb227499b2014e3491c4a59310423ed6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd939dd20058581cb69103d5fa866f5cd63279f72c674cb6224aec7a15ee855"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef5661c27aa555db4e67332b9aeb870a3744d85e2ba919a1404c1741142e041"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"519bd77b477403078806e86497cc3dafab3892ae6882d2c47fe228931ef4ac93"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/local_process_launcher.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89de7bfb1b5c8d4022fa688cdcb224067c3571ecb2aabf70013edf492f2dab3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/local_process_launcher.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5748ad406f4d2705e56ba9c28487c025ad725ca26c85d5c18d86ea436c3ffc31"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/mcp_registry.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"55334e95ec0467f1459435b6c0bf59188ac27be66f7e915a475bac845b7c711f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/mcp_registry.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c90a82275f88d953cdbaf692428bbdd5be321d86ddfb5e188bb4c1a8a444089"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/transports/stdio_transport.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d9366b3d109b517b0d2304d26ae39bfc30045f430551f452f0ae853ac0a971"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/transports/stdio_transport.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"752a130c210b6b1442b4fe36af7f59e6e9a5423729ae4de4f44c01aa69dd1db1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/mcp/transports/streamable_http_transport.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"88680d708849b0c01b57865880e0fa872d089d5b1c4b09fd6d8d1a4801f5b07a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefb641cdf4fce66f2e966449c358c6a44ffe29dc82ade050a3f38576ca3d0b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ad36df0d8ffee023a2460b8906cd1acf44062d5f47245382ef06e241da2645"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b0d299828cef551620cfe9a7d518e5c1c5b1cb02e7415a7187e6096942a408"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_client.dart"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"14eda201c184cc4d850dcf9792b8d2c049268c5ac4632180513a4b8789d2b540"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/anthropic_sdk_client.dart"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4753a80376e531ec00ad547ee4a9cd4506a3034f3933335ac335a06e1a53b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3edee606d4ff13ced470db44b49dc971ec88ebc1c70383693e9c48ed0987da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a5d741f6422c80feabc41ea30ec3e25fc840e8117210fa8442c727a24e59c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/gemini_client.dart"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8bbe781657c208dc79ddfe59d2a8e7860dd3b28b5cdd610ce258e4e56053de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"24321f3122bf6eb2f9fdbc28b0067730ab7c6361fbca6d2af27d402d3a4e6598"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"65af1143c92ad8969bd479b52e60496545eaf091eecdaa8aa86d3a0362edf773"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a35f9f582ad399650eed2ef7c57c94f89504851905cf77813416cf2ad61c13f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca026212f1fef80933b7732adf382cd8e291a12bc476c463161e81a857b7f52"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/knowledge/kb_indexer.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5fd4f0a6bf129c1d884c1bed22c7fd288755d0013f5625c235ac0a5a218d67"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/knowledge/kb_indexer.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e387978b7ba4ba899b411da029a2d794106546f3828db096d52ec4d6191e0c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/isolate/tasks/skill_task.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7671472a6af0b5e8e19dbb8a101db2f5edceb168d017209d2fa2cc152e1e7012"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_capability.dart"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8395a0d95c94e7581811c6186f0a6f5454c78f2962bf61e48993523634489e98"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f875c0c51909ade58bc118506e9ab082f9cebe1fc67d5de67384a872717111"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/image/image_agent_service.dart"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d1919e101c87e9fe01968f9b42a59ae1677802cd7bd43eb9df845f16530f79"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/font/custom_font_loader.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"264e87289e4c0635c6dc1be2b566bcb06e58965b20d7452404466c87f12904b8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/export/conversation_exporter.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"50800c7a9c94869e1bacab3d304d0761a5007b6d4cddbaf3db815315e631200a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/expert/expert_store.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d23bbb3ab5c9116e1903bdfbbdbf5f9073fd158a1bd22a3b06a6cfa169d46d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/expert/expert_store.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f310afe654fbfb9b7abf6e62295265671792977e4571a4397fc2a76dfeba41e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/conversations_dao.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e8c7e67824ce034df839368d9f7846a07b1c7585eb7f1671a892efc94fd835"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/conversations_dao.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"735989c406e3ffd5c5d4d1c07d3e5054bdee7386f07971bc360236997d8c0e02"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/conversations_dao.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"857761f704294d63a0e536293a69f6bdf2ab4c8dc46979195c500d25d4ec8594"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/conversations_dao.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3dc7c45c2bb233469d78d9ef602613ada61d9cd18132a2d02c6defc674eb7f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/memory_dao.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6073a0105642e90b97ff8710686f64a27b0cc0911d3e34f9be23e6998faf4fac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/memory_dao.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b59b91837822de2527a32405e7e25240d6167f84df866d76c706d554cc8f0de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/db/daos/memory_dao.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ecf90d46ccdd22b3adf412f4c493a77e225eed49b15b64d5957262d9fe657b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"23aa8243f56017f3233d057647ac5922deb919cc233199d4c865e6225f27b6c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/agent_context.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed72421f3d54d1d8da0c1605e470ba598d1f43413befdcec37b4d802f1f18340"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/agent/tool_pipeline.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc5f4035fa4d37609d61eb376e948a3924a497c939ff92198d9d3f9ea8448d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/cli.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8193d50e486abe958e5d34bbf861866f0fa0e7a0bc36f80090ad6dec397463"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09164c9c7bb39246b639d16ee14a995523bd031fa122cb55d047bdb6f674b66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4763d702f987ff67f4876063290de7ec427cefb66d9ce60c0d1322175b86b9d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c22b7fe75c482bdf94055c224ed14166a8f476f83c43034eb2f0ba70bb2666"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ce689c87f08bee02df77908d9128502aef9880bb706acc99b5dbb67e386c98"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20a7c09b4831e2e29096d333e6a4117163f3d7c93f46b21af32b1c22737bdf3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a96d2372d8dd474f105cf72ef30381b82d23db9356b8da139c1a95bee28aa61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"916c89cf6e85053ec5043ee3a4e0bc0b855ee2b821acac5690bd4aa063d959ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e1340789cee98535b681443f7af41de2f0094847c89e76f191c5b4b91304b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/word/word_engine/writer.py"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc67fa43a54bae259e485af33496ec70cbb6919f0a875b2b6fb1cfe01f049bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/cli.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"388eecb516b114bf47ac8ea9d971dfa587127ac29829c03acf422f172af69823"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7d73a5a2fb2635cd4b4adc1f4b007eb73337aac2ed60c104aa1a190f2fd34d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92415c080d5db48a3a9af36c40f8b61a1ad0e05a8930b0a4328ea9268f2ad0a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"672d67ab1b2639104ba0f890b9c8b1adaf0e5e93b80771cc6d368f2eabbed6c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e153cd10fda48c605d521d6dfee60725d7dfa4ed41a0179fb8a3cf488b97e085"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"393592ea45481b570a2cf744eca54ba7cdf3074da7efd708072c2b58d08a4641"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08120cd0294f2a83ba25b973d96911aa85bfaf7328fa37d5affa4ee7e42626f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b95d8a09dd4a2485bc5c7427c2085ec57ec0e5cfa3c51dbae904391b64619f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"667893d1c2318de2bf6873c7930dfeae9c7a19b060c101ab5feb09649279beab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d08840a7edfe2d870d49259afa8b98aef4c223d8a53e1d60cc68e82de4569d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbadb3904134caec79123d1815f60a8a3f00a5cc7e84ed18b641841fae29a06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c93f65c1f5851f92a521bbf3104fbfdc5155a39928df23009e280cc02c4d59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/office_engine/excel/excel_engine/reader.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b02f5ad74f8fd984d8d98140d1e1006c39a8237656e99e587187edc8bd91bdc"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Dart code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"0601afa28ec70968d8d7b5d38d7b2770356f4abe4f1aea3fc64fcfccce73d40f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_paragraph_text\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":"assets/office_engine/word/word_engine/reader.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0f6e50576b6c0038dbea7578f90b48d22c7eee5554c275cf041e109d95050e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_tryFixIncompleteJson\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/llm/llm_client.dart"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de944deb53ddbe3262903c2f603d8a2a4d3229224028efe22bcc04896934217"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getPointCount\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38e01a7e53cdec7f041d5d08eea863edf3fde606860c88984d722c910dbb39a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listCollections\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3fbba79d548539d4eeac05b3eca8a993c1af8d407fa47a3bd7653b33d7db15"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listPoints\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/memory_manager.dart"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf64e75bbde0d6c2837338786814452b41dee04553504803d1bc8ce3d558aed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060storageSize\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/memory/qdrant_service.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1054c97408e9794308a3fdd08be577d76ca6178ed269c51dae3596573ca2ed4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_currentFocus\u0060 turns every thrown error into \u0060\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/android_executor.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5028750ab05dcdf1913cb32d13aa55094f928b460f5c6d8a7714efcb6743c3e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_extractArtifacts\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/budget.dart"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ec913b1ddb9ef8ca0661fcdb9785b537e9c86e7c4dfedbec5a713938958460"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_parsePlan\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/toolshell/sub_readers_orchestrator.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"667f3b19ac74f96cf2f43e38316ad89ebfd93f5e57ecdf7d22733c0036d927da"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listSnapshots\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/features/multi_agent/providers/multi_agent_provider.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a419a648a71f649b3ae72c2a24f34e9a129187c2500438b480f83f31971309be"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":3,"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."]}]}