{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"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":"ChatService._run_impl (cyclomatic 79): ChatService._run_impl 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":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"1810935fbea2c7c82e56b00556882db7aa28df79e71e553774656d491d226a62"}},{"ruleId":"D1","level":"warning","message":{"text":"BashCommandParser.check_sed_constraints (cyclomatic 60): BashCommandParser.check_sed_constraints has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac38a3a436627e6bb442212541fddd59dcaca3d2e7a5e4f9202ec0e76a1bee2"}},{"ruleId":"D1","level":"warning","message":{"text":"Msg.append_event (cyclomatic 54): Msg.append_event has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/message/_base.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f596013bcf584defe5c5ada801c51c3c95e030b5c65e69862d95d30b00f0f9"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekChatFormatter.format (cyclomatic 46): DeepSeekChatFormatter.format has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c404d9392e255c8897d6dd93a634eba8f770d7ec8bba132f63ba34c01e9912df"}},{"ruleId":"D1","level":"warning","message":{"text":"XAIChatFormatter.format (cyclomatic 44): XAIChatFormatter.format has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6c9503c419fdb635be1ef508ff3fe22b98ab01777061f107b300d0494cede"}},{"ruleId":"D1","level":"warning","message":{"text":"MoonshotChatFormatter.format (cyclomatic 43): MoonshotChatFormatter.format 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":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"695d5768d864006cf28e6167b361b583e575e683e323388fee92fd40bf431913"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcengineChatFormatter.format (cyclomatic 42): VolcengineChatFormatter.format 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":"src/agentscope/formatter/_volcengine_formatter.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ba3584695575c646bf4c8d7e1cc83e19b18aec113b2c52ad6ce297fd5bd62"}},{"ruleId":"D1","level":"warning","message":{"text":"_AnthropicFormatterBase._format_messages (cyclomatic 40): _AnthropicFormatterBase._format_messages 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":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc8ddea8fc95494fb64e943732e9bc39166681b217c2d2ea3dada5a5a27bd34"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeChatFormatter.format (cyclomatic 40): DashScopeChatFormatter.format 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6522fc98978a0084a9efbff70421b79df4712958fff359e1202e57513f829e"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._reply_impl (cyclomatic 39): Agent._reply_impl has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"134ebbffb501dc48210b87a9f3989a47547cb98d9e9234eb984ba37bbe9d162f"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalPipeline.reply_stream (cyclomatic 38): GoalPipeline.reply_stream has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/pipeline/_goal_pipeline.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8447901f3c1bf9f8684cb21caf3d781b2fea1165025f8e5a9479a9e6570be3"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaChatFormatter.format (cyclomatic 37): OllamaChatFormatter.format has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9cf350e3198f392d53b248ac52bbd2918b39ed79b92a5fd7c28985617fc89e"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIChatFormatter.format (cyclomatic 36): OpenAIChatFormatter.format has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_openai_formatter.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"08312bcf349676de155304265ce4605f9f066be410dc36223d10491826148a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._inject_runtime_state (cyclomatic 35): Agent._inject_runtime_state has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3b4b9f6064d189b3592587309bd87fe9decf4c37353c9b6148179adc4ef966"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiChatFormatter.format (cyclomatic 33): GeminiChatFormatter.format 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":"src/agentscope/formatter/_gemini_formatter.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e3a41b93ecbb97192427b1dda9dab4614d4f6440388bd597a8727d4d27b0d7"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponseFormatter.format (cyclomatic 33): OpenAIResponseFormatter.format 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":"src/agentscope/formatter/_openai_response_formatter.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d205fb573b9a0aded941080157503b74d46e88a3417c2ee1d98bbe107236e8"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIChatModel._parse_stream_response (cyclomatic 33): OpenAIChatModel._parse_stream_response 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":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e0ef1e30083f24eb18b1ce5794950b08150b0bd87fe63e92f10ae09700705a"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeChatModel._parse_stream_response (cyclomatic 31): DashScopeChatModel._parse_stream_response 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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8be1800a67dbe3688bf0b7f77c535aa03cc32d71b243e4b81b5f289079af6c4"}},{"ruleId":"D1","level":"warning","message":{"text":"Grep.call (cyclomatic 31): Grep.call 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":"src/agentscope/tool/_builtin/_grep.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"795f0614ccd5ee407fc46c71a1b508c377a00a664065681d591dad9eea5948e8"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskUpdate.call (cyclomatic 31): TaskUpdate.call 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":"src/agentscope/tool/_task/_update_task.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8462b3a65d47831e7db6540888709188a43c1224f9dac44138a79962ec347d"}},{"ruleId":"D1","level":"warning","message":{"text":"FeishuChannel._normalize (cyclomatic 30): FeishuChannel._normalize has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba962b0571f1ca8a63180ddee51d8f6c1353f2fbb994a88b949555046079caa"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponseModel._parse_stream_response (cyclomatic 29): OpenAIResponseModel._parse_stream_response has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e3ad6b4e588e76807956b2764fcd7478369131eacebd65b1b7aedaed7dcaa9"}},{"ruleId":"D1","level":"warning","message":{"text":"AGUIProtocolMiddleware._to_agui_event (cyclomatic 28): AGUIProtocolMiddleware._to_agui_event 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":"src/agentscope/app/middleware/_protocol/_agui.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"048910b4e21236dd594ae1f246374971bf04e368973fe0bfae5f917e88953992"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._execute_tool_call (cyclomatic 27): Agent._execute_tool_call 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"86695b5dc0b93464f21469dc1acd042138199a79fb347b437c08fff676679365"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeAgent._on_model_event (cyclomatic 26): RealtimeAgent._on_model_event 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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"63193a7e54e3872afc44524aecbcb16d1e14a154e5674ea135c7fabf3b08223d"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubMCPHub._to_card (cyclomatic 26): GitHubMCPHub._to_card has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/hub/_mcp/_github_hub.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb7944fc44b89eec67a788a95a99d0a2bac59d67d5e37579bc5b42df1590c5"}},{"ruleId":"D1","level":"warning","message":{"text":"_model._sanitize_schema_for_gemini (cyclomatic 26): _model._sanitize_schema_for_gemini 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":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffff7828ba1c3a99deced5708dff61547618aef9b941361d03fe6d0147531f6"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageUI.apply (cyclomatic 26): MessageUI.apply 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":"src/agentscope/tui/_messages.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"127aeacd1389f3a45f1ba0a6694aa51f5f6a42d0722a14f61bc57008b52d2009"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeRealtimeModel._parse (cyclomatic 25): DashScopeRealtimeModel._parse has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea7d4e9a4918fcbdbc93ddff886df0ba8f6d73c42121537aeb82229ef16e6cc"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeAgent.connect (cyclomatic 24): RealtimeAgent.connect 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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58eaf35d6b28a777fbf60447dc126e8477f8c0691c014eeaf46654a017e7410"}},{"ruleId":"D1","level":"warning","message":{"text":"DingTalkChannel.send_response (cyclomatic 24): DingTalkChannel.send_response has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca6efc9451c630560aefb6a8da4816e3ff7e225a2f7e3734e6489c75b79aed0"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIRealtimeModel._parse (cyclomatic 24): OpenAIRealtimeModel._parse has cyclomatic complexity 24 (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":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"5429e8f7b747547d8911e833172d2a377389cf3dd064a215facffb079df17f14"}},{"ruleId":"D1","level":"warning","message":{"text":"A2AAgent._reply (cyclomatic 23): A2AAgent._reply 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":"src/agentscope/agent/_a2a_agent.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e75c0c1309a542cd4db3858a6395cba3c732536e70bbb245c6f1c02ce38c6b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._split_context_for_compression (cyclomatic 23): Agent._split_context_for_compression 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":2873}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e78c40f5ac1e66a2119bf0799103a936f76e2ebe3887ddb391fbe15ec63625d"}},{"ruleId":"D1","level":"warning","message":{"text":"_app.create_app (cyclomatic 23): _app.create_app 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":"src/agentscope/app/_app.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba30f73529451a38db483443d1fa5e128cbefdc93d7248ef27a939afaf87cba1"}},{"ruleId":"D1","level":"warning","message":{"text":"FeishuChannel.send_response (cyclomatic 23): FeishuChannel.send_response 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae669f828f7a93530d8ec69a52d10ad75358e3a415e9f1980a12b398c088a0f6"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_stream_completion_response (cyclomatic 23): AnthropicChatModel._parse_anthropic_stream_completion_response 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":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e05c24bd08f04b685c7481184df40895f04ac7e25b1ea54977b98c9d5c843"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._limit_context_images (cyclomatic 22): Agent._limit_context_images 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cf0c898d08c0f4866d2c0d897370a97fc2fd38df29e6d2bc39690ec2c9d60"}},{"ruleId":"D1","level":"warning","message":{"text":"WordParser.parse (cyclomatic 22): WordParser.parse 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":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48defd60c52712b76111d0276528f526e807ffd1fc3937a3bdc98787f7c3e15"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._reasoning_impl (cyclomatic 21): Agent._reasoning_impl has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ef0809d3f096f7efcd42457820c99e6654040e21e92825759c904ff7e49dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._convert_chat_response_to_event (cyclomatic 20): Agent._convert_chat_response_to_event 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":3757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b6d3c151870458bcd45f97fda64981d21aee466d9fbdc4524121a9f7f9a626"}},{"ruleId":"D1","level":"warning","message":{"text":"TracingMiddleware.on_reply (cyclomatic 20): TracingMiddleware.on_reply 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":"src/agentscope/middleware/_tracing/_trace.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"df03b039c54d524e106338bab2fd43909b854a72f7ae5f32754fa15cc60daa73"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponse.append_chat_response (cyclomatic 20): ChatResponse.append_chat_response 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":"src/agentscope/model/_model_response.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fdbe1f46222a69b8e079b33574cf00248fcde3007cfd34af89b722a91de5a4"}},{"ruleId":"D1","level":"warning","message":{"text":"MoonshotChatModel._parse_stream_response (cyclomatic 20): MoonshotChatModel._parse_stream_response 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":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac1366fc3a659ff92ec08d23818e60910f1369642d4f89e9683be6a4d6ff65"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponseModel._parse_completion_response (cyclomatic 20): OpenAIResponseModel._parse_completion_response 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":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64db8614ba3fb1cc1cad202d7900bfd323470dd72f551b5cd59407db0fd4fc1"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcengineChatModel._parse_stream_response (cyclomatic 20): VolcengineChatModel._parse_stream_response 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":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecbb29b80269e3d416d1c8560f716fcf1d6b1a60c492dee7f655377c1ea9fde"}},{"ruleId":"D1","level":"warning","message":{"text":"TeamPipeline._reply (cyclomatic 20): TeamPipeline._reply has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/pipeline/_team_pipeline.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"196324107645aed58ee45b2253ba5dc2b51dade3c16aa62fbc821a55bb19903f"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolResponse.append_chunk (cyclomatic 20): ToolResponse.append_chunk 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":"src/agentscope/tool/_response.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed03ade698bfb2bf5147723dcdd0ca3ec7691d67665a2eb5573130570874f4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._compress_context_impl (cyclomatic 19): Agent._compress_context_impl 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0b37f60c410dc28d750c8d78d452488f03f2d98856184bf219336ef2f6d139"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._next_action (cyclomatic 19): Agent._next_action 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82e9410bf7657da6338b1075e716bc1940d0de4d311911bcd0110cf6fafbb25"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatModelBase.count_tokens (cyclomatic 19): ChatModelBase.count_tokens 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":"src/agentscope/model/_base.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee90409aa85d6481fb7d396cc8b6be2b598f8c7a3cd0f0e48e0dc83b12063d07"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekChatModel._parse_stream_response (cyclomatic 19): DeepSeekChatModel._parse_stream_response 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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"006a407e2d9da5ad09e50e83976e0ec7c3042aeb2478c3c5e9fdfcaa78124ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIChatModel._parse_completion_response (cyclomatic 19): OpenAIChatModel._parse_completion_response 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":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"241d0dfc19a2b8c01fe0b62e63be19d3ef57798a30c06e1ad16b4764c8890106"}},{"ruleId":"D1","level":"warning","message":{"text":"WebRTCSession._run (cyclomatic 18): WebRTCSession._run 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":"src/agentscope/app/_service/_webrtc_session.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ee9d08a3c6a819e3c684bfa0849c330673fe0b4290be88731d69c485cc7301"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelBase._render (cyclomatic 18): ChannelBase._render 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":"src/agentscope/app/channel/_base.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a84224f17ace775a8678751dd663889a03ef659a92154aca9ff55cab972d56b"}},{"ruleId":"D1","level":"warning","message":{"text":"DingTalkChannel._on_callback (cyclomatic 18): DingTalkChannel._on_callback has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52a6a590312e6f48f2f0180dcd9935279216cd1f753bea80882c37a1561b0b2"}},{"ruleId":"D1","level":"warning","message":{"text":"FeishuChannel.start_listening (cyclomatic 18): FeishuChannel.start_listening 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b34436b8f97772065729365bcf766b9fd7bc7f6aac3c56a7b9c460102be498"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatModelBase.generate_structured_output (cyclomatic 18): ChatModelBase.generate_structured_output 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":"src/agentscope/model/_base.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1d8684659da5d5887f20c4f4e6b5ab0616aeec00e27ab102e9f25c86fe1595"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeAudioRealtimeModel.replay_history (cyclomatic 18): DashScopeAudioRealtimeModel.replay_history 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":"src/agentscope/realtime/_dashscope/_audio_model.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f0dbc6996fbd20d111b54bfb2045d575191ca5ef1ddcb4e6c72fb35030dc24"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeCosyVoiceTTSModel._synthesize_realtime (cyclomatic 18): DashScopeCosyVoiceTTSModel._synthesize_realtime 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":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"29851303312778ec81fa7f85e7b12f36789f85801d44b11687c7a28641161a15"}},{"ruleId":"D1","level":"warning","message":{"text":"K8sWorkspace._wait_pod_running (cyclomatic 18): K8sWorkspace._wait_pod_running 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":"src/agentscope/workspace/_k8s/_k8s_workspace.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa2ec31c15d5cfa27299ebff4beace364ec49c7136a55088de402866a68e98e"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSOPStep.reply_stream (cyclomatic 17): SessionSOPStep.reply_stream 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":"src/agentscope/app/_service/_sop.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4411aa5c8a95ef296899f701f3fd6cc2eb66275fae314ae5da891bf8714e38"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceService._parse_porcelain_v2 (cyclomatic 17): WorkspaceService._parse_porcelain_v2 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":"src/agentscope/app/_service/_workspace.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2255f70730a29970410921aa6ec53a1ba7abfa2d748feb74b5a238d13c65d23"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_completion_response (cyclomatic 17): AnthropicChatModel._parse_anthropic_completion_response 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":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec32476e07671e43b9b410e09a7a9fb7a6dc488a3e91a15235ddf6be179259f7"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiRealtimeModel._parse_content (cyclomatic 17): GeminiRealtimeModel._parse_content has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_gemini/_model.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d293e0a3e0dac63b115088c506063040e1f557fc3ec9565e07d9cde04d4c80a7"}},{"ruleId":"D1","level":"warning","message":{"text":"SOPStep.reply_stream (cyclomatic 17): SOPStep.reply_stream 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":"src/agentscope/sop/_schema.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bed3a02bc45f2af20c6094eb60ebd8ab141f0b582ec78cb00818fd8d838f7b"}},{"ruleId":"D1","level":"warning","message":{"text":"BubblewrapBackend.__init__ (cyclomatic 17): BubblewrapBackend.__init__ 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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"621fe55b6a7d69be2b67fcc90c6a6f815e09ac91be757de46696534cc78e474a"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent.__init__ (cyclomatic 16): Agent.__init__ 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7a6acb43eb81c840b2e334debd37ee2b4341077759422b8518939a1f97cce7"}},{"ruleId":"D1","level":"warning","message":{"text":"DingTalkChannel._parse_content (cyclomatic 16): DingTalkChannel._parse_content 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9b92787409a59e6b7011fde97b1e9a2d6be2bd800cd0769363994b568bfd7e"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaMultiAgentFormatter._format_agent_message (cyclomatic 16): OllamaMultiAgentFormatter._format_agent_message 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":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3d6af5a40cca72a1f8861786fbe84b0763e669c11b1e17207706921aa1750b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReMeMiddleware.on_reply (cyclomatic 16): ReMeMiddleware.on_reply 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":"src/agentscope/middleware/_longterm_memory/_reme/_middleware.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cd998ac6a0830a5dcc4d17fcd70a4c497facf45a92d412b3c79c367c06ddcb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatModelBase._call_api_with_structured_output (cyclomatic 16): ChatModelBase._call_api_with_structured_output 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":"src/agentscope/model/_base.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8ddaf1ff64c5c3c7c35237f3188401d93ab3c4f7d0391b771598072329e1cd"}},{"ruleId":"D1","level":"warning","message":{"text":"PPTParser._parse_slide (cyclomatic 16): PPTParser._parse_slide 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":"src/agentscope/rag/_parser/_ppt.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4e2f078cd8974b491a5eb1dcd27f80f7db4a44e2aa3c639c5f691ba5bb0d67"}},{"ruleId":"D1","level":"warning","message":{"text":"SOPEngine.reply_stream (cyclomatic 16): SOPEngine.reply_stream 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":"src/agentscope/sop/_engine.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faf1b0b62c72fa0b6881255cab247456dd811d97cdc2bae1cd6ecc918f9bed8"}},{"ruleId":"D1","level":"warning","message":{"text":"BashCommandParser._is_single_command_read_only (cyclomatic 16): BashCommandParser._is_single_command_read_only 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":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"604f42119adefb75471832001bb68dd53f109c46c3e11f158f223ac0b0ee020e"}},{"ruleId":"D1","level":"warning","message":{"text":"Edit.call (cyclomatic 16): Edit.call 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":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"30da3585ede5a4f2d7d6947abeb4c3902a14bc21637d5f85f4975ffb79a0caea"}},{"ruleId":"D1","level":"warning","message":{"text":"Glob.call (cyclomatic 16): Glob.call 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":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9f5a5d95142820ed1b64dc439dc30e4029657027f1d38f4b429064e13cc560"}},{"ruleId":"D2","level":"warning","message":{"text":"_AnthropicFormatterBase._format_messages (cognitive 145): _AnthropicFormatterBase._format_messages has cognitive complexity 145 (threshold 15). Drivers by points: if/else 28 (110 pts), ternaries 4 (19 pts), loops 4 (13 pts), boolean chains 3 (nesting depth added 106). 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":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b220369255ef69bbe329f82345793963060f1ca9f95bdaa3c4ad3374174c06"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIChatFormatter.format (cognitive 140): XAIChatFormatter.format has cognitive complexity 140 (threshold 15). Drivers by points: if/else 27 (114 pts), loops 6 (24 pts), boolean chains 2 (nesting depth added 105). 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":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e18d0e224b1a5e4323f01fa6167e6cec5b333f2febfc110e8a829928f89ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService._run_impl (cognitive 136): ChatService._run_impl has cognitive complexity 136 (threshold 15). Drivers by points: if/else 41 (80 pts), error handling 7 (16 pts), boolean chains 14, loops 5 (13 pts), ternaries 9 (13 pts) (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"636fa4933a5b638f8b082c358e77e4ed3a337603e8ffe1f9e8f245d7484ae24e"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekChatFormatter.format (cognitive 132): DeepSeekChatFormatter.format has cognitive complexity 132 (threshold 15). Drivers by points: if/else 21 (83 pts), ternaries 6 (27 pts), loops 4 (13 pts), boolean chains 9 (nesting depth added 92). 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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73b4af8b59faf81a20356526bec871ddb51c4a0733bdfd82d1f36ff5b57533a"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotChatFormatter.format (cognitive 129): MoonshotChatFormatter.format has cognitive complexity 129 (threshold 15). Drivers by points: if/else 23 (94 pts), ternaries 3 (15 pts), loops 4 (13 pts), boolean chains 7 (nesting depth added 92). 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":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4ba44bc7ca8a6c3ca95c4a035f6358fea728c1f1c992b3f0fbb562c15e4e32"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatFormatter.format (cognitive 114): DashScopeChatFormatter.format has cognitive complexity 114 (threshold 15). Drivers by points: if/else 23 (94 pts), loops 4 (13 pts), boolean chains 7 (nesting depth added 80). 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"62feccbaacdb32b7b7bc8716edb8b9c0f62e09d3d38e506fc4cd96103c953a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcengineChatFormatter.format (cognitive 113): VolcengineChatFormatter.format has cognitive complexity 113 (threshold 15). Drivers by points: if/else 22 (90 pts), loops 4 (13 pts), boolean chains 10 (nesting depth added 77). 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":"src/agentscope/formatter/_volcengine_formatter.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8788c2d2fb8c48a0f138cd694c24c5a2955013a3e483b66b814aa71fb777c15c"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaChatFormatter.format (cognitive 111): OllamaChatFormatter.format has cognitive complexity 111 (threshold 15). Drivers by points: if/else 20 (85 pts), loops 4 (13 pts), ternaries 2 (8 pts), boolean chains 5 (nesting depth added 80). 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":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16259a69b771c18105fcd32ca47ca1197022cb7656d49505892ac8c8970afda"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatFormatter.format (cognitive 110): GeminiChatFormatter.format has cognitive complexity 110 (threshold 15). Drivers by points: if/else 18 (78 pts), ternaries 4 (18 pts), loops 4 (13 pts), boolean chains 1 (nesting depth added 83). 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":"src/agentscope/formatter/_gemini_formatter.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3928cfe2b5d3baa2bc6d9c3beb44204d3c3dde509b28531d819f61f5ea0efd"}},{"ruleId":"D2","level":"warning","message":{"text":"BashCommandParser.check_sed_constraints (cognitive 109): BashCommandParser.check_sed_constraints has cognitive complexity 109 (threshold 15). Drivers by points: if/else 30 (78 pts), boolean chains 16, loops 7 (12 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 54). 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":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"398e35a45d5fde611fd1476d0f76610f9325fbb69378bbd2af3151f06266014d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIChatFormatter.format (cognitive 98): OpenAIChatFormatter.format has cognitive complexity 98 (threshold 15). Drivers by points: if/else 19 (78 pts), loops 4 (13 pts), boolean chains 7 (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_openai_formatter.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b452e3493b5814878a371b45ef2332ff11ae0ee1e95ee7f343fc83d03132d0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponseFormatter.format (cognitive 94): OpenAIResponseFormatter.format has cognitive complexity 94 (threshold 15). Drivers by points: if/else 19 (74 pts), ternaries 2 (10 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_openai_response_formatter.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc64960c27ea19106f8a5eac48bc616939cefe27c504e1ed13c98bbfb3113b9e"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._reply_impl (cognitive 86): Agent._reply_impl has cognitive complexity 86 (threshold 15). Drivers by points: if/else 25 (59 pts), loops 8 (22 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02f54f161d32dfe5276f512db869f22637b5ffc987fdda660c644fe4d8fa31"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalPipeline.reply_stream (cognitive 81): GoalPipeline.reply_stream has cognitive complexity 81 (threshold 15). Drivers by points: if/else 21 (54 pts), loops 7 (18 pts), boolean chains 7, ternaries 1 (2 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":"src/agentscope/pipeline/_goal_pipeline.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"843e395fc2a3d934add552ca4d213f55cba29667035d869a77ec45050ddfae55"}},{"ruleId":"D2","level":"warning","message":{"text":"Msg.append_event (cognitive 71): Msg.append_event has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (48 pts), ternaries 3 (10 pts), loops 4 (8 pts), boolean chains 4, match/switch 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/message/_base.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4a16bd4a28d74dfaa060334af35fcecc30321f17c7cc3f4a32953476034c45"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._inject_runtime_state (cognitive 65): Agent._inject_runtime_state has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 8, loops 3 (4 pts), ternaries 1 (4 pts), error handling 1 (3 pts) (nesting depth added 31). 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"9925079f48e1c716cc623505cca877b7eda471753c60e85669c8a9e705e42d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponseModel._parse_stream_response (cognitive 64): OpenAIResponseModel._parse_stream_response has cognitive complexity 64 (threshold 15). Drivers by points: if/else 10 (33 pts), ternaries 5 (16 pts), loops 3 (10 pts), boolean chains 5 (nesting depth added 41). 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":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"935805b371f5fff7535a131db12cfde64b440460a2bdfc97d26ff4423281ffa8"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIChatModel._parse_stream_response (cognitive 61): OpenAIChatModel._parse_stream_response has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 14, ternaries 3 (9 pts), loops 2 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1f7cd8a06a116e83c21a2f2d5063ac10f01a9e71c92b491028bab810527f78"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._execute_tool_call (cognitive 60): Agent._execute_tool_call has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (36 pts), loops 5 (13 pts), boolean chains 5, ternaries 1 (4 pts), error handling 2 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"32de1c645302c2005c4853c7605fc79a1e244522aae7006191453a61479b44b7"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatModel._parse_stream_response (cognitive 59): DashScopeChatModel._parse_stream_response has cognitive complexity 59 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 13, ternaries 2 (6 pts), loops 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"04501824c6689c13258334273a106b638dfbfe7b15068c08a0a74bd6115f9bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskUpdate.call (cognitive 59): TaskUpdate.call has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (42 pts), loops 6 (15 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_task/_update_task.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"53677d530b7315cc205780d5616c7ff20425a7efcfb2921f1e06e0ce4b3a8ece"}},{"ruleId":"D2","level":"warning","message":{"text":"WordParser.parse (cognitive 55): WordParser.parse has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 4 (15 pts), ternaries 1 (3 pts), boolean chains 2, error handling 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54f148b992bd6e0be41e002e7a84bb78dae479bb57d50e8e2f4fcd6e1586a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"DingTalkChannel.send_response (cognitive 45): DingTalkChannel.send_response has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 3 (5 pts), boolean chains 2, ternaries 1 (2 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ff35d0a6c0775645bdc9c39c85ae17b0ac6a89645e41370bab420ead67ce3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponse.append_chat_response (cognitive 44): ChatResponse.append_chat_response has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (22 pts), ternaries 2 (10 pts), loops 3 (9 pts), boolean chains 3 (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":"src/agentscope/model/_model_response.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"de193be803e35f714bdf0005aad86e4fda0b747f14c3084bb6bc657d87687829"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeAudioRealtimeModel.replay_history (cognitive 44): DashScopeAudioRealtimeModel.replay_history has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (29 pts), ternaries 3 (11 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_audio_model.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7fa22f366fb2ae3241a728ac583faabd87a62a3254225f0debd55dbfdfa320"}},{"ruleId":"D2","level":"warning","message":{"text":"Grep.call (cognitive 44): Grep.call has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 5, loops 3 (5 pts), error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_grep.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e7627d199bf13a6a610de3b36eaf2355870ea4e7d2c1c1c34463b85d4f5ff9"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._limit_context_images (cognitive 43): Agent._limit_context_images has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 6 (13 pts), boolean chains 3, ternaries 1 (2 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"318a11e153a4db715dd479cfa0fa785d53eb33c4921a467bc6e1368ef791a7af"}},{"ruleId":"D2","level":"warning","message":{"text":"_model._sanitize_schema_for_gemini (cognitive 43): _model._sanitize_schema_for_gemini has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b5009a567edf232209f41d54e62759cab69aceecc4618892bc3a89beb2d4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._handle_incoming_event (cognitive 41): Agent._handle_incoming_event has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 5 (18 pts), boolean chains 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcf61a6040cd3938970e688e508bd39401fa812b7b4a9daf6cbc424ff45989f"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSMiddleware.on_reply (cognitive 40): TTSMiddleware.on_reply has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 4 (13 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_tts_middleware.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fe032dd166b796c1827c067db651ef4808301e218e5ad307453ee078c54efc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelBase.generate_structured_output (cognitive 40): ChatModelBase.generate_structured_output has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8735a74b5179a3d02920644596faec02e4117cafd0b435a837781a32c6b48963"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelBase.count_tokens (cognitive 39): ChatModelBase.count_tokens has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 4 (13 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddd7c01e58768882cbfee91a7f6e33a63e37ff65e59d7072b4b37168001572d"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamPipeline._reply (cognitive 39): TeamPipeline._reply has cognitive complexity 39 (threshold 15). Drivers by points: loops 8 (20 pts), if/else 7 (16 pts), boolean chains 3 (nesting depth added 21). 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":"src/agentscope/pipeline/_team_pipeline.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e97d80bf2c2334ca7928442fde6e2d4c0e200778a907b0221f11575f8a2d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"A2AAgent._reply (cognitive 38): A2AAgent._reply has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 4 (7 pts), ternaries 2 (6 pts), error handling 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_a2a_agent.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"da99c81c32fd684330d7e711ee7ce8ec703691e003e4203ea04eca06eb045e65"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageUI.apply (cognitive 37): MessageUI.apply has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, loops 4 (7 pts), ternaries 4 (7 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":"src/agentscope/tui/_messages.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"637a9064c75fa4cd024c1113eb9209669ef75e354dea9a41a58ac4deb1305927"}},{"ruleId":"D2","level":"warning","message":{"text":"FeishuChannel.send_response (cognitive 36): FeishuChannel.send_response has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 5, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"2011d149bdfa1595250878fd150b78037183781e4418239a48618e1196ec4641"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._handle_incoming_messages (cognitive 35): Agent._handle_incoming_messages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 2 (5 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"405c07219d1fe5587a913bbb4cd4c99b8a0d0a46036e9b8138c1f7d51b144205"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotChatModel._parse_stream_response (cognitive 35): MoonshotChatModel._parse_stream_response has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 3 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"737075e89ee710fb1c607e101ffb9cc43273880653075801b7e521d0cf6853c8"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcengineChatModel._parse_stream_response (cognitive 35): VolcengineChatModel._parse_stream_response has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 3 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"68de74a3a125f35cbcfd9323acece82dee0f2e4818c4db20d61fdf935622fea7"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTParser._parse_slide (cognitive 35): PPTParser._parse_slide has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 2 (6 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_ppt.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"db002909e345c76b28da88c9d741d4359c53acfa9e9442a9ffcec2ee89efb6ea"}},{"ruleId":"D2","level":"warning","message":{"text":"K8sWorkspace._wait_pod_running (cognitive 35): K8sWorkspace._wait_pod_running has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (19 pts), boolean chains 7, loops 3 (7 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_k8s/_k8s_workspace.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dd423e25918872fa0be206ac7055b562b66f3d289e0401c81b9dc5cbbb217b"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent.connect (cognitive 34): RealtimeAgent.connect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 4, ternaries 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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab55afeb3f8ab35e0cc348516cea14ed226d583fd13d8b2f57d2a0de33310224"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceService._parse_porcelain_v2 (cognitive 34): WorkspaceService._parse_porcelain_v2 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 2 (8 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_workspace.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e278e349d578155e4ec9e4a0d84ab5e049cb36394b82b80fdb62318fecfabc3"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIChatModel._parse_completion_response (cognitive 34): OpenAIChatModel._parse_completion_response has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf969a96c1aad0712e20cb488ce67e7bfcaec1021b967639139ec3fb070c2c70"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiTTSModel._parse_stream_into_async_generator (cognitive 34): GeminiTTSModel._parse_stream_into_async_generator has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_gemini/_model.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd8e64af95e19193eb9e14acca85f589388cdfed22f648013176136862edb66"}},{"ruleId":"D2","level":"warning","message":{"text":"_app.create_app (cognitive 33): _app.create_app has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7, loops 5 (6 pts), ternaries 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_app.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a6ceee512eada5e50a6d4b0de75f915396d7f7c560052973a2ca2c98c38af8"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._parse_stream_response (cognitive 33): GeminiChatModel._parse_stream_response has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe94e9bfee49a185d7905872b1b96defe06260bee1aa31d22af1ac93e334cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"_word._extract_text_from_paragraph (cognitive 33): _word._extract_text_from_paragraph has cognitive complexity 33 (threshold 15). Drivers by points: loops 7 (19 pts), if/else 5 (14 pts) (nesting depth added 21). 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":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"100cf2a59f82c6662f03dc45b497a0c746105a581530a32057bc24ce4cbfb26e"}},{"ruleId":"D2","level":"warning","message":{"text":"SOPEngine.reply_stream (cognitive 33): SOPEngine.reply_stream has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (6 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/sop/_engine.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b3af3c795a3106a19ffe0f80d3a0a9352c58e13122f27fb859c3aba1240447"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._split_context_for_compression (cognitive 32): Agent._split_context_for_compression has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 5 (6 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":2873}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b699ea51cbbf95749f3fb3efa63786ed18df66a94d8d4877664640c5fa9f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"FeishuChannel.start_listening (cognitive 32): FeishuChannel.start_listening has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (7 pts), error handling 2 (4 pts), boolean chains 3, ternaries 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7c63cc738cb31c1238171567785416ed14280a313f16a0fbcff39acfc1520d"}},{"ruleId":"D2","level":"warning","message":{"text":"FeishuChannel._normalize (cognitive 32): FeishuChannel._normalize has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (8 pts), ternaries 5 (8 pts), loops 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"07df003b8419a8acd9ff38864b128777b51be769063e0e20082e7b27b0eb8850"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekChatModel._parse_stream_response (cognitive 32): DeepSeekChatModel._parse_stream_response has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 7, ternaries 2 (6 pts), loops 2 (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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1972ed829d0f520c7232b6a062eeeee53bd4f0bb1b11f869f90668aa7daa416"}},{"ruleId":"D2","level":"warning","message":{"text":"_glob_helper._match_parts (cognitive 32): _glob_helper._match_parts has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 2 (5 pts), loops 2 (5 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_scripts/_glob_helper.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fb294eca1e44c7b6077a2ad18802927d19f24bad633ca9ba694afc13cf46b0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponseModel._parse_completion_response (cognitive 31): OpenAIResponseModel._parse_completion_response has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (7 pts), boolean chains 5, ternaries 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":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39163b936569a07973f027ff63fd094be78755ea6ee5479ca9f698b19ba5485"}},{"ruleId":"D2","level":"warning","message":{"text":"_word._extract_table_data (cognitive 31): _word._extract_table_data has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"89717bb4d4e002c564eb142ac523058cb9884e91b6b49861bb0acd44730b4e38"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._compress_context_impl (cognitive 30): Agent._compress_context_impl has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (20 pts), error handling 3 (5 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c5f8beba46c5f5860b2f24c0ca5dffd2961395a12fbf406060d1d978bdf5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionService.delete_agent (cognitive 30): SessionService.delete_agent has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 3, error handling 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_session.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd1a0884244add229861181fcedc3ac27ec0894adb7f8eb7fd3de68307fb43c"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubMCPHub._to_card (cognitive 30): GitHubMCPHub._to_card has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (8 pts), ternaries 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/hub/_mcp/_github_hub.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d25d0bb2c19a8b2eda798ca837319b879861f9e1ad0d1df41fc3e39d4465662"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResponse.append_chunk (cognitive 30): ToolResponse.append_chunk has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 8, 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":"src/agentscope/tool/_response.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b594522ce179e38438e17f86c035f6ff8ad56665d8e1c1856bc9c7216623fa1b"}},{"ruleId":"D2","level":"warning","message":{"text":"_utils._extract_input_schema (cognitive 30): _utils._extract_input_schema has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 5 (11 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_utils.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f053d0c54de67a3c528264f9f5e7d6ec5bd3b8e926c1c8e1d23236748d90c5fb"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeCosyVoiceTTSModel._synthesize_realtime (cognitive 30): DashScopeCosyVoiceTTSModel._synthesize_realtime has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bbbcfed05f7f52fdb04577eb5f95d522fd3f1ec83baa1e6b6053c513f14d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatAppBase._publish (cognitive 29): _ChatAppBase._publish has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 2 (7 pts), boolean chains 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_launcher.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"55daccddec19704b40305bee06194f480bff5b07e2b9e11767f87fc3739342fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._split_tool_result_for_compression (cognitive 28): Agent._split_tool_result_for_compression has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (22 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e84da0c83968942f832100f34a1d0cdcb195ec2f8fafc725da881c9edaa2d02"}},{"ruleId":"D2","level":"warning","message":{"text":"AGUIProtocolMiddleware._to_agui_event (cognitive 28): AGUIProtocolMiddleware._to_agui_event has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26 (27 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_protocol/_agui.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9532acd070140940ef75e8954904026f9d6bb1c4be44979b0d43d0b9f0f0cbe1"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMultiAgentFormatter._format_agent_message (cognitive 28): AnthropicMultiAgentFormatter._format_agent_message has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feac0fa49bd73cea1134415c41454b3c4c8f3d2b520c80a39eb05a9cea82658"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._reasoning_impl (cognitive 27): Agent._reasoning_impl has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 7 (9 pts), boolean chains 4, ternaries 4 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9fb09d89a391b087c4d50782177e6d1c3cb1bc7bbb12a6233695664df79bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"FeishuChannel._parse_post (cognitive 27): FeishuChannel._parse_post has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (12 pts), ternaries 2 (8 pts), boolean chains 4, 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"712cdcf8cd9f796fb9470aac204fa2e77f7cc2c6fbef118044840aaa424b7b71"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent._on_model_event (cognitive 26): RealtimeAgent._on_model_event has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"42549f8bbacf7a6acb1f56220a0140df683a40890d790493b507c129af20d47d"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaMultiAgentFormatter._format_agent_message (cognitive 26): OllamaMultiAgentFormatter._format_agent_message has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6895815000a88fcfd338fc4d42453257dc09a5a8843f22b17235c13d1eb2951"}},{"ruleId":"D2","level":"warning","message":{"text":"TracingMiddleware.on_reply (cognitive 26): TracingMiddleware.on_reply has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (5 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":"src/agentscope/middleware/_tracing/_trace.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a281798a2e17981337164e4b6c6fb7eca4e75d285acddddcf5ea8c745787d6"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_stream_completion_response (cognitive 26): AnthropicChatModel._parse_anthropic_stream_completion_response has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 5, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d61b632edefbae7554f3031cdd639217da449ce86072936253366f29b1aceb"}},{"ruleId":"D2","level":"warning","message":{"text":"SOPStep.reply_stream (cognitive 26): SOPStep.reply_stream has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (5 pts), boolean chains 3, 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":"src/agentscope/sop/_schema.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0315f42872bf00f0d425e5be6c46d2cc501da0d3f8a8c726968581f2a97e1b8"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent._run_tool (cognitive 24): RealtimeAgent._run_tool has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (7 pts), boolean chains 2, error handling 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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd72a129c0a282332ec16da6b9db9caf33571a4072f92a4de0cc5e73e1cc07f3"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiMultiAgentFormatter._format_agent_message (cognitive 24): GeminiMultiAgentFormatter._format_agent_message has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_gemini_formatter.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"716daa8a87e828b9f2e050ff3a83c751c1b08486b857f4d049542bd01d47c097"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBase._enforce_mcp_capacity (cognitive 24): WorkspaceBase._enforce_mcp_capacity has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_base.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c66fd6fd5b0da459878b21cf264a3a03b1c3a85cd0f20e17c6b81a26b50d98"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._next_action (cognitive 23): Agent._next_action has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"94afbfe2912ff680cfb1a697ef8a6387b6fc2029ec21fbd17ffe7d2a23321f36"}},{"ruleId":"D2","level":"warning","message":{"text":"WebRTCSession._run (cognitive 23): WebRTCSession._run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, error handling 3 (5 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":"src/agentscope/app/_service/_webrtc_session.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec80f0b72b56930d1ab64590d0b3b2345f74ac9c70feb7976fb6138542a83dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordChannel.send_response (cognitive 23): DiscordChannel.send_response has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_discord/_channel.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c8e7ccfa68b3ea73f776b6dd6983f59d54bf27e97b762f7e3ab7de3d7e4697"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelBase._call_api_with_structured_output (cognitive 23): ChatModelBase._call_api_with_structured_output has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b2ece0baf5d8d921b269bc43542653656f7f3b9dc153d0333c087e9f7a116c"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._parse_completion_response (cognitive 23): GeminiChatModel._parse_completion_response has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"081b0c3b75c2653534050316e9609701f6a586871e04d663c80a05e561b7857d"}},{"ruleId":"D2","level":"warning","message":{"text":"_excel._restore_native_excel_errors (cognitive 23): _excel._restore_native_excel_errors has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_excel.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"113d6695ec82c0e802337c5de024d3392d5ac31d41b83d310e4cf65dcbedb18f"}},{"ruleId":"D2","level":"warning","message":{"text":"BashCommandParser._extract_paths_from_node (cognitive 23): BashCommandParser._extract_paths_from_node has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (8 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":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b127ffbf1f893e16b5dcea2be72f67d054b7dd66dec3d337ac98d8fcc6767421"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeMultiAgentFormatter._format_agent_message (cognitive 22): DashScopeMultiAgentFormatter._format_agent_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e7088b36fa17389a30457081fa061b0d183515467113f0180dfd2fd254d3a4"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIMultiAgentFormatter._format_agent_message (cognitive 22): OpenAIMultiAgentFormatter._format_agent_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_openai_formatter.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"8250d5d8c9ef35c8c0f15232dcc7304939f49b7f4a177135e7417abfe3af7d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"RegisteredTool.get_tool_schema (cognitive 22): RegisteredTool.get_tool_schema has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_types.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"588ddd8aed8c81a60171770066f8d54be2e692af8390914e3372b210c44dd57a"}},{"ruleId":"D2","level":"warning","message":{"text":"BubblewrapBackend.__init__ (cognitive 22): BubblewrapBackend.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4635d7782fe9f325b1c345fe7e97ab5bbe8bcbd422df735da6d2236138420823"}},{"ruleId":"D2","level":"warning","message":{"text":"K8sBackend._exec_ws_stdin (cognitive 22): K8sBackend._exec_ws_stdin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (5 pts), error handling 1 (3 pts), 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":"src/agentscope/workspace/_k8s/_k8s_backend.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1fa53a5bf42f6a46525483f33f74f7bc8341f29e7b1095f8669585575591a8"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordChannel.start_listening (cognitive 21): DiscordChannel.start_listening has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (5 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_discord/_channel.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3894a7ad114cf8ba9650274e996b428c0735560c4e87da965c4112ef03ef56d2"}},{"ruleId":"D2","level":"warning","message":{"text":"FormatterBase._group_messages (cognitive 21): FormatterBase._group_messages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_formatter_base.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8be1ea0bc688b4efb03552fd60b6d96224a353dd164e2576f04dcb3eff6ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"BashCommandParser._is_single_command_read_only (cognitive 21): BashCommandParser._is_single_command_read_only has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a841e0e60b5ea9babc7bf76b5c16a56a22068c573fd658d87419bbf6c33be9b8"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeTTSModel._parse_into_async_generator (cognitive 21): DashScopeTTSModel._parse_into_async_generator has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_model.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24a725bc1aab82994d96222554a79892472e2d2ab8c24e37bf5ac1b6bc59678"}},{"ruleId":"D2","level":"warning","message":{"text":"A2AAgent._build_request (cognitive 20): A2AAgent._build_request has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_a2a_agent.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f3852c5eac79e045fd37141f89b39b7d2f7131542118397defc73d3ed95e13"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._convert_chat_response_to_event (cognitive 20): Agent._convert_chat_response_to_event has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":3757}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bab8cdacaba09b557176fa6ac6247760906b29b469c8cbfdb3af924c24362ed"}},{"ruleId":"D2","level":"warning","message":{"text":"_toolkit.get_toolkit (cognitive 20): _toolkit.get_toolkit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_toolkit.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"520d85dad4c74687a5378334b990c8d12b16ea6b3feff208f76e08617b462bff"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamSay.__call__ (cognitive 20): TeamSay.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2, ternaries 2, error handling 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":"src/agentscope/app/_tool/_team_say.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"06efdd82255ad3c18aeb0faea919e216b825b8eb26d069b9480cda87c2ec2ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEmbeddingCache._maintain_cache_dir (cognitive 20): FileEmbeddingCache._maintain_cache_dir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_file_cache.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc26d9f87359c23c80b175be55f8a96ba37d59592f0eaedffa703a357b43c17"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGMiddleware.on_reasoning (cognitive 20): RAGMiddleware.on_reasoning has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 2, error handling 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":"src/agentscope/middleware/_rag.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"7755b7eb26d452fede037de8c00b69e1e54bc27d6998564b44175c53717de4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"_word._extract_image_blocks (cognitive 20): _word._extract_image_blocks has cognitive complexity 20 (threshold 15). Drivers by points: error handling 2 (6 pts), if/else 2 (6 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79dc5dddbe7e75c7b729ab74ab0bc4f796bf2478bc3ccef09b5e46d4dd9535e"}},{"ruleId":"D2","level":"warning","message":{"text":"Toolkit._get_available_tools (cognitive 20): Toolkit._get_available_tools has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 4 (7 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_toolkit.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e549245c04095e77c0adb325c1e4dd497fb64a7adc19e20a0fb945808e38c6e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BubblewrapBackend._terminate_process_tree (cognitive 20): BubblewrapBackend._terminate_process_tree has cognitive complexity 20 (threshold 15). Drivers by points: error handling 8 (18 pts), if/else 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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"259cb5b2d432eec59b3b91c8c7c61efd2a24e47a45bc4f6570317ba0d33c5960"}},{"ruleId":"D2","level":"warning","message":{"text":"update_news.main (cognitive 19): update_news.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/update_news.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cfbee8274751467a0ea51bb1e033f1a341a8531e3d4b996ed4e34eff480836"}},{"ruleId":"D2","level":"warning","message":{"text":"_a2a_agent._parts_to_events (cognitive 19): _a2a_agent._parts_to_events has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"src/agentscope/agent/_a2a_agent.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd266a74f53bd813616fc4dc7a3a637be60b924e1fa4d35df84918e91cc7b38"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._call_model (cognitive 19): Agent._call_model has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":3274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd418fd40fd64748f1d51f90d763d2a479fabec416e7818774d317f975ebbc1"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSOPStep.reply_stream (cognitive 19): SessionSOPStep.reply_stream has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_sop.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac326d383d18218e0f701080bd1f635d8aeae75e22acb166e5d5348acafcfd2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelBase._render (cognitive 19): ChannelBase._render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1, ternaries 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":"src/agentscope/app/channel/_base.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3e7afc7972cf26ac29eb21fc7e8e150483473c141b492c6cfe59fad783e970"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolOffloadMiddleware.on_acting (cognitive 19): ToolOffloadMiddleware.on_acting has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_tool_offload_middleware.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4968b57ed74782014a6d7f2f12936dbb74021b8c10dbb39b5d35bea904247f"}},{"ruleId":"D2","level":"warning","message":{"text":"Mem0Middleware.on_reply (cognitive 19): Mem0Middleware.on_reply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_mem0/_middleware.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f846967552bd90dc3888a2f951065214bc192a1b0ee20d9e07c5c0139c329b73"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIChatModel._parse_stream_response (cognitive 19): XAIChatModel._parse_stream_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, 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":"src/agentscope/model/_xai/_model.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa54faba1e1508a0e0a207ffe9677d0bf295ea6dcf4a9811043a536f707d997"}},{"ruleId":"D2","level":"warning","message":{"text":"Edit.call (cognitive 19): Edit.call has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), error handling 2 (3 pts), ternaries 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"067fe4b2fc279b22b56d21acda25b021dc4dbc5035521dc2a8613e8c5aa6d22b"}},{"ruleId":"D2","level":"warning","message":{"text":"Read._read_pdf (cognitive 19): Read._read_pdf has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts), 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":"src/agentscope/tool/_builtin/_read.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef25095f093628d57e8b3e54220ab6e1707db9f74bd10acd450dc41d101b535"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeRealtimeTTSModel.synthesize (cognitive 19): DashScopeRealtimeTTSModel.synthesize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 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":"src/agentscope/tts/_dashscope/_realtime_model.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"20774e8316e9e8d8bd1302f72824352887109a9bdfce8ce4d0f8c39db42d55ce"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerWorkspace._build_or_reuse_image (cognitive 19): DockerWorkspace._build_or_reuse_image has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (17 pts), error handling 1, loops 1 (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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04cd59bb6681611581355bcc55d7a8700523b18312c373c14e83bf1640d5eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent.reply_stream (cognitive 18): RealtimeAgent.reply_stream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (5 pts), loops 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7f8b846947d6b534187408e25fc10e6e3bcab5c88c798397ebb08f3374ab98"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamMemberLoopMiddleware._last_tool_call_reports_to_leader (cognitive 18): TeamMemberLoopMiddleware._last_tool_call_reports_to_leader has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 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":"src/agentscope/app/middleware/_team_member_middleware.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1538928394ec3d3377d1e8424cf1742ae539dff7a98d833c53b63f755b9435f"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIMultiAgentFormatter.format (cognitive 18): XAIMultiAgentFormatter.format has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2384677496777a2ddcd333e945790b7ec4974323bcfaa70edd92082c2c7090f"}},{"ruleId":"D2","level":"warning","message":{"text":"Mem0Middleware._resolve_client (cognitive 18): Mem0Middleware._resolve_client has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_mem0/_middleware.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ff62270b1962eea5b165a4cf9905ca9652b08d57acb32903a642a9ea84ab42"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._format_tools (cognitive 18): GeminiChatModel._format_tools has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 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":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2183e6b6e8d1b7926793414895009c0fc924ead720217ede63630d64283cd52e"}},{"ruleId":"D2","level":"warning","message":{"text":"Toolkit.call_tool (cognitive 18): Toolkit.call_tool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (4 pts), error handling 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_toolkit.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"380a28b5b60943630b5c38ae76c4d550c364da48ff88c9799efa8077f0401eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"_utils._remove_title_field (cognitive 18): _utils._remove_title_field has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_utils.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"151b68bc0ead5a35a69f7d978075fd2de7b14341bebd7f4bbab3773d11987a72"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalWorkspace.initialize (cognitive 18): LocalWorkspace.initialize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246ecdcefdbbc9e17c49cc8fbbcba2b5052ab4b6afed94a84845a47195afcc1"}},{"ruleId":"D2","level":"warning","message":{"text":"WebRTCAudioTransport._handle_json (cognitive 17): WebRTCAudioTransport._handle_json has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_webrtc_audio_transport.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fe170ec4af547e8c9d7aa8dfcf3a98ac71e48c61449cac8d7e90359756d464"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentInvite.__call__ (cognitive 17): AgentInvite.__call__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_tool/_agent_invite.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"3239301683b59d7490445dd39b2083a87f93732bfb0dbde41f62d7ce3f572d28"}},{"ruleId":"D2","level":"warning","message":{"text":"DingTalkChannel._on_callback (cognitive 17): DingTalkChannel._on_callback has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 3. 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9129182a2b5df9e81d18a56daffc0b37e90a0fd6f989ad495c9a95d7d7f5b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatModel._format_tools (cognitive 17): DashScopeChatModel._format_tools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"091648531ded3bb3c67c7a89dbcffed145440c6a7e9727442f2ca90ed798a215"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotChatModel._call_api (cognitive 17): MoonshotChatModel._call_api has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb7ee667c81436a44b366e516f118461e8bd908eadbc671c162a1e3af3a3735"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.search (cognitive 17): KnowledgeBase.search has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_knowledge.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"262c1d6ac6ceab715b8d8ef97bfad8f55df56ba7c327724919720ac861f60a79"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeRealtimeModel._parse (cognitive 17): DashScopeRealtimeModel._parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcfc713b985c838d328e11215a83c57f83ef811607d0ac70e311770be90484e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIRealtimeModel._parse (cognitive 17): OpenAIRealtimeModel._parse has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (8 pts), match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1083936ad1d2155ec8f0c5c4a96dfef5d3e6ddec184eaeaa7e2a091ae1847d"}},{"ruleId":"D2","level":"warning","message":{"text":"BackendBase._find_entries (cognitive 17): BackendBase._find_entries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_backend.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7e5674caad056a4feab97db9c892df9d0b7284d68159c81bdd610110b85473"}},{"ruleId":"D2","level":"warning","message":{"text":"Bash.call (cognitive 17): Bash.call has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, error handling 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":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e685a5add9e0f9d6c4a2c788c994f8787632202c12a8f19bd8daeb27c51ea31b"}},{"ruleId":"D2","level":"warning","message":{"text":"Glob.call (cognitive 17): Glob.call has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (6 pts), boolean chains 2, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"465b527592a3fe440f2fae3f94f4a0df7779b4783445999e3178c0c278c56c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Toolkit.add_tool (cognitive 17): Toolkit.add_tool has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts), ternaries 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":"src/agentscope/tool/_toolkit.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6543ef4c9e338f3befa38ffd008a634b24bd2910715717c58629e6cfc7e9f23"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeRealtimeTTSModel.push (cognitive 17): DashScopeRealtimeTTSModel.push has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_realtime_model.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"24563c1177d3003473ddc7683f72a9c4698ebe78c367bddcba845a206faf64c2"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayClient.exec_request (cognitive 17): GatewayClient.exec_request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 4 (6 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_gateway_client.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f888d12fdfe29f56c90224c20fcb79d9e6224ebbfcfb97fa9444a8adde9580"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._execute_concurrent_tool_calls (cognitive 16): Agent._execute_concurrent_tool_calls has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), error handling 3 (6 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27ccc1b8c53628cbfbfa298ca45d592ac2a44223d07da224509de1dae78a096"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent.send (cognitive 16): RealtimeAgent.send has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c3670242e7ce9c00a1e794af8ac2005f4fe43029491c2e504bc432995c55a"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerManager.validate_schedule (cognitive 16): SchedulerManager.validate_schedule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_scheduler/_scheduler_manager.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93a8eaca8d43c3a04c6d8b8e4ac96a5bf1a0d998f369603d8abe4b35658df08"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubMCPHub._from_package (cognitive 16): GitHubMCPHub._from_package has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 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":"src/agentscope/app/hub/_mcp/_github_hub.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5524c80c77bfc2d5f51d96bbabc31b1cc176e732e969f4ce555aae93eefdd27e"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisStorage.delete_agent (cognitive 16): RedisStorage.delete_agent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e79f4c4952ac315a2794dfedbdbc12965604ce929bd5ee1411ff9d0f135ffb3"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotMultiAgentFormatter._format_agent_message (cognitive 16): MoonshotMultiAgentFormatter._format_agent_message has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"995fa4f25a55470fa2b06031e59242911388a9c95e465060023124427d436904"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticMemoryMiddleware.on_reply (cognitive 16): AgenticMemoryMiddleware.on_reply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeed68ac2a5972cd4e4731b1e82c39a56a3024c05bb64a6de77202cda3736679"}},{"ruleId":"D2","level":"warning","message":{"text":"ReMeMiddleware.on_reply (cognitive 16): ReMeMiddleware.on_reply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 1 (2 pts), loops 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_reme/_middleware.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56b249d1b28a2b7f3ea8f42614178f1db8a1959d62339ff668d5738c70cb1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGMiddleware.on_reply (cognitive 16): RAGMiddleware.on_reply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_rag.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d9346ec73936de66088fdb66478aed2a5f7db2d15b1ed5a8c55a15732175cc"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_completion_response (cognitive 16): AnthropicChatModel._parse_anthropic_completion_response has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), loops 1 (2 pts) (nesting depth added 3). 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":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41a0c95b79dbc6bf29f9bf1f1dcab65d950951c6d48331a64c6c8d01ffed964"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelBase._validate_tool_choice (cognitive 16): ChatModelBase._validate_tool_choice has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba98216c2254b91f52f75a251adb40a7d6c24461e6c5f2c6e346211e53ced7be"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatModel._parse_completion_response (cognitive 16): DashScopeChatModel._parse_completion_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a3ce648c0623e1043e6cde846ab35d7a40471e7ae49f8bf7345cfe3b8860ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCard.from_yaml (cognitive 16): ModelCard.from_yaml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_model_card.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f712141ff15d49b65f5a79cf097a183285113c06dae301fc5c18710969260d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponse.append_thinking (cognitive 16): ChatResponse.append_thinking has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_model_response.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe48cf19ad76b11013ed10be3af70e5f98a146fb3615f3e6302205b56ef06ed"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIChatModel._format_tools (cognitive 16): XAIChatModel._format_tools has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_xai/_model.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1d845e36f91ace5909af3bb37426c53c09f4479c0b96bf81d3510c9e231e52"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiRealtimeModel._parse_content (cognitive 16): GeminiRealtimeModel._parse_content has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_gemini/_model.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"988faac9d8c55415a02d24c3c50b2cc817140da3f7ae24120879a037a1e887ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolContext.get_cache (cognitive 16): ToolContext.get_cache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 1 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/state/_state.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ae8b7dc26088493182de94e4c71057371c079cdabad44357fda8bdfac568d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Bash.check_permissions (cognitive 16): Bash.check_permissions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33234dbedc9c32e2f991d323a2ebc1488abc509ac6ce03814c90059f22d1fac"}},{"ruleId":"D2","level":"warning","message":{"text":"_messages._group_tool_calls (cognitive 16): _messages._group_tool_calls has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_messages.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fe854e64c7c9d81329dec01dae3ba77b0b6f7717a53976b6ca0732410d2484"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/_agent.py: FileTooLong \u2014 2292 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1792 over it, 4.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e6208b578af1ea73b6d7c83738a4ea80ef288655d2afa9935e76b0334a20a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/_redis_storage.py: FileTooLong \u2014 1566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1066 over it, 3.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"991cfa02ee35e6229646e7e7edbd11eb54648e1e1c273fd58f8ab5aacf9430b2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RedisStorage: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\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":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8e24c89c6b21ee7b6451514ab5d5c97ef7e84b302d7c8be33d7fe91497c51e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _service/_chat.py: FileTooLong \u2014 913 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 413 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1079a0d1c29b082f5a7870ee0b8add1d1a65ed914b07ce2abe373c4943f2fd4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _dingtalk/_channel.py: FileTooLong \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 391 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37edc564f771ea7d039740aa764440dbf2ef3ce82957b025e4b0d1e4c4710ff2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _realtime/_agent.py: FileTooLong \u2014 850 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 350 over it, 1.70\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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1849a9c1d7aa4e7235e618b1f62f0bbfc5b8724293ba593d4e795a2a0487f320"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _feishu/_channel.py: FileTooLong \u2014 843 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 343 over it, 1.69\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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7660e414a239b60d4b3eeb4904301c7921cdbb03980d05ffb4675584fc05f855"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workspace/_base.py: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 297 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00810754a6d77a4649f420bd27f6722235ae90770cd2ec7aac82e5c0642ff729"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessageBus: 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":"src/agentscope/app/message_bus/_base.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef02e8d53becd752a20591952bc0d8dd5a3becfa82ee8322651354ee72c2d66f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/_messages.py: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_messages.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"198a0047c1b13dafa3a39474040a64952c7be53e9010b8af37e9ef86b297c05d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Agent: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"src/agentscope/agent/_agent.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d640841299bff886c5774cfce190d73ce8a3897cae67b9bf076f0d0dfc74040d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RealtimeAgent: 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":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5d2ca455547e93a798dd8d8997c68f2de8657ab0a641ba45f18d38bc12cd51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _dingtalk/_openapi.py: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 100 over it, 1.20\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":"src/agentscope/app/channel/_dingtalk/_openapi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fcca412ebd5d3e7b7ee5cb08485627903d35d091956e0ae71602e9bc2ade39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _agentic_memory/_middleware.py: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12170b7c39e73197924627d293a7168ffb62fef318c0699128c5301ec74241ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceBase: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"src/agentscope/workspace/_base.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"753a16516777c8e93a5aa37efea146090f4310670ddd1baa45bb89a48d1aa04f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FeishuChannel: 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fdfe832c7845442fdd4a629f6be54f48ac9f9b8e81144f6ca6b2f06480296e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workspace/_local_workspace.py: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"858547ee7ad013c857d4335846489acc1253622716fe7d713f3cdbc0657f1b76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: middleware/_rag.py: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_rag.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f349cffc8be246d7484090176b3587f613b40d94cce0e63cd3e0e638335ed7c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _builtin/_bash_parser.py: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02121f08cd32801adb63e3acb94b423e3abcf17115ca0b4a9e06cf5a4084c619"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DingTalkChannel: 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"856be7dab4d90bb91cc796d39aac4919e409442990a09d6727dd8fcabdf48cd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _router/_session.py: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\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":"src/agentscope/app/_router/_session.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"350bdff837b8ccab02a6831dddcce959b4c518e24045a88ef792074756ac461d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 40 shared lines): src/agentscope/model/_dashscope/_model.py:287-429 | src/agentscope/model/_deepseek/_model.py:244-342 | src/agentscope/model/_moonshot/_model.py:249-350 | src/agentscope/model/_openai_chat/_model.py:308-458 | src/agentscope/model/_volcengine/_model.py:247-346 \u2014 These 5 members are variants of one another: a block of 40 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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1e3271dada083df20eb562c2b10bdf3e4737f22546c89c16d88c030e8e7ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): src/agentscope/formatter/_deepseek_formatter.py:49-247 | src/agentscope/formatter/_moonshot_formatter.py:109-309 \u2014 These two members are variants of one another: 68 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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ce2f19e500f5550303bfeb037ebf2f155c01e20171836c72b289576e257337"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): src/agentscope/formatter/_dashscope_formatter.py:235-415 | src/agentscope/formatter/_openai_formatter.py:256-424 \u2014 These two members are variants of one another: 56 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"566ed76ee1efdb7761cfe98b97bcf0e9ed857fe4b159d8035957d1b03cfd70fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (45 shared lines): src/agentscope/formatter/_deepseek_formatter.py:49-247 | src/agentscope/formatter/_volcengine_formatter.py:106-295 \u2014 These two members are variants of one another: 45 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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fe4e2bd14c9a5f5367594d7fa4c5dbf4bcce648d406e280cfa0933c799c5d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): src/agentscope/permission/_engine.py:122-212 | src/agentscope/permission/_engine.py:302-393 \u2014 These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/permission/_engine.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51c571b94f9dc8f385bcaa9c36e540f447dfa68d29169a055d2deb6ccdefd51"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/agentscope/formatter/_dashscope_formatter.py:119-141 | src/agentscope/formatter/_dashscope_formatter.py:147-170 | src/agentscope/formatter/_dashscope_formatter.py:176-217 | src/agentscope/formatter/_gemini_formatter.py:67-109 | src/agentscope/formatter/_moonshot_formatter.py:30-60 | src/agentscope/formatter/_ollama_formatter.py:73-100 | src/agentscope/formatter/_openai_formatter.py:84-121 | src/agentscope/formatter/_openai_formatter.py:127-183 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"40251c9a1e96b6f7dfa28e823cd0f87c3dbae328bf9bfb4f6ad25a28eea94ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:156-203 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:150-171 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:186-239 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:251-313 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:270-335 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:180-225 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:206-269 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c39a3534a87d182854962d2b8ec6ab8a4795a137e4417a03b157071ac335e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:269-283 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:247-261 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:314-328 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:447-461 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:454-468 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:324-338 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:331-345 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"506b5d02959ba8bc04a2f656c1c9952b0d2df4916177efdb2c1a85f1678d1b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/formatter/_dashscope_formatter.py:506-567 | src/agentscope/formatter/_moonshot_formatter.py:425-460 | src/agentscope/formatter/_openai_formatter.py:504-566 | src/agentscope/formatter/_openai_response_formatter.py:491-536 \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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d93ede8fe640ca12412a1af71c20afd274768495e2df6fecad3577ebfb6783"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/model/_dashscope/_model.py:200-280 | src/agentscope/model/_deepseek/_model.py:165-237 | src/agentscope/model/_moonshot/_model.py:164-242 | src/agentscope/model/_volcengine/_model.py:167-240 \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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"756cf4905cc175c98dd3c966533144742784419961274d700b4d6194cb82d378"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/realtime/_dashscope/_model.py:275-289 | src/agentscope/realtime/_gemini/_model.py:319-333 | src/agentscope/realtime/_openai/_model.py:284-298 | src/agentscope/realtime/_xai/_model.py:251-265 \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":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e74444f68cf6ccbd0b4c5cce734fee80787bcc6a687b22d25eea276eef134c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201362 lines \u00D7 4): src/agentscope/permission/_engine.py:122-172 | src/agentscope/permission/_engine.py:219-270 | src/agentscope/permission/_engine.py:302-352 | src/agentscope/permission/_engine.py:400-461 \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. 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":"src/agentscope/permission/_engine.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"432ee01f727635bf414b034081d6b21ca50f8845b8fc03a0be21d6e694ee0775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201361 lines \u00D7 6): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:156-200 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:186-234 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:251-308 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:270-330 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:180-222 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:206-264 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_daytona_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 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 \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:156\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c6f5b7d7673f3adb0b7fa14e5dde6f912c48b3a2d18a1cc34f65a51b4c1d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/agentscope/tool/_builtin/_edit.py:130-187 | src/agentscope/tool/_builtin/_write.py:107-164 \u2014 before extracting anything, compare \u0060src/agentscope/tool/_builtin/_edit.py\u0060 and \u0060src/agentscope/tool/_builtin/_write.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"613cfec7a71db71aea3b7e110ae0b5b0d6dfb25f3e096914bf76d812fa5b8caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/agentscope/message/_base.py:550-591 | src/agentscope/message/_base.py:660-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/agentscope/message/_base.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"617e6adb3ecc6e3a031f51e760cd4c910b2cd905eaa0a9c3f559d205bbb098e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): src/agentscope/formatter/_anthropic_formatter.py:322-360 | src/agentscope/formatter/_openai_formatter.py:190-230 \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":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fd5d2048c937ab65176c3bbf68198b131479e6e618104c8d91ca0024f66afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201335 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:336-365 | src/agentscope/model/_deepseek/_model.py:287-321 | src/agentscope/model/_moonshot/_model.py:295-329 | src/agentscope/model/_volcengine/_model.py:291-325 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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 \u0060src/agentscope/model/_dashscope/_model.py:336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f856eb4e80529c70dbf673ce71d1c09d45870de6b79db7ef17b28e226ccd1e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:68-102 | src/agentscope/formatter/_openai_formatter.py:35-67 | src/agentscope/formatter/_volcengine_formatter.py:31-56 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 298 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 \u0060src/agentscope/formatter/_openai_formatter.py:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/formatter/_dashscope_formatter.py:106\u0060 calls \u0060_format_audio_source\u0060 and \u0060src/agentscope/formatter/_volcengine_formatter.py:59\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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6ca2e6068435a9edee6586d88f4cebae4cf09689eff883661152de7a4970c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/agentscope/app/_tool/_agent_create.py:489-523 | src/agentscope/app/_tool/_agent_invite.py:442-476 \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 \u0060src/agentscope/app/_tool/_agent_create.py:489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_tool/_agent_create.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9760fae2ed16dd34581bbbde612956eae1642617424bdc092a2fadf85e99422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201335 lines \u00D7 2): src/agentscope/app/message_bus/_redis_message_bus.py:119-153 | src/agentscope/app/storage/_redis_storage.py:218-247 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/app/message_bus/_redis_message_bus.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c4417b705d3938584e61c52e72e4662964c9ee3b1b019ff3ac8b63828cf2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201335 lines \u00D7 2): src/agentscope/formatter/_ollama_formatter.py:208-242 | src/agentscope/formatter/_openai_formatter.py:346-374 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_ollama_formatter.py:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad29eba479ca5bb563a869dcef00107f01a81602f622e3875ea216ff3dbea68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201333 lines \u00D7 7): src/agentscope/formatter/_anthropic_formatter.py:423-439 | src/agentscope/formatter/_dashscope_formatter.py:445-477 | src/agentscope/formatter/_deepseek_formatter.py:274-290 | src/agentscope/formatter/_gemini_formatter.py:332-348 | src/agentscope/formatter/_ollama_formatter.py:366-382 | src/agentscope/formatter/_openai_formatter.py:459-475 | src/agentscope/formatter/_volcengine_formatter.py:322-338 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 7 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_anthropic_formatter.py:423\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576a5564086f1abdb6f8ca5a2fe85811646e11229f07d6c5e3ee6889fede14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 6): src/agentscope/model/_dashscope/_model.py:200-228 | src/agentscope/model/_deepseek/_model.py:165-197 | src/agentscope/model/_gemini/_model.py:266-294 | src/agentscope/model/_openai_chat/_model.py:206-238 | src/agentscope/model/_openai_response/_model.py:187-219 | src/agentscope/model/_volcengine/_model.py:167-199 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c86367ca2c6a9ba3a0e8c3a1cd7d16eddde3022a02e177df30e113dd7c5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:411-443 | src/agentscope/model/_moonshot/_model.py:422-454 | src/agentscope/model/_volcengine/_model.py:414-446 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_moonshot/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 208 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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"054e5634ee874553379055a6e0ae83eb2e24ad3a935f0802a3fa09d681cfeba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/agentscope/formatter/_moonshot_formatter.py:186-218 | src/agentscope/formatter/_openai_formatter.py:314-346 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 184 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 \u0060src/agentscope/formatter/_moonshot_formatter.py:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca1681da4308f58d8266e0f110d1be6f43e6eead8e575c5fe1949ae34586d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): src/agentscope/app/middleware/_sop_step_middleware.py:37-65 | src/agentscope/app/middleware/_team_member_middleware.py:51-82 \u2014 before extracting anything, compare \u0060src/agentscope/app/middleware/_sop_step_middleware.py\u0060 and \u0060src/agentscope/app/middleware/_team_member_middleware.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5017112e5b4e2f49d7b4a80e5b563b3425064f0dae192e702d9e78e52c43e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201332 lines \u00D7 2): src/agentscope/middleware/_longterm_memory/_mem0/_utils.py:17-38 | src/agentscope/middleware/_longterm_memory/_reme/_utils.py:17-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/middleware/_longterm_memory/_mem0/_utils.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1ca5f74b63d3123ed5add3e732147b6116be22cb823c159995834bf89d9ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201332 lines \u00D7 2): src/agentscope/workspace/_docker/_docker_backend.py:173-192 | src/agentscope/workspace/_k8s/_k8s_backend.py:261-292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/workspace/_docker/_docker_backend.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"331d8d69bd48278a9d86413fe65f909e20575f7298a0e8695850b78c3c82ed83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): src/agentscope/embedding/_embedding_model_card.py:142-168 | src/agentscope/model/_model_card.py:124-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_embedding_model_card.py:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_embedding_model_card.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb6f3a83f98d97fc7a1a7cd5ebf2c88012d587c7e457e453581854b7065b075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:207-235 | src/agentscope/model/_moonshot/_model.py:212-240 | src/agentscope/model/_volcengine/_model.py:210-238 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_moonshot/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 208 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 \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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb3138944a4518d5ea58b9dec9f80a269f175e62753f25d030aeba244695fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:168-196 | src/agentscope/formatter/_volcengine_formatter.py:222-250 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_volcengine_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 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 \u0060src/agentscope/formatter/_deepseek_formatter.py:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"28925eba7737677393ec121a205a5b14733420bb3e04060a8c8537fce654a5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201328 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:119-133 | src/agentscope/formatter/_dashscope_formatter.py:147-162 | src/agentscope/formatter/_moonshot_formatter.py:30-48 | src/agentscope/formatter/_openai_formatter.py:84-111 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/formatter/_moonshot_formatter.py:49\u0060 calls \u0060get\u0060, \u0060raise_for_status\u0060, \u0060b64encode\u0060 and \u0060src/agentscope/formatter/_dashscope_formatter.py:134\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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5027ec48abcd99d0b7f2c12f32eba35725fa28c15e12a2e8a824d613216bc578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): src/agentscope/model/_dashscope/_model.py:436-463 | src/agentscope/model/_deepseek/_model.py:349-375 | src/agentscope/model/_volcengine/_model.py:353-379 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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 \u0060src/agentscope/model/_dashscope/_model.py: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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4e01d58885350c34be5bb275fab3fd2514fb893decb089f04278d65d673ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201328 lines \u00D7 2): src/agentscope/app/middleware/_sop_step_middleware.py:149-169 | src/agentscope/app/middleware/_team_member_middleware.py:193-220 \u2014 before extracting anything, compare \u0060src/agentscope/app/middleware/_sop_step_middleware.py\u0060 and \u0060src/agentscope/app/middleware/_team_member_middleware.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/middleware/_sop_step_middleware.py:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27e246cc2fcbf7348dbdb7455749c4084b383588ee1f579e05262b691eba1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:163-189 | src/agentscope/formatter/_moonshot_formatter.py:225-252 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dce0c0684125298ecbaca325f294714ff706bc170470ad404786d8f6edf6d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/agentscope/model/_anthropic/_model.py:585-612 | src/agentscope/model/_gemini/_model.py:542-571 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa98bddd8f138cf006ad56ac25153b038bb9e1e75caf5fee16ad8b1b48dbd05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:244-270 | src/agentscope/model/_moonshot/_model.py:249-275 | src/agentscope/model/_volcengine/_model.py:247-273 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_moonshot/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 208 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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e193087afdb502ec64a4cc93788f26835d8811d079601b3a49bc09da470f17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:277-301 | src/agentscope/app/storage/_sql/_storage.py:684-710 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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. Note first that the copies are not typed on the same thing: \u0060CredentialBase\u0060 names \u0060....credential\u0060 in one and \u0060...credential\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77344856f1882ce819247a38087887f54297d236cf52b6b1c91c6e7adbbe324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:541-567 | src/agentscope/formatter/_openai_formatter.py:540-566 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 298 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 \u0060src/agentscope/formatter/_dashscope_formatter.py:541\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eaabd7519e12386d50f3995afb3d6432cad76c563d51347cdc456e946d9910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): src/agentscope/agent/_agent.py:3592-3617 | src/agentscope/agent/_agent.py:3729-3752 \u2014 both copies are in the same file, so extract the block 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":"src/agentscope/agent/_agent.py"},"region":{"startLine":3592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93b74ec716aa01e1b603c1ae804f711e54650cb820bfa5782ae87420f0cc573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): src/agentscope/app/_service/_chat.py:1280-1305 | src/agentscope/app/_service/_chat.py:1374-1395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"75de87003bdd648181eca1dce862c074d3275e45d6febe3ab05d903a85b0f0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_channel.py:306-331 | src/agentscope/app/channel/_feishu/_channel.py:659-679 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060src/agentscope/app/channel/_dingtalk/_channel.py:306\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c2a5d7f3ac04d1c6b82e89d7efc0a34264bfde52292b7447ffca9645069679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201326 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:2385-2410 | src/agentscope/app/storage/_redis_storage.py:2444-2461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b321cc3a44ce1fee085dea2b049d223eb7284caaa27126b862d8466a5a75dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:387-412 | src/agentscope/model/_openai_chat/_model.py:538-563 \u2014 \u0060src/agentscope/model/_moonshot/_model.py\u0060 and \u0060src/agentscope/model/_openai_chat/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 168 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 \u0060src/agentscope/model/_moonshot/_model.py:387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8f1e9336fa9f92bc7f69b1b72e770cccae194999a80048e448b52c97f604fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:349-373 | src/agentscope/formatter/_moonshot_formatter.py:235-259 | src/agentscope/formatter/_openai_formatter.py:356-380 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b90e263c57fd1b1899dc30da9b1c7e1976add51eb12ecb6be2f94124a41cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:528-551 | src/agentscope/formatter/_gemini_formatter.py:404-428 | src/agentscope/formatter/_openai_formatter.py:527-550 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47116a97c65aa96165ce0e43bc7821ac91f624ae8d9cda4958bcdd511564fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): src/agentscope/app/middleware/_sop_step_middleware.py:113-132 | src/agentscope/app/middleware/_team_member_middleware.py:151-175 \u2014 before extracting anything, compare \u0060src/agentscope/app/middleware/_sop_step_middleware.py\u0060 and \u0060src/agentscope/app/middleware/_team_member_middleware.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/middleware/_sop_step_middleware.py:113\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fd00c37d82ac9876231ff6b8d99055a5566687ed994c0a86f450a51191114b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:193-216 | src/agentscope/formatter/_moonshot_formatter.py:256-280 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a5345418b9d2791f72868820defc155412140739ceebc93b15b86fd9daa3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/agentscope/realtime/_dashscope/_model.py:368-392 | src/agentscope/realtime/_xai/_model.py:324-348 \u2014 \u0060src/agentscope/realtime/_dashscope/_model.py\u0060 and \u0060src/agentscope/realtime/_xai/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 61 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 \u0060src/agentscope/realtime/_dashscope/_model.py:368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01e87ab9b1eeedf96cbd283d35f4bebe3c5c6e207af731aeaad217c40351ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201325 lines \u00D7 2): src/agentscope/tts/_dashscope/_cosyvoice_utils.py:90-107 | src/agentscope/tts/_dashscope/_realtime_model.py:89-113 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/tts/_dashscope/_realtime_model.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_cosyvoice_utils.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee960b75cbf7f5d90ab8b516543e77eb9dca7b54d3407857736d2c3d4ec73246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:359-382 | src/agentscope/model/_deepseek/_model.py:315-338 | src/agentscope/model/_moonshot/_model.py:323-346 | src/agentscope/model/_openai_chat/_model.py:431-454 | src/agentscope/model/_volcengine/_model.py:319-342 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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 \u0060src/agentscope/model/_dashscope/_model.py:359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd056abae0dfca9433278583fb5cf9e7b685fec5195d05e62b2a2000cd5c5802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 2): src/agentscope/app/_service/_chat.py:952-975 | src/agentscope/app/_service/_realtime.py:86-103 \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 \u0060src/agentscope/app/_service/_chat.py:952\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cced1032d42a138fbb6fcc174c72aab69d712587d00100c02ff9a8a36ac05ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_channel.py:876-899 | src/agentscope/app/channel/_dingtalk/_channel.py:902-925 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"772392a3dad9215d087367792567999a9981cd956d364a4095eb4dbf32893202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/agentscope/formatter/_anthropic_formatter.py:491-514 | src/agentscope/formatter/_ollama_formatter.py:441-463 \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 \u0060src/agentscope/formatter/_anthropic_formatter.py:491\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b7b262d825aee5bf3e896de55ebc07312c93f450550631667215ac70b0068e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): src/agentscope/permission/_engine.py:170-191 | src/agentscope/permission/_engine.py:350-372 | src/agentscope/permission/_engine.py:550-570 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"src/agentscope/permission/_engine.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"712fcbee2564e7c4fec928998af1b1b6cd52b0011f5980e268ad956465ca9d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 2): src/agentscope/tool/_adapters.py:255-277 | src/agentscope/workspace/_gateway_client.py:103-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_adapters.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c96c197cfd1bd3d8c90a5f86c57d76fa4899f1b29981910ac4c94a357c22249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): src/agentscope/formatter/_dashscope_formatter.py:468-489 | src/agentscope/formatter/_deepseek_formatter.py:281-302 | src/agentscope/formatter/_gemini_formatter.py:339-360 | src/agentscope/formatter/_moonshot_formatter.py:387-408 | src/agentscope/formatter/_ollama_formatter.py:373-394 | src/agentscope/formatter/_openai_formatter.py:466-487 | src/agentscope/formatter/_volcengine_formatter.py:329-350 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0040488a14d63c1557af5d07cec4324eb5bc951ca5c67174b98f842037f4e695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.py:41-62 | src/agentscope/app/channel/_feishu/_tools/_list_chats.py:40-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4c3339102955500984e785f23dede5ddda2fd31e78d67e6a57034a797d9e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:86-107 | src/agentscope/formatter/_deepseek_formatter.py:153-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe38a8043d69b84c5132049d01bb2d58cbce3975caadde0bba18f0608a2b355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/agentscope/formatter/_volcengine_formatter.py:144-165 | src/agentscope/formatter/_volcengine_formatter.py:207-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_volcengine_formatter.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab44f0da062ef640a5673cc082a62b3b26176cd92a53149f822ea96ab8c01f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/agentscope/workspace/_local_workspace.py:216-237 | src/agentscope/workspace/_local_workspace.py:829-849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70e17530af904897fd30a4e04dc41104c5cab3b234fb48655dfcfecf8f4857d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:917-937 | src/agentscope/app/storage/_sql/_storage.py:1237-1254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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. Note first that the copies are not typed on the same thing: \u0060AgentState\u0060 names \u0060....state\u0060 in one and \u0060...state\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"208e81ee2ee165be0bd1f06166ae2ccd87ecdea3becc61da2be971857044ce72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/agentscope/workspace/_local_workspace.py:748-768 | src/agentscope/workspace/_sandboxed_base.py:395-415 \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":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbd6e92a16563fe5281e1c1fe31cadd3af1ed80b800db992bbb04111346af9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:287-306 | src/agentscope/formatter/_moonshot_formatter.py:176-195 | src/agentscope/formatter/_openai_formatter.py:304-323 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2348bbdd73a7e488f2b61576e615f21bd0ea6c8aecb965c58eb9005cae2ea839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/agentscope/model/_moonshot/_model.py:396-415 | src/agentscope/model/_openai_chat/_model.py:547-566 | src/agentscope/model/_openai_response/_model.py:531-550 \u2014 \u0060src/agentscope/model/_moonshot/_model.py\u0060 and \u0060src/agentscope/model/_openai_chat/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 168 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 \u0060src/agentscope/model/_moonshot/_model.py:396\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e05c1aaf095bf69b0762e80bacf51d382aee724732e4ccca538ced8d69e374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_openapi.py:729-748 | src/agentscope/app/channel/_dingtalk/_openapi.py:841-858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/channel/_dingtalk/_openapi.py:729\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/app/channel/_dingtalk/_openapi.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4125f076c0963be32259fb5c75f11aaa218d75264975f783f6926839896461f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/agentscope/embedding/_dashscope/_model.py:374-393 | src/agentscope/embedding/_dashscope/_model.py:460-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_dashscope/_model.py:374\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d69dfd79fbe7ea06e171c8c350cbcba891e9f6f1eb74278abed44c809d4269c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 3): src/agentscope/embedding/_embedding_model_card.py:140-157 | src/agentscope/model/_model_card.py:122-140 | src/agentscope/tts/_tts_model_card.py:98-113 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/tts/_tts_model_card.py:116\u0060 calls \u0060get\u0060 and \u0060src/agentscope/embedding/_embedding_model_card.py:159\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":"src/agentscope/embedding/_embedding_model_card.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7751d98ff323a8e92c161d57a506c042a211a7b4418d1705e3856aacbf054bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/agentscope/formatter/_deepseek_formatter.py:191-208 | src/agentscope/formatter/_moonshot_formatter.py:254-272 | src/agentscope/formatter/_openai_formatter.py:375-393 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/formatter/_openai_formatter.py:395\u0060 calls \u0060isinstance\u0060 and \u0060src/agentscope/formatter/_deepseek_formatter.py:210\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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c4a2652ebdaa147b6bb53e1ac247bf60b97d302149e9be69913a598ec186e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:279-297 | src/agentscope/model/_openai_chat/_model.py:350-368 \u2014 \u0060src/agentscope/model/_moonshot/_model.py\u0060 and \u0060src/agentscope/model/_openai_chat/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 168 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":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5213446d048e830c674848a0b07a92786c21b6589f5aca8902e7cfeceb6ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/agentscope/rag/_parser/_word.py:139-157 | src/agentscope/rag/_parser/_word.py:161-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e117e0dc9311057753501b76a3bb99f0414ed1f379cc6c6df0f006b6aba455e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): src/agentscope/tool/_builtin/_bash.py:754-772 | src/agentscope/tool/_builtin/_powershell.py:253-267 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9da9e6a5057d87af7ebaed4c367aa97e0a24f0e0a11b0778e1d6238781e17a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/agentscope/app/channel/_feishu/_channel.py:922-939 | src/agentscope/app/channel/_feishu/_channel.py:1089-1105 \u2014 both copies are in the same file, so extract the block 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":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"224121883e72c10795eb168a788175728a64d2a910c4cebae6a87b0e505b304d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/agentscope/embedding/_embedding_base.py:338-354 | src/agentscope/model/_base.py:224-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 \u0060src/agentscope/embedding/_embedding_base.py:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/model/_base.py:241\u0060 calls \u0060warning\u0060 and \u0060src/agentscope/embedding/_embedding_base.py:355\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_embedding_base.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06882dc5b726c91cc1d594211d6bcff20fd8ba0b96379e3e266405d956bdf25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/agentscope/formatter/_moonshot_formatter.py:160-177 | src/agentscope/formatter/_moonshot_formatter.py:219-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893cf8e265b8e1b44336022af741fb70bc9badaea65079fd0021937e3c1b2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/agentscope/model/_deepseek/_model.py:387-404 | src/agentscope/model/_xai/_model.py:437-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 \u0060src/agentscope/model/_deepseek/_model.py:387\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5d36f0bbb87cbcb3f6c828a92ef6d9695dd04616d6c926ac82561f8d14d482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:455-471 | src/agentscope/model/_deepseek/_model.py:367-383 | src/agentscope/model/_moonshot/_model.py:375-391 | src/agentscope/model/_volcengine/_model.py:371-387 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/model/_moonshot/_model.py:392\u0060 calls \u0060getattr\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:384\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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff183bdf89e34a566f879adf9ac9be83d7c58ea351f6222853a8319e8601e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/agentscope/model/_deepseek/_model.py:258-274 | src/agentscope/model/_moonshot/_model.py:263-279 | src/agentscope/model/_openai_chat/_model.py:334-350 | src/agentscope/model/_volcengine/_model.py:261-277 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_moonshot/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 208 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/model/_moonshot/_model.py:283\u0060 calls \u0060getattr\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:278\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":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4e9b8a5bc9d2c5ea31c0e1e1fc0db81c75478ee5d8a36e9e91eae69c0ae0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/agentscope/app/storage/_redis_storage.py:1015-1031 | src/agentscope/app/storage/_redis_storage.py:1153-1169 | src/agentscope/app/storage/_redis_storage.py:1179-1195 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a14d562fb59f2323ea59cb21f273740f25f85b0732c16ca3597eb30d58dbd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/agentscope/app/_router/_session.py:327-343 | src/agentscope/app/_router/_session.py:515-533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/_router/_session.py:515\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_session.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbcc2529c5766a65d406976b5d1f695c07e8d6960febfd0a41133d7ed24f611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:506-521 | src/agentscope/formatter/_openai_formatter.py:504-520 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 298 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd193a41b0399b5b1ea05d02754c32bd82d250ec9d333f7f8402a905ab273de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/agentscope/model/_openai_response/_model.py:397-413 | src/agentscope/model/_openai_response/_model.py:525-539 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5372b36fbb492373d8a4c6acf4b700440bd477f53a7fd70b2d7934a756b27e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/agentscope/realtime/_openai/_model.py:301-317 | src/agentscope/realtime/_xai/_model.py:268-284 \u2014 \u0060src/agentscope/realtime/_openai/_model.py\u0060 and \u0060src/agentscope/realtime/_xai/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 61 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":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca16203c9e6099491e08702503ca485471416404047c968db614bb93a7c486ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): src/agentscope/tool/_builtin/_backend.py:812-828 | src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:145-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/tool/_builtin/_backend.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a33f557294591fa427b187e3009fcc19baee4b4f16c803520aab79a91940b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:310-325 | src/agentscope/model/_deepseek/_model.py:262-277 | src/agentscope/model/_moonshot/_model.py:267-282 | src/agentscope/model/_openai_chat/_model.py:338-353 | src/agentscope/model/_volcengine/_model.py:265-280 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/agentscope/model/_dashscope/_model.py:308\u0060 calls \u0060_generate_id\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:260\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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daac5c498d776bb23ff2c5fce08837abc7f36406ddd1f2c80424eb15dc912cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/agentscope/model/_moonshot/_model.py:381-396 | src/agentscope/model/_openai_chat/_model.py:532-547 | src/agentscope/model/_volcengine/_model.py:377-392 \u2014 \u0060src/agentscope/model/_moonshot/_model.py\u0060 and \u0060src/agentscope/model/_openai_chat/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 168 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 \u0060src/agentscope/model/_moonshot/_model.py:381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7401444fb9ce2f4aef40111c6f2156255588a693dd575a044bda1590c1d111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:96-110 | src/agentscope/formatter/_moonshot_formatter.py:166-181 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_deepseek_formatter.py:96\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8e86e8565d189fe88001d19234cd3ede34d4de08829006c2b93c00eea0cfa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/agentscope/formatter/_xai_formatter.py:221-236 | src/agentscope/formatter/_xai_formatter.py:329-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_xai_formatter.py:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42656d61592081e110e90a317014a366a49e6e4a07a7797939178e3158e39bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/agentscope/tts/_dashscope/_cosyvoice_model.py:322-337 | src/agentscope/tts/_dashscope/_realtime_model.py:416-431 \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 \u0060src/agentscope/tts/_dashscope/_cosyvoice_model.py:322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/tts/_dashscope/_realtime_model.py:432\u0060 calls \u0060_reset_state\u0060 and \u0060src/agentscope/tts/_dashscope/_cosyvoice_model.py:338\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":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eab280a9b74db4030e46ef9374f8bef516e6868abf181f63f3945c056fffc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:269-283 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:247-261 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:314-328 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:447-461 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:454-468 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:324-338 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:331-345 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3dd8b1ab0b791cdddfcd367280feb2bade9f2f839630a9076f537b54386960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:460-472 | src/agentscope/model/_moonshot/_model.py:380-392 | src/agentscope/model/_openai_chat/_model.py:529-543 | src/agentscope/model/_volcengine/_model.py:376-388 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_moonshot/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060src/agentscope/model/_openai_chat/_model.py:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4b85c78ac04af7c9be1fb67af50d6ac36b4560681384c8f73199cae133c154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/agentscope/model/_moonshot/_model.py:281-295 | src/agentscope/model/_moonshot/_model.py:390-404 | src/agentscope/model/_openai_chat/_model.py:352-366 | src/agentscope/model/_openai_chat/_model.py:541-555 \u2014 \u0060src/agentscope/model/_moonshot/_model.py\u0060 and \u0060src/agentscope/model/_openai_chat/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 168 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":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7875e5f274d127645db1b0e557a20c27a517f94a8c2ca2d4fcfc9c296eaf72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/agentscope/realtime/_dashscope/_model.py:275-289 | src/agentscope/realtime/_gemini/_model.py:319-333 | src/agentscope/realtime/_openai/_model.py:284-298 | src/agentscope/realtime/_xai/_model.py:251-265 \u2014 \u0060src/agentscope/realtime/_dashscope/_model.py\u0060 and \u0060src/agentscope/realtime/_xai/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 61 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":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab5bd252a6f43c5f2a65085f745873154222f63d75f563b601e9adeb31c4703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:2530-2544 | src/agentscope/app/storage/_redis_storage.py:2561-2575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2530}}}],"partialFingerprints":{"codehealthFindingId/v1":"586fe8bc574af5b8594d7b747121964c00fa467a1caba27a75bb014ed27628ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/embedding/_dashscope/_model.py:357-371 | src/agentscope/embedding/_dashscope/_model.py:444-458 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_dashscope/_model.py:357\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6929a110e3da3be347aa0bafde3a8e9442648907cfc0c095549b55da216942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:274-288 | src/agentscope/formatter/_dashscope_formatter.py:336-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"118a04d06338f0cfee1cecd60e68fe6490a3fa0d62a6f1ad66466082bc781bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/tool/_builtin/_bash.py:734-751 | src/agentscope/tool/_builtin/_powershell.py:262-276 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/tool/_builtin/_powershell.py:262\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9e90bc0bf37fd389cd0dee846afd17c83a5164581ef4196eb49dee2bd87773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:156-170 | src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:370-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:156\u0060 it begins part-way through the construct above it, so those exact 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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00ca70bb459aef376b6c0028a1d4f1816d4d3b264e8be98ec13c1ed233d280a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:158-171 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:226-239 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:300-313 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:322-335 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:256-269 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_daytona_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1020ba1726bf87281b5b3f05a094ef03fa9a0041708ff65ac5e1d781b4ab5df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/agentscope/formatter/_xai_formatter.py:217-230 | src/agentscope/formatter/_xai_formatter.py:283-296 | src/agentscope/formatter/_xai_formatter.py:324-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c5bab0db557b4f05c2623fe78151f7326df0ed59c15e4e8b65f01781d944e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:186-199 | src/agentscope/formatter/_openai_formatter.py:153-167 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 298 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb782052a745116832f9e1413f1067fdfad4044e8d3225abab8c0fdd140bb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): src/agentscope/formatter/_deepseek_formatter.py:192-204 | src/agentscope/formatter/_moonshot_formatter.py:191-202 | src/agentscope/formatter/_moonshot_formatter.py:255-267 | src/agentscope/formatter/_openai_formatter.py:319-330 | src/agentscope/formatter/_openai_formatter.py:376-388 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_deepseek_formatter.py:192\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67d464567b214ca3f460759e914e841491b3d2901655d6f2c1e496ef1ac1f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/agentscope/app/storage/_redis_storage.py:2397-2408 | src/agentscope/app/storage/_redis_storage.py:2448-2459 | src/agentscope/app/storage/_redis_storage.py:2485-2497 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ba73e74c5fe3d22b05fb32e8861611a2e65ac74145ea67030bd34cdecead2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): .github/scripts/update_news.py:107-118 | .github/scripts/update_news.py:123-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060.github/scripts/update_news.py:123\u0060 it does not close everything it opens, so those exact 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":".github/scripts/update_news.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"06166c60d68e68283f811963a4ceacbdbdd016e23afc7a107ed6f73ac89e6983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/app/channel/_discord/_channel.py:325-337 | src/agentscope/app/channel/_feishu/_channel.py:672-684 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/app/channel/_discord/_channel.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e2d2e4aec3b6c0c342a302e3cc016d37c5e3c2ed3366114de91f6296d3396c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:859-871 | src/agentscope/app/storage/_sql/_storage.py:563-575 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b10f63485751de9d6c878f97fb4f1445a0f099221f78c7ab1c092ce963cd53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:2421-2433 | src/agentscope/app/storage/_redis_storage.py:2465-2475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdbc0ca9a1670064977749521dfdab15d8bea744d0522e4076b7f85e632382c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:196-208 | src/agentscope/formatter/_gemini_formatter.py:85-97 \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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff111619d0d0b157fb57f48a7d923e3defa9897820053b52edecb4fe4b801e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/agentscope/formatter/_volcengine_formatter.py:179-190 | src/agentscope/formatter/_volcengine_formatter.py:246-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_volcengine_formatter.py:179\u0060 it does not close everything it opens, so those exact 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":"src/agentscope/formatter/_volcengine_formatter.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c73873f06f5ffb17b88631ae5917ee38235422adaf9481d7100041ff815c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/agentscope/model/_openai_chat/_model.py:235-247 | src/agentscope/model/_xai/_model.py:204-215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b747880a197f05590df666fa7bb5758193f368883b2a5f4fabdeb67bd8d87d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/agentscope/model/_volcengine/_model.py:279-291 | src/agentscope/model/_volcengine/_model.py:386-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d2126498967d71bdd3d67089028943df9d34226b3d7beccc7c1749f7954e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/workspace/_local_workspace.py:709-721 | src/agentscope/workspace/_sandboxed_base.py:345-357 \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":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ebead12c2107fcfdb848a81f7efea75c9a176ce5f94861d41e52d071c7e4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/agent/_agent.py:862-873 | src/agentscope/agent/_agent.py:2072-2083 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/agent/_agent.py:862\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"22abc96a5490099dc24e412c188bbc81817bd2664254c0a20ed2736b5ac6041c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/app/_service/_access.py:387-398 | src/agentscope/app/_service/_access.py:542-553 \u2014 both copies are in the same file, so extract the block 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":"src/agentscope/app/_service/_access.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"9302e3b8f6270e5da32ef1f5561a1c370fe0904c7e365e8ff809ea8c06c068ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_channel.py:347-360 | src/agentscope/app/channel/_feishu/_channel.py:686-697 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21083dc23d8ff910b36666cef341868a8b14739c0e10769a23c94da30a0e282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/embedding/_gemini/_model.py:346-357 | src/agentscope/embedding/_openai/_model.py:142-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/embedding/_gemini/_model.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f3c721f365dc05f037672806a513a85fefa8ba3556ccbd6ddb80f57ab76b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:256-266 | src/agentscope/formatter/_openai_formatter.py:277-287 | src/agentscope/formatter/_volcengine_formatter.py:125-135 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_openai_formatter.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 298 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd7083c0b608479dc85fe6ca59af7b380909a3e66f2c2760f5b1d974c23ad42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/agentscope/app/_router/_schema/_hub_mcp.py:92-102 | src/agentscope/app/_router/_schema/_hub_skill.py:69-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/_router/_schema/_hub_mcp.py:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_schema/_hub_mcp.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2986b61444fcc79e051cf72e3cb5fa1adc6a233bf57fa14044b4b99d48987771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/agentscope/app/storage/_sql/_storage.py:2091-2101 | src/agentscope/app/storage/_sql/_storage.py:2129-2139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_storage.py:2091\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"250e61839ffc38c26ff91ba05bf66f9d13e7084ab1edffa213d9cee094bc887f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): src/agentscope/formatter/_anthropic_formatter.py:430-439 | src/agentscope/formatter/_dashscope_formatter.py:468-477 | src/agentscope/formatter/_deepseek_formatter.py:281-290 | src/agentscope/formatter/_gemini_formatter.py:339-348 | src/agentscope/formatter/_moonshot_formatter.py:387-396 | src/agentscope/formatter/_ollama_formatter.py:373-382 | src/agentscope/formatter/_openai_formatter.py:466-475 | src/agentscope/formatter/_volcengine_formatter.py:329-338 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_anthropic_formatter.py:430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7c36f9b528b455abe092535eaab3ef95bf132fd4976adf09c4a05a4ceb6378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:271-280 | src/agentscope/model/_deepseek/_model.py:228-237 | src/agentscope/model/_moonshot/_model.py:233-242 | src/agentscope/model/_volcengine/_model.py:231-240 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ac38ff3aa034811f414f047bd3ff1239022b6014a8707556ee6d982d8a9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/agentscope/model/_anthropic/_model.py:604-613 | src/agentscope/model/_gemini/_model.py:563-572 | src/agentscope/model/_xai/_model.py:264-273 \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":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb79a55a7804712b7f8ed95c7aed4a8218bc97143cb30a5e3f74c7ee0502a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/formatter/_xai_formatter.py:233-242 | src/agentscope/formatter/_xai_formatter.py:301-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_xai_formatter.py:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7ae567849aa4744c562632485e74a081761dbd615034bf8873b4bf33f5963d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:373-382 | src/agentscope/model/_ollama/_model.py:315-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060src/agentscope/model/_moonshot/_model.py:373\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f883be6ab818c2ad0e6b9d9374754cba6032ff84c3b07700b80ce61f76a63d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/workspace/_base.py:630-639 | src/agentscope/workspace/_sandboxed_base.py:285-294 \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":"src/agentscope/workspace/_base.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"1155f62cbe3be663a05ceab4cf5bd72d8ff9f7c51005807b601c03e033ae7e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): src/agentscope/formatter/_anthropic_formatter.py:428-436 | src/agentscope/formatter/_dashscope_formatter.py:466-474 | src/agentscope/formatter/_deepseek_formatter.py:279-287 | src/agentscope/formatter/_gemini_formatter.py:337-345 | src/agentscope/formatter/_ollama_formatter.py:371-379 | src/agentscope/formatter/_openai_formatter.py:464-472 | src/agentscope/formatter/_openai_response_formatter.py:443-451 | src/agentscope/formatter/_volcengine_formatter.py:327-335 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc6cf74f084b9abbdd4a2b2a9ead044e34cf1ecdc90884a1ff7d4c3ef404ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/agentscope/app/storage/_redis_storage.py:478-486 | src/agentscope/app/storage/_redis_storage.py:613-621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7526dcf80c101c7a2f6154d712acaff195fed28bb581625f18372b6ed492e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/agentscope/formatter/_deepseek_formatter.py:112-120 | src/agentscope/formatter/_volcengine_formatter.py:174-183 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 and \u0060src/agentscope/formatter/_volcengine_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 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 \u0060src/agentscope/formatter/_deepseek_formatter.py:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1854e04ff1dba49c4ab60ae7b2f932f90e8b7e87832bc084b0a09bfd42e4426b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py:319-326 | src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py:400-407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f122f7d73dde5b3e72158413a606725edf243d792bb9a38a4603f911454c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:258-264 | src/agentscope/formatter/_deepseek_formatter.py:68-74 | src/agentscope/formatter/_openai_formatter.py:279-285 | src/agentscope/formatter/_volcengine_formatter.py:127-133 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_deepseek_formatter.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25d669659a716bdf89a168be3c2dabab154852555573d45cfdfd1b419fb4f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:516-523 | src/agentscope/formatter/_moonshot_formatter.py:432-438 | src/agentscope/formatter/_openai_formatter.py:515-522 | src/agentscope/formatter/_openai_response_formatter.py:509-515 \u2014 before extracting anything, compare \u0060src/agentscope/formatter/_dashscope_formatter.py\u0060 and \u0060src/agentscope/formatter/_moonshot_formatter.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c305ba73f9c8f25f8b80fa773ee7f8986931b87ad6899a1e731dac519b27507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): src/agentscope/app/storage/_sql/_alembic/versions/0002_mcps_skills.py:31-33 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:29-34 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:48-54 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:29\u0060 calls \u0060Column\u0060, \u0060DateTime\u0060 and \u0060src/agentscope/app/storage/_sql/_alembic/versions/0002_mcps_skills.py:31\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":"src/agentscope/app/storage/_sql/_alembic/versions/0002_mcps_skills.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfa79e867fd3fbd0c069c63abbb5608eecfd3ff9d92c004a7704aa84e36697b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:113-119 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:135-141 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_daytona_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_e2b_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 143 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":"src/agentscope/app/workspace_manager/_daytona_workspace_manager.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aab535380330c1fa500367e822e2cab0027f2d7ee9c6f5b9d15ba75c130eb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/agentscope/tui/_ask_user.py:196-202 | src/agentscope/tui/_chat.py:194-200 \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":"src/agentscope/tui/_ask_user.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b9409d2999218417adef777a4d19b24281c0f2d2dfc5cd145cc31dc458239f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/agentscope/model/_dashscope/_model.py:224-231 | src/agentscope/model/_deepseek/_model.py:193-200 | src/agentscope/model/_gemini/_model.py:290-297 | src/agentscope/model/_openai_chat/_model.py:234-241 | src/agentscope/model/_volcengine/_model.py:195-202 | src/agentscope/model/_xai/_model.py:203-208 \u2014 \u0060src/agentscope/model/_dashscope/_model.py\u0060 and \u0060src/agentscope/model/_deepseek/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 171 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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8508653496f78baa97b489aa5c1241764f95450dd3aa962f4d7ff9bc1966ab52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:94-99 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:148-153 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 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":"src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f146af7c3e478e36b397e3aa78b45740f4967695539b4c1a1793dce5c6e1c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): src/agentscope/formatter/_dashscope_formatter.py:127-131 | src/agentscope/formatter/_dashscope_formatter.py:156-160 | src/agentscope/formatter/_dashscope_formatter.py:196-200 | src/agentscope/formatter/_gemini_formatter.py:85-90 | src/agentscope/formatter/_moonshot_formatter.py:42-46 | src/agentscope/formatter/_ollama_formatter.py:86-91 | src/agentscope/formatter/_openai_formatter.py:104-109 | src/agentscope/formatter/_openai_formatter.py:163-168 \u2014 there are 8 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21c05f6e8ac87f8a05183209846a4b023d6f2c9d88e8916b39f7a3d2b087b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/agentscope/app/_manager/_wakeup_dispatcher.py:114-131 | src/agentscope/app/_service/_index_task_consumer.py:75-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"src/agentscope/app/_manager/_wakeup_dispatcher.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"781acbbb8daa52a4ed66e3425645628ada41a83c1fd6ea0b7f57ea4b1e04f246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:206-219 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:197-203 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:242-255 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:354-367 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:380-393 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:265-276 | src/agentscope/app/workspace_manager/_local_workspace_manager.py:173-179 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:272-278 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:283\u0060 calls \u0060pause\u0060 and \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:223\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":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ae4bbc55261a9775866a7a261942b499f4b301d3a21edb55f2ba1ada3a82c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:222-231 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:206-215 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:258-272 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:370-384 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:396-410 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:279-288 | src/agentscope/app/workspace_manager/_local_workspace_manager.py:182-197 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:281-294 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9091693ce47367c8fd65a6ef5bb251e2d9cdaa0a93315e18262dd84fde3f9008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:242-250 | src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:224-232 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:283-291 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:299-307 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:303-311 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8210973e688cce755187706c7160b2ce2355e9d60381a707d6b198ad1c2893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:235-244 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:296-311 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:429-444 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:436-451 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:312-321 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:314-328 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_daytona_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffeb18f8c79fb414ae650c3d14dad72a143d40c96891ebbaefe915b70bd0367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/app/workspace_manager/_docker_workspace_manager.py:415-424 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:422-431 \u2014 before extracting anything, compare \u0060src/agentscope/app/workspace_manager/_docker_workspace_manager.py\u0060 and \u0060src/agentscope/app/workspace_manager/_e2b_workspace_manager.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 146 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":"src/agentscope/app/workspace_manager/_docker_workspace_manager.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bbe6bca5e82d05d8887be4e309478f862747cf64426afd6d28a57fb133f756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/agentscope/realtime/_dashscope/_model.py:200-217 | src/agentscope/realtime/_gemini/_model.py:206-226 | src/agentscope/realtime/_openai/_model.py:185-202 | src/agentscope/realtime/_xai/_model.py:170-187 \u2014 \u0060src/agentscope/realtime/_dashscope/_model.py\u0060 and \u0060src/agentscope/realtime/_xai/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 61 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/agentscope/realtime/_openai/_model.py:182\u0060 calls \u0060request_response\u0060 and \u0060src/agentscope/realtime/_gemini/_model.py:203\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":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0db5e797a81d659c102e118cb89519efbe17e9721932d890740a52afba60479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/agentscope/realtime/_openai/_model.py:140-147 | src/agentscope/realtime/_xai/_model.py:125-132 \u2014 \u0060src/agentscope/realtime/_openai/_model.py\u0060 and \u0060src/agentscope/realtime/_xai/_model.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 61 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":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"648bcf186aa96c25ebb44c915dfebf95af8dd5e0e876743fb699272ba21254dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/tool/_adapters.py:299-315 | src/agentscope/workspace/_gateway_client.py:126-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/tool/_adapters.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd69f69e1e2c1d2c34f6119c1b4d459eb90b350e452520da6fad972a7dc4cd16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/agentscope/tool/_builtin/_edit.py:96-123 | src/agentscope/tool/_builtin/_write.py:72-100 \u2014 before extracting anything, compare \u0060src/agentscope/tool/_builtin/_edit.py\u0060 and \u0060src/agentscope/tool/_builtin/_write.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 146 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":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"508357c2e8295d71e3ae5aee159dbbcd773087fa071581e624ea804433c4d994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/agentscope/tool/_builtin/_edit.py:194-217 | src/agentscope/tool/_builtin/_read.py:197-221 | src/agentscope/tool/_builtin/_write.py:171-194 \u2014 before extracting anything, compare \u0060src/agentscope/tool/_builtin/_edit.py\u0060 and \u0060src/agentscope/tool/_builtin/_write.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b027ebd0ab1d6daafd0376dda5548eeedb4982d17cfa99db8edd961543ecc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/agentscope/tool/_builtin/_edit.py:223-256 | src/agentscope/tool/_builtin/_write.py:200-233 \u2014 before extracting anything, compare \u0060src/agentscope/tool/_builtin/_edit.py\u0060 and \u0060src/agentscope/tool/_builtin/_write.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 146 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":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcd830540a1741e62b5fd06efaaec61fefcb0f7e616df9a6f00f9660f6ec854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/agentscope/tool/_builtin/_glob.py:193-222 | src/agentscope/tool/_builtin/_grep.py:229-257 \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":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"51874b3533382b168610e53bc0d1ec306e092a1c371613174720cd4c3eeac004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/agentscope/tts/_dashscope/_model.py:41-48 | src/agentscope/tts/_openai/_model.py:36-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/agentscope/tts/_dashscope/_model.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1c3da1f7dce65ff26ba2e605248f5685524a951cff7db28d6406d6c891e462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py:498-525 | src/agentscope/workspace/_e2b/_e2b_workspace.py:328-362 | src/agentscope/workspace/_opensandbox/_opensandbox_workspace.py:347-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc81395f205e8cbeeeaee62e5b721cc62f1230ff6fbbb8ad4217443a8ef1586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/agentscope/app/_router/_mcp.py:27-32 | src/agentscope/app/_router/_skill.py:22-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_mcp.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b005138aec5ee89100ce3d88e9e84a061b60dbe58d03d7c081148e6c0c18c7c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/agentscope/app/_router/_mcp.py:136-147 | src/agentscope/app/_router/_skill.py:52-62 | src/agentscope/app/_router/_sop.py:227-241 | src/agentscope/app/_router/_sop.py:375-389 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_mcp.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"010a51aed73774298972ef97950a9b7b2189d506dfeef98660c4d1a27869a2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/agentscope/app/_router/_skill.py:36-43 | src/agentscope/app/_router/_sop.py:47-54 | src/agentscope/app/_router/_sop.py:62-69 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060storage\u0060 to \u0060StorageBase = Depends(get_storage)\u0060 in one and \u0060StorageBase\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":"src/agentscope/app/_router/_skill.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f5362b78326630df37bdcd67cba8136e087b52e819d7d96e9bf64d5c36913f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/agentscope/app/channel/_dingtalk/_channel.py:525-551 | src/agentscope/app/channel/_feishu/_channel.py:946-973 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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. Note first that the copies are not typed on the same thing: \u0060ToolBase\u0060 names \u0060.....tool\u0060 in one and \u0060....tool\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"38663bc7d0d19dae7b56b3a791cdf3ef15d57730a09ea4e8e88b75f3a184837f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): scripts/model_examples/anthropic_call.py:72-132 | scripts/model_examples/dashscope_call.py:69-129 | scripts/model_examples/deepseek_call.py:76-133 | scripts/model_examples/gemini_call.py:72-132 | scripts/model_examples/minimax_call.py:77-134 | scripts/model_examples/moonshot_call.py:68-124 | scripts/model_examples/ollama_call.py:75-132 | scripts/model_examples/openai_chat_call.py:72-132 | scripts/model_examples/openai_response_call.py:77-140 | scripts/model_examples/volcengine_call.py:60-104 | scripts/model_examples/xai_call.py:77-136 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3a480ca25ea029522b16cb9caf969b572db756ebc3ae873e5245a055282867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 3): scripts/model_examples/anthropic_multimodal.py:116-148 | scripts/model_examples/dashscope_multimodal.py:122-154 | scripts/model_examples/minimax_multimodal.py:116-150 \u2014 before extracting anything, compare \u0060scripts/model_examples/dashscope_multimodal.py\u0060 and \u0060scripts/model_examples/minimax_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_multimodal.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28dc38d44995bfc757b77945a1271b5685b815086d6a7fecc93e10194b40154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): scripts/model_examples/anthropic_multimodal.py:83-112 | scripts/model_examples/dashscope_multimodal.py:88-118 | scripts/model_examples/minimax_multimodal.py:81-112 \u2014 before extracting anything, compare \u0060scripts/model_examples/dashscope_multimodal.py\u0060 and \u0060scripts/model_examples/minimax_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_multimodal.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"16057477f86a1872893d84919c57f06a147448ffb53822dd0a6ae54a5b62f6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): scripts/model_examples/openai_chat_multimodal.py:36-64 | scripts/model_examples/openai_response_multimodal.py:32-60 | scripts/model_examples/xai_multimodal.py:34-62 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multimodal.py\u0060 and \u0060scripts/model_examples/openai_response_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/model_examples/openai_chat_multimodal.py:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_multimodal.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c639dfbf0ae3a212dd0b0d12a42b368300bfe2db7810477664a5cbdd1abb424c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/long_term_memory/mem0/oss_demo.py:273-300 | examples/long_term_memory/mem0/oss_demo.py:305-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/long_term_memory/mem0/oss_demo.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a093807aa567bfcf890d5c158148d5b18d04dbdacff27ae3be39a22a65934f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 9): scripts/model_examples/anthropic_call.py:104-128 | scripts/model_examples/dashscope_call.py:101-125 | scripts/model_examples/deepseek_call.py:105-129 | scripts/model_examples/gemini_call.py:104-128 | scripts/model_examples/minimax_call.py:106-130 | scripts/model_examples/moonshot_call.py:96-120 | scripts/model_examples/ollama_call.py:104-128 | scripts/model_examples/openai_chat_call.py:104-128 | scripts/model_examples/xai_call.py:108-132 \u2014 before extracting anything, compare \u0060scripts/model_examples/anthropic_call.py\u0060 and \u0060scripts/model_examples/dashscope_call.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82ea5349550522ee3d0c53e226b1ce178f35e7965fc290ee57e2b34e6d7a5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 11): scripts/model_examples/anthropic_call.py:87-107 | scripts/model_examples/dashscope_call.py:84-104 | scripts/model_examples/deepseek_call.py:88-108 | scripts/model_examples/gemini_call.py:87-107 | scripts/model_examples/minimax_call.py:90-109 | scripts/model_examples/moonshot_call.py:79-99 | scripts/model_examples/ollama_call.py:87-107 | scripts/model_examples/openai_chat_call.py:87-107 | scripts/model_examples/openai_response_call.py:92-112 | scripts/model_examples/volcengine_call.py:70-88 | scripts/model_examples/xai_call.py:91-111 \u2014 before extracting anything, compare \u0060scripts/model_examples/anthropic_call.py\u0060 and \u0060scripts/model_examples/dashscope_call.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/model_examples/anthropic_call.py:87\u0060 it begins part-way through the construct above it, so those exact 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, \u0060scripts/model_examples/dashscope_call.py:83\u0060 calls \u0060Parameters\u0060 and \u0060scripts/model_examples/moonshot_call.py:78\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":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca5f58cfcbf4b0500507cba8ed4c6bfb9623dbd347ca4310de6a547d8958fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 10): scripts/model_examples/anthropic_call.py:113-132 | scripts/model_examples/dashscope_call.py:110-129 | scripts/model_examples/deepseek_call.py:114-133 | scripts/model_examples/gemini_call.py:113-132 | scripts/model_examples/minimax_call.py:115-134 | scripts/model_examples/moonshot_call.py:105-124 | scripts/model_examples/ollama_call.py:113-132 | scripts/model_examples/openai_chat_call.py:113-132 | scripts/model_examples/openai_response_call.py:121-140 | scripts/model_examples/xai_call.py:117-136 \u2014 before extracting anything, compare \u0060scripts/model_examples/anthropic_call.py\u0060 and \u0060scripts/model_examples/dashscope_call.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/model_examples/anthropic_call.py:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f088b03ffb67edded6ea6c6488c8e6cf03d323b0d6a55decb3557fa018a3b253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): examples/long_term_memory/mem0/oss_demo.py:133-150 | examples/long_term_memory/reme/reme_demo.py:180-194 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/long_term_memory/mem0/oss_demo.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d12ba4a930f7f9e29e5b4d7b5669080b27dd9795993e5d93ff9062a9bf0597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/pipeline/goal/goal_pipeline.py:27-43 | examples/pipeline/goal/goal_pipeline.py:46-62 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/pipeline/goal/goal_pipeline.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1a4dfcf3eace0c80cf7210e0680b92295bd7bc73699036ddeb2dabff69611f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/model_examples/anthropic_multiagent.py:19-39 | scripts/model_examples/anthropic_multiagent_multimodal.py:25-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/model_examples/anthropic_multiagent_multimodal.py:42\u0060 calls \u0060DataBlock\u0060, \u0060URLSource\u0060 and \u0060scripts/model_examples/anthropic_multiagent.py:42\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":"scripts/model_examples/anthropic_multiagent.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e495290042ab6527278e09ba7532d79b768a64620974b84542b59b6b16b00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/model_examples/gemini_multiagent.py:19-39 | scripts/model_examples/gemini_multiagent_multimodal.py:19-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/model_examples/gemini_multiagent_multimodal.py:36\u0060 calls \u0060DataBlock\u0060, \u0060URLSource\u0060 and \u0060scripts/model_examples/gemini_multiagent.py:42\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":"scripts/model_examples/gemini_multiagent.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"734e86e2210ccaca557ef22a5281b6bee4c585b25c1fa32f718858008542efd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/long_term_memory/mem0/oss_demo.py:76-90 | examples/long_term_memory/reme/reme_demo.py:110-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"examples/long_term_memory/mem0/oss_demo.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af169a7549852a96b6b268629969452d4e97e2c57804a1ddd89e297403cb376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/model_examples/openai_chat_multiagent_multimodal.py:24-37 | scripts/model_examples/openai_response_multiagent_multimodal.py:24-37 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multiagent_multimodal.py\u0060 and \u0060scripts/model_examples/openai_response_multiagent_multimodal.py\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/model_examples/openai_chat_multiagent_multimodal.py:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_multiagent_multimodal.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"12de4e337453ed0f32dbba38a261a245acee9b14281c678513b371af95560476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): scripts/model_examples/openai_chat_multiagent_multimodal.py:25-37 | scripts/model_examples/openai_response_multiagent_multimodal.py:25-37 | scripts/model_examples/xai_multiagent_multimodal.py:28-40 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multiagent_multimodal.py\u0060 and \u0060scripts/model_examples/openai_response_multiagent_multimodal.py\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/model_examples/openai_chat_multiagent_multimodal.py:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_multiagent_multimodal.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea9a2ac44851927e7b2ebef5d6fcbda276d6d08161fad79dbac0cbb61c88202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/long_term_memory/agentic_memory/main.py:135-142 | examples/long_term_memory/mem0/oss_demo.py:131-138 | examples/long_term_memory/reme/reme_demo.py:178-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/long_term_memory/reme/reme_demo.py:175\u0060 calls \u0060reply_stream\u0060, \u0060_announce_memory\u0060 and \u0060examples/long_term_memory/mem0/oss_demo.py:129\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":"examples/long_term_memory/agentic_memory/main.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3d8d2bccf6cc81bb4a5aa6c4684952fc42d7914c449625c39fb6f430fb7c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): scripts/model_examples/dashscope_multimodal.py:158-183 | scripts/model_examples/minimax_multimodal.py:154-178 \u2014 before extracting anything, compare \u0060scripts/model_examples/dashscope_multimodal.py\u0060 and \u0060scripts/model_examples/minimax_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/dashscope_multimodal.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00494c9bfa72ca50dd0b83857107e8349f6d5b17368098a1b9e56f57cfc9016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 6): scripts/model_examples/gemini_multimodal.py:79-106 | scripts/model_examples/moonshot_multimodal.py:72-100 | scripts/model_examples/ollama_multimodal.py:72-99 | scripts/model_examples/openai_chat_multimodal.py:77-105 | scripts/model_examples/openai_response_multimodal.py:73-101 | scripts/model_examples/xai_multimodal.py:75-103 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multimodal.py\u0060 and \u0060scripts/model_examples/openai_response_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/model_examples/moonshot_multimodal.py:67\u0060 calls \u0060Parameters\u0060 and \u0060scripts/model_examples/ollama_multimodal.py:67\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/gemini_multimodal.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a60fb80a1df9ef4c544526ce809f9e964a1cf9e1b78441a12a4170f42b83a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 6): scripts/model_examples/gemini_multimodal.py:110-137 | scripts/model_examples/moonshot_multimodal.py:104-131 | scripts/model_examples/ollama_multimodal.py:103-130 | scripts/model_examples/openai_chat_multimodal.py:109-136 | scripts/model_examples/openai_response_multimodal.py:105-132 | scripts/model_examples/xai_multimodal.py:107-134 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multimodal.py\u0060 and \u0060scripts/model_examples/openai_response_multimodal.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/gemini_multimodal.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ba805cd8ad222eeb76bb8b5f3f6240fddac282a5c4369a93a307505cef89e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 3): scripts/model_examples/openai_chat_multiagent.py:19-96 | scripts/model_examples/openai_response_multiagent.py:20-98 | scripts/model_examples/xai_multiagent.py:20-97 \u2014 before extracting anything, compare \u0060scripts/model_examples/openai_chat_multiagent.py\u0060 and \u0060scripts/model_examples/openai_response_multiagent.py\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_multiagent.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fdee96287b7d037fd3f1f9fbda111bf056670d78011912e9e85709519a165e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BackendBase (LCOM4 9): BackendBase\u0027s methods fall into 9 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 9 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":"src/agentscope/tool/_builtin/_backend.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d78fa890075ba7bd2e20fb9f078e99b6fef79d48a799bcef8fb9bcd78f8f82"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatUI (LCOM4 5): ChatUI\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":"src/agentscope/tui/_chat.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e9922fe06c2243ec7051366c129ef6b80d31244a8acb6f2e0afa403f8a47b8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: InMemoryMessageBus (LCOM4 4): InMemoryMessageBus\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/message_bus/_in_memory_message_bus.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b63f36e0f83d537603cca147927bf29794c7e72b67d7e8415fdc08be0bc488"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_service/_chat.py: src/agentscope/app/_service/_chat.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in ChatService._run_impl at line 786. 4 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_service/_chat.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"181aba0f3d3e3d4eee043df76246afea8a0631d535ed9d2c6b7edf77f62ad4a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/agent/_agent.py: src/agentscope/agent/_agent.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Agent._reply_impl at line 1035. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/agent/_agent.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7244eab07455de5c36594f99b19f477ed334dc12b3b3be564386cd751339cec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/pages/chat/ChatViewport.tsx: examples/web_ui/frontend/src/pages/chat/ChatViewport.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in ChatViewport.ChatViewport at line 179. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/pages/chat/ChatViewport.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/pages/chat/ChatViewport.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6904376d1a89413d45924829ddf591314190d498b29fa7ee121df44f3da3a355"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/message/_base.py: src/agentscope/message/_base.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in Msg.append_event at line 243. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/message/_base.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/message/_base.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"78037dfa0de857cef2c92c512a3e8ee128fe069ec9b083efc5fadb8617335055"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_bash_parser.py: src/agentscope/tool/_builtin/_bash_parser.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in BashCommandParser.check_sed_constraints at line 691. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_bash_parser.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"071ed28f2710c07db7b7cf6923ca96f2ab3ca5bcdbca10eea6aa92e6796f3bfb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/chat/TextInput.tsx: examples/web_ui/frontend/src/components/chat/TextInput.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in TextInput.TextInput at line 139. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/chat/TextInput.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/chat/TextInput.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1593dff54bf8ab25922b9f421d7cd9b4dc6a0a59db2083dfafb73f8aea038830"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_app.py: src/agentscope/app/_app.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in _app.create_app at line 113. 1 of those changes was a fix/bug commit, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_app.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_app.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7e9187802e711c6ddfa9900f7c68e2a11c69f5f9af5fa3dd356609673918c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_xai_formatter.py: src/agentscope/formatter/_xai_formatter.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in XAIChatFormatter.format at line 121. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_xai_formatter.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51c114a9ab292b5fe3c64241d98b7701e5bb99b998d0ab4bf221012f8501d05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_moonshot_formatter.py: src/agentscope/formatter/_moonshot_formatter.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in MoonshotChatFormatter.format at line 105. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_moonshot_formatter.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02a5b6db1924a242d0d9984659c765f3da5cd112a7bb19c6a0794f628787108"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/pages/chat/index.tsx: examples/web_ui/frontend/src/pages/chat/index.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in index.ChatPageInner at line 92. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/pages/chat/index.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/pages/chat/index.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c022b062a541cf561ebb2605879225339d2979850a8ddfe1acce2be60e336e6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_openai_response/_model.py: src/agentscope/model/_openai_response/_model.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in OpenAIResponseModel._parse_stream_response at line 256. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_openai_response/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f61a6259e3fd839faf65f7f6de91b79a54b3e22d5e83a5765c0c818f0408c56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx: examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in ModelParametersPopover.ModelParametersPopover at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd36a86bdef70a5276a75e2088bceb840b6d1ddefd535c717d5fd2b72111bae1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_anthropic/_model.py: src/agentscope/model/_anthropic/_model.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AnthropicChatModel._parse_anthropic_stream_completion_response at line 415. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_anthropic/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e6c9fae54a88be928466100b9db585088e42027e94fb836679a53d3fff1839"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/agent/_realtime/_agent.py: src/agentscope/agent/_realtime/_agent.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in RealtimeAgent._on_model_event at line 675. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/agent/_realtime/_agent.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb46b010577320892e3365691e69a1235e7c65eaf356fab6cc09695a7ada662"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_gemini_formatter.py: src/agentscope/formatter/_gemini_formatter.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in GeminiChatFormatter.format at line 132. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_gemini_formatter.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_gemini_formatter.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5fc0acf1657ac784575211e64500876f1e982898c7eb5dc6ff9784ebe6b22"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_openai_response_formatter.py: src/agentscope/formatter/_openai_response_formatter.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in OpenAIResponseFormatter.format at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_openai_response_formatter.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_openai_response_formatter.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9240aa1dda911d06fd35f8ce504f9b50d74b90820ae27dd1b283493ef89ed455"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_gemini/_model.py: src/agentscope/model/_gemini/_model.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in _model._sanitize_schema_for_gemini at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_gemini/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6329eaceb621271dadad036a3cfd2564112ebc646c93ac79bdcb86017a40621f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/pipeline/_goal_pipeline.py: src/agentscope/pipeline/_goal_pipeline.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in GoalPipeline.reply_stream at line 112. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/pipeline/_goal_pipeline.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/pipeline/_goal_pipeline.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7137941af52d4578c9834ba9c940134aa4451e324dba07ad807076cd2afa83"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/realtime/_dashscope/_model.py: src/agentscope/realtime/_dashscope/_model.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in DashScopeRealtimeModel._parse at line 327. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/realtime/_dashscope/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad9235b7fb1d0b7587a07f422aceca76fa9e8853d8a180f829b121a554b6bca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_ollama_formatter.py: src/agentscope/formatter/_ollama_formatter.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in OllamaChatFormatter.format at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_ollama_formatter.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f163e158ed0ed7b12acaba73ab97f8e2f9a0774540ce7b1e3511152a369ab6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/chat/ChatContent.tsx: examples/web_ui/frontend/src/components/chat/ChatContent.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ChatContent.ChatContentComponent at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/chat/ChatContent.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/chat/ChatContent.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3947344bc5ce074f9152dda095827e7fdc3e6bab8036d14b803f0dcf5424f247"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/rag/_parser/_word.py: src/agentscope/rag/_parser/_word.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WordParser.parse at line 245. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_parser/_word.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2ad996c2769cb5352163185d8e21e3ddfd5626fc0d35f24ea363d8935775dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/hooks/useMessages.ts: examples/web_ui/frontend/src/hooks/useMessages.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in useMessages.useMessages.processEvent at line 184. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/hooks/useMessages.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/hooks/useMessages.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0893bb70845b95d6c97e1edfac81ce15b9972621335576014ecb75342e0db258"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_moonshot/_model.py: src/agentscope/model/_moonshot/_model.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MoonshotChatModel._parse_stream_response at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_moonshot/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd03d4fa76bb17b114c72cc697cb9a65810cda3850f13146816f730fa2a1bf3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/knowledge/KnowledgeDocumentsPanel.tsx: examples/web_ui/frontend/src/components/knowledge/KnowledgeDocumentsPanel.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in KnowledgeDocumentsPanel.KnowledgeDocumentsPanel at line 255. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/knowledge/KnowledgeDocumentsPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/knowledge/KnowledgeDocumentsPanel.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b5f3129c4f789d1f49c5d837ef32288b959376b2c81b282cc9d7b5344ca932"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/chat/ASMessageBubble.tsx: examples/web_ui/frontend/src/components/chat/ASMessageBubble.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ASMessageBubble.ASBlock at line 599. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/chat/ASMessageBubble.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/chat/ASMessageBubble.tsx"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff3ad9ca56dc56487eaf54f38145bbc19807947c4c8f3c70894c538ba5b8dce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx: examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ConfirmCard.ConfirmCard at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ba3ea73461d2d1ebea75e31ab373fe267e21edff13bde0ae011b80ddbc2ac4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/rag/_parser/_ppt.py: src/agentscope/rag/_parser/_ppt.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PPTParser._parse_slide at line 274. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_parser/_ppt.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_ppt.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f2202b177c85edbbc85b54fd7d0899bd72b29a0ea316c3c82c08306b9188a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_tool/_agent_invite.py: src/agentscope/app/_tool/_agent_invite.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in AgentInvite.__call__ at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_tool/_agent_invite.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_tool/_agent_invite.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2eaea900bf36ec1bde96073159686efa383e07b6b3a15525391dc0a6c279f7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_edit.py: src/agentscope/tool/_builtin/_edit.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Edit.call at line 258. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_edit.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_edit.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"717b54060619ee7b6513994431bae69894afb313dc1052126187684785662210"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_toolkit.py: src/agentscope/tool/_toolkit.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in Toolkit.call_tool at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_toolkit.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_toolkit.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ab64b7adb25a2526c021e5c1ebbbb687ecbc9b6783fcf3d1207310daaeadba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/pages/channel/channel-form.tsx: examples/web_ui/frontend/src/pages/channel/channel-form.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in channel-form.ChannelForm at line 130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/pages/channel/channel-form.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/pages/channel/channel-form.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d892f0834e40840c2f9a970d932fd16c0f1ed41ff0315d8716dede9deed61c4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/middleware/_protocol/_agui.py: src/agentscope/app/middleware/_protocol/_agui.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AGUIProtocolMiddleware._to_agui_event at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/middleware/_protocol/_agui.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_protocol/_agui.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e666c6a6ccec0a0f74fb2a6f1bd9564f3a4d3f977ba454159e584ad2bfd033"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_base.py: src/agentscope/model/_base.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ChatModelBase._call_api_with_structured_output at line 603. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_base.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae0825ea43bc200a6daafecfc4232c9f5d2a35b8463720232f0c16c7d48665"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx: examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in AddSkillDialog.AddSkillDialog at line 56. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d97748993f395d608aca3f26abde30268c0290eaf7eac011723bc6b67cbcf0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/form/SchemaForm.tsx: examples/web_ui/frontend/src/components/form/SchemaForm.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SchemaForm.SchemaForm at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/form/SchemaForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/form/SchemaForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc98fc54f71a77721ba751f86510fc621cb9bc1437050e6329ed5cf030a643c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx: examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AgentDialog.AgentDialog at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca1a78b7ab51ddb5380ff9ee64830d40e5266a63c8df6754d2b3356eb8fef2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_glob.py: src/agentscope/tool/_builtin/_glob.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Glob.call at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_glob.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaf5c590acab5552700271036167b20bbb842e764d387bce59fb44ae1612b71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/embedding/_file_cache.py: src/agentscope/embedding/_file_cache.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in FileEmbeddingCache._maintain_cache_dir at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/embedding/_file_cache.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_file_cache.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71b19ce4bcfc826ae8df993c5871dd594362718b182c9620c50ded3937bee9b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/workspace/_base.py: src/agentscope/workspace/_base.py changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is WorkspaceBase._enforce_mcp_capacity at line 812), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(workspace): read the persisted .mcp file as utf-8-sig (#3338)\u201D; \u201Cfix(workspace): append nothing when offloading an empty context batch (#3254)\u201D; \u201Cfix(workspace): offload nested media from context archives (#3201)\u201D; \u201Cfix(workspace): point the bubblewrap offload test at the workspace:// reference (#3151)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/workspace/_base.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_base.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"892083d9764e697410345a5b9e716cf81fcb05f91067e0281d49df49e0b94c5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_manager/_scheduler/_scheduler_manager.py: src/agentscope/app/_manager/_scheduler/_scheduler_manager.py changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is SchedulerManager.validate_schedule at line 332), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(scheduler): notify owner after deleting schedules (#3103)\u201D; \u201Cfix(scheduler): normalize standard cron weekday numbering (#2770)\u201D; \u201Cfix(scheduler): validate cron before persistence (#2442)\u201D; \u201Cfix(scheduler): let one node own the timers (#2477)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_manager/_scheduler/_scheduler_manager.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_scheduler/_scheduler_manager.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1bd618368ac95d9b73e74b28b73b2132bb2f12637cf9fd34a6df657d0a1152"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/_utils/_common.py: src/agentscope/_utils/_common.py changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is _common._json_loads_with_repair at line 95), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): run a no-argument tool call on an empty argument payload (#3095)\u201D; \u201Cfix(utils): preserve instance values during schema flattening (#2592)\u201D; \u201Cfix(utils): preserve property names during schema flattening (#2575)\u201D; \u201Cfix(tool): apply schema-guided repair to tool arguments (#2496)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/_utils/_common.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/_utils/_common.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"479b851a0bde4ae1f28d1376852d483c6bb977ae7dac072cc42fbb881bc8d757"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/mcp/_mcp_client.py: src/agentscope/mcp/_mcp_client.py changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is MCPClient.model_post_init at line 144), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mcp): support mcp 2.x Python SDK, unpin mcp\u003C2.0.0 (#2216)\u201D; \u201Cfix(mcp): build the owned streamable-HTTP client through the SDK factory (#3010)\u201D; \u201Cfix(mcp): clean up cancelled MCP connections (#2499)\u201D; \u201Cfix(mcp): detect SSE transport by URL path so query strings work (#2311)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/mcp/_mcp_client.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/mcp/_mcp_client.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b8db734f02acff7cf2e3f7613f63fe7f8deae692aa88a0764152dbb65c86e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/state/_state.py: src/agentscope/state/_state.py changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is ToolContext.cache_file at line 90), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(state): skip oversized read-cache entries (#2534)\u201D; \u201Cfix(tool): make read cache backend-aware so Read-\u003EEdit works in workspaces (#2092)\u201D; \u201Cfix(state): preserve LRU cache under concurrent hits (#2457)\u201D; \u201Cfix(state): refresh read file cache recency on access (#1811)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/state/_state.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/state/_state.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8714936059ff4820ae121c4fb555a3a293bd2a6b863f5f24bcdb9111043f95e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_builtin/_read.py: src/agentscope/tool/_builtin/_read.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is Read._read_pdf at line 385), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): report deferred PDF read failures (#3057)\u201D; \u201Cfix(tool): isolate default Read input media types (#3161)\u201D; \u201Cfix(tool): respect empty model input types (#2857)\u201D; \u201Cfix(tool): make read cache backend-aware so Read-\u003EEdit works in workspaces (#2092)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_read.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_read.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"49abd503cc3ef9d2a8160aba5de07ddf98d03a8b1e5bef372609e48785fd4a21"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_builtin/_write.py: src/agentscope/tool/_builtin/_write.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is Write.call at line 235), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): escape glob metacharacters in Write/Edit permission suggestions (#3378)\u201D; \u201Cfix(tool): refresh the read cache after Edit and Write (#2865)\u201D; \u201Cfix(tool): count written lines the way Read numbers them (#2734)\u201D; \u201Cfix(tool): make read cache backend-aware so Read-\u003EEdit works in workspaces (#2092)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_write.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_write.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df4352a75a55067f7106928d82d76ef1b5b720f4f4543f8315290a852b97c65"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_builtin/_backend.py: src/agentscope/tool/_builtin/_backend.py changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is BackendBase._find_entries at line 603), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): unlink local symbolic links without following targets (#3006)\u201D; \u201Cfix(tool): clarify Windows asyncio subprocess error in LocalBackend (#2837)\u201D; \u201Cfix(tool): pick the shell by the backend OS instead of the host OS in Bash (#2366)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_backend.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_backend.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea075f0c65f5fc4e6bd0ae050e22cc049cb92f01504b3ab74d3313f473e5295"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/middleware/_tracing/_extractor.py: src/agentscope/middleware/_tracing/_extractor.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is _extractor._get_tool_definitions at line 109), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tracing): report the MiniMax provider name on chat spans (#3023)\u201D; \u201Cfix(tracing): report interrupted chat responses (#2450)\u201D; \u201Cfix(tracing): include input messages in chat spans (#2391)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/middleware/_tracing/_extractor.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9c7e34ee6fef0173ec2496759ae067a1520297e7be35bf481d3560b6f5bae7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_dashscope/_model.py: src/agentscope/embedding/_dashscope/_model.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is DashScopeEmbeddingModel._split_multimodal_batches at line 236), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): preserve configured qwen3 multimodal dimensions (#3350)\u201D; \u201Cfix(embedding): avoid blocking the event loop (#2703)\u201D; \u201Cfix(embedding): expose DashScope multimodal capability (#2701)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/embedding/_dashscope/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af3dfb4875688bbf6009ef678a8a7d270296574d04215966d055c0d8da0e02f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py: src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is AgenticMemoryMiddleware.on_reply at line 568), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(memory): keep frontmatter when the closing fence ends the text (#3345)\u201D; \u201Cfix(memory): deduplicate selected files before limiting retrieval (#2776)\u201D; \u201Cfix: repair agent-facing prompt template text defects (#2513)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a81ec2bba8cf9bf089529b0941c5b0e616f95ee9e3ce2d38367817e67cc049"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_utils.py: src/agentscope/tool/_utils.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is _utils._remove_title_field at line 123), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): preserve annotations and docstrings for partial functions (#3257)\u201D; \u201Cfix(tool): omit injected state from inferred function schemas (#3090)\u201D; \u201Cfix(tool): resolve PEP 563 lazy annotations when extracting tool schemas (#2371)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_utils.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_utils.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"db10494d9bee07c7f7f1dd12c15d87f2a84fb7e857f67c2f800c62e3ce184d32"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_manager/_scheduler/_tools/_schedule_create.py: src/agentscope/app/_manager/_scheduler/_tools/_schedule_create.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is ScheduleCreate.__call__ at line 164), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(app): anchor a schedule\u0027s default start time to an absolute instant (#3101)\u201D; \u201Cfix(scheduler): validate cron before persistence (#2442)\u201D; \u201Cfix(scheduler): let one node own the timers (#2477)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_manager/_scheduler/_tools/_schedule_create.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_scheduler/_tools/_schedule_create.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a279681e4d93487cd8ccaaf654e8eb367c0b9652e72ba5771759e3e58ed640"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_router/_schedule.py: src/agentscope/app/_router/_schedule.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is _schedule.update_schedule at line 146), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(app): anchor a schedule\u0027s default start time to an absolute instant (#3101)\u201D; \u201Cfix(scheduler): validate cron before persistence (#2442)\u201D; \u201Cfix(scheduler): let one node own the timers (#2477)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_router/_schedule.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_schedule.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2a3f51f4822cda51a5ae097387b27fa1cc468645def0539e62cd0d1cfb6ad2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tts/_openai/_model.py: src/agentscope/tts/_openai/_model.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is OpenAITTSModel._stream at line 201), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tts): respect per-call speech instructions (#2990)\u201D; \u201Cfix(tts): label audio with the effective response format (#2980)\u201D; \u201Cfix(model): reuse openai.AsyncClient across calls instead of new per call (#2063)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 18:02:38 \u002B08:00\u0027 --until=\u00272026-10-20 18:02:38 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tts/_openai/_model.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_openai/_model.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22aed0d1e90f727fe689884a2ee155357d81ecb35bbea1ace373eb495eb0377"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 24 significant file(s) lose their only recent owner: src/agentscope/app/message_bus/_base.py, src/agentscope/app/_service/_workspace.py, scripts/issue_triage.py, src/agentscope/app/middleware/_tool_offload_middleware.py, src/agentscope/sop/_schema.py, src/agentscope/app/storage/_sql/_tables.py, src/agentscope/app/_router/_agent.py, src/agentscope/app/_tool/_team_say.py (\u002B16 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4852f31ccee3eb6e94835622e41cd68db05fac0f1de0cf08fee26e3729143682"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 22 significant file(s) lose their only recent owner: src/agentscope/tts/_dashscope/_realtime_model.py, scripts/model_examples/dashscope_multimodal.py, scripts/model_examples/openai_chat_multimodal.py, scripts/model_examples/anthropic_multimodal.py, scripts/model_examples/_utils.py, scripts/model_examples/gemini_multimodal.py, scripts/model_examples/moonshot_multimodal.py, src/agentscope/middleware/_tracing/_converter.py (\u002B14 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9b924b760f3197c86338ba54b444179e09439be6b7e62db360af39017f98b176"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 6 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (52 single-owned of 353 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 353 of the 545 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/agentscope/middleware/_longterm_memory/_reme/_config.py, src/agentscope/tts/_gemini/_model.py, src/agentscope/tool/_builtin/_powershell.py, src/agentscope/app/middleware/_protocol/_base.py, src/agentscope/app/_manager/_chat_run_registry.py, src/agentscope/rag/_parser/_pdf.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: update when Python side is finalised \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":"examples/web_ui/frontend/src/api/types.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d8fe5f7993516bb47005bdf0de9ba52878a84ddce18f361ead1fd0037f016a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: render multimodal outputs \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":"examples/web_ui/frontend/src/components/chat/tool-renderers/DefaultRenderer.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"422d3c86ff0d6c8b431de4e42bede923c7ff38719e8e8c460522f8cb2b5fdbd5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: experiment with using prop.description as placeholder text \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":"examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5b6922a5977f7821914f04b9b0dd10878784c877cac07cd9647bf2b6c96b45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove this line after PR #1564 is merged, where the ChatModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_config.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"5676095e21fec812cf59066ccd5a12cee503692017e7cbee8f623ea290f93887"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Maybe some logic to mix the validation error in runtime \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":"src/agentscope/agent/_agent.py"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc4d13a8368ce8c759129a46d81218324da74bd0b254b1eb09700129e802d40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(realtime): tools and instructions are sent once, here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad79830bd6e36b9483df04c1a8e77120fa654e4aaee996a85fe94b3e14dfe422"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: When the subagent fails, the leader should be aware \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":"src/agentscope/app/middleware/_team_member_middleware.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"256f919f3034eed0b56d5b6fe59f39e1a15189e371718fb63dda4cedcdcdbfec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: one message should embed into one vector; the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_rag.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"255be91d022223ef7b4bc7d1f6bf11b4123b9e8e7495043bfaf06c878de5531d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Currently only supports \u0022function\u0022 type tools. If other tool \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":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d91accba56389735f10693aa5cb0b617d9ef9fecd46c8e0639cb2bf7440941"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # context and reads the relative path. See docs TODO (frontend \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":"src/agentscope/workspace/_base.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f983b5b7bbb0b72deaa0b24e7731571da118a929ce5b1e4a03afd52211503b4"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no project overview: The opening paragraph shows the logo and links to docs.agentscope.io but does not state what AgentScope 2.0 is or what it does for readers who skim it. State a one-line project description (what problem does this solve) so an outsider can grasp the value before reading further."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dbf18d06aa983c06246108610908ba99aae6784280b3aacd1a6655733d71be"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: contradicts the code: The changelog entry for the \u0060Model\u0060 section (deprecating model configuration in favor of explicit object instantiation) is stale given that the current ModelResponse class and asynchronous invocation are live. Verify each NEWS item reflects the latest API surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/NEWS.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6614d3d46c904eb5e9a769c31d6fc832c5a9208a9abf3f4b385223f88a6b2d"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: contradicts the code: The changelog entry for the \u0060Model\u0060 section (deprecating model configuration) is stale given that the current ModelResponse class and asynchronous invocation are live. Verify each NEWS item reflects the latest API surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/NEWS_zh.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66362d84acf5b62bac3a2bbda9fe0784d72f54ebd15ec96298e2de0db2123376"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (113975 LoC, 953 module-visible types across 119 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f935743999ab43c2fa36d60839607fcc097ba6b6660ef55bffb8d3c8326483a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c17e5e1b80dfecff7345fdf9b2ddf5c7c4a68655f5e0c030b1911e6e5190390"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4f5ac7f9682085d3caddf67f1f77cb91b937d400d67e4d49ba1e80e65021458"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb528b3881bf59b90883f964040b8c8c9901acfa80afc39ba97030b4a1e9c692"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2f923d6befb68d7265fe5275d2049a78c30576d51d1057d0119bc893bc5e1ce"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"348bcdf05747ad1c43ed686c52f77f2543f40a6d460b8f6a31ab38a404ad9949"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f03625ac1e2aba95a76ed3b1f9178c442ac0d74e1bd937078fcc141278b2f95"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"649a97204892588d94ea87dba8998090cbb4e7242b8d2199103a9ba6d1fe56b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30a02f988d8e9906dd4ee48086e8ea4f09b9e47cedd1be99b95c2619bfbf5ca4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04b06ad79ea2aeb930950546c7ad7ecffcdc062dda8b24984a618f6dc78ed71a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d5eca6ab0573d19ae76ba8c68b0c1497127b1beb3d111a629861495c7296eef"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2980b121538c0e632451d5386f05109edc6453e0529a3344e7502dd6ca91996c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1e863270b5182f2290991fbd2e2bc319696d4a97ee622ef296918bdbdef90207"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"57f4630469a93fbce9e609eaef0161f45dfed119a71acda7129db4bffce61412"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"304db58e9ae001b9be9ddd016032c77aded29da07fda6ef1de07c3fab0f6d01e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e76121c4139fc8dc4be14177a70326f64953556f11aae42e13bb28767167731"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9ce2791ec45cff81add56fcd3d7a2c1d40706b71786c257431030c8b928f6ea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e34c1c4b1c6326636e2de2b06f87da656469011db94dacd1ffdace4d5ed5c7f3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a2fbdf8dad545fe5e0702ffab8fedf59d8a0b5ec434c121e2a17200d418d957"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86eb5784e15c0b8b8d580b070f24b90bfd239845b764770bcb58caacc09ec740"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c55256278a0a261f07135e17394206f7a110902a4c67363bcb16c14691b60b2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e1ea6133c23ed1c595255cc0402082ba06e35d5b7ad2cf7bab54ad849353fff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5a61baf14f22d356c6d4492d4d2c8dfc6268e9601be2fa5fe7df3f4678d0add"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c541206295e33608761e69f4c0ea31baf769a61b7c89a5e87a3130674d99487c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cea7946a594f0595594b45308d2f60dfef33dc808e7d6dfdcb3f7044956cae7a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a001dcbf47e5cc43d797bfa8431a5494c870c29ed8dfb8f9a4042f61720d3280"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa055abc86da45ba6d9e1f7e955310501324b93679fb9211c104c0b106aa1189"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04241b318497e6538a5540e47e0b69d95f68e28f98a952d525f8ed8c56af052d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"822db8ceb048cecea72d9908a9942f685e5d2b3eedb216b7063d6d9fc9f61787"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22d0eddc61fb2615815720a720ac0760417ddc9905702ab0ce855ce0ffcf76d0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac934803f9bb6f0914905667efa5a21a47cf0e313f4e19376677776faf61e3e5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6dc303feb67ee17a2d922209a14d4707d326d0f45a03d22feb6b9a8a4294260f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9d62602fd10bdf3f2ad92b24d1b663972f5b3ce2613645b09970c0363479796"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2faa1fba518d17bf4c9f828b44298aac83afe5e367f2ae11e0432da4ad201807"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84d907babd264bcc69195b601796c82540bcb81253d4cd5486ed04380a11e977"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82c4ba14ca25d3077517ad4cc5cd341b26da839f0a726fcf52486177d846796c"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a7ef2f09df1b77a4fe9c44ca86fcc52301d547dad6437ef2cdc5de6ea72230a"}},{"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":"fa487c5ce900c7c2e99320fa5ce7160b16289f8a8c54b19f0154c96e2a76fdd6"}},{"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":"0660b5e78316571f6707d1a83439b11760259254ead3202faf54405d212ad7b1"}},{"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":"8a72e089e8769ae983a2fa2b452f9865c8a9ec052067a20a77e8b4ea87260c98"}},{"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":"32a179d59f02ee71e2e7e645c0671d607017d8a7461ed028b9f89bac707161ed"}},{"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":"cbad40229de832b803bb61a6c2c175533e9fa4c4f883911ef5d8b2d9af18b406"}},{"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":"e90feef7ba6cc82baf54a0e2bbc07e3cb120713125508a2663dec69170455c77"}},{"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":"660b494efd3a53f0cd4d977fc4ee8ecafc6f84e3685d358e6924b4ab98580406"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 353 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 353 of the 545 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/agentscope/workspace/_k8s/_k8s_backend.py. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_k8s/_k8s_backend.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f1a94605ccaab4fb46b152aba58839d9f19403247a661b5cac338c57b465a1"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d90d9ee09a3e12110f79c05381a239cacbb6045e7f9537557dc0da0cf50cd1f"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b629589fb02a1e9e13baa6bb907b2cbb828fb90318f1119a3c4faa8880179c77"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8a231b628086f766d0804b68a95fa4cc97ff837693404448be92e08233898e4"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ba7602f22243df0ab4c07fa86a5692da956c55e622a3c6397aab1fa4a0e5a3f"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b416dc9132468792209b77b9bc664abfc6d4e0bf5688fc109c408936f107021"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f8ac060caf37f5fbbfbab131ffc110cdd70804ccb187c60901dde09732b06b9"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fcaa3cf07b019add0e06f0433cf96f39f6c4a28d9c984f6a8507d300bbee7e2c"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README claims Python 3.11\u002B but the repository is a single source repo with no dependency manifest \u2014 searched for: \u0060Python version constraint\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2c690c5258aef6e39c48e6180f024f2e6a70a15b7652574d88a2538daa8ccc"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README describes an agent framework while the evidence shows only one project (the README) and no other projects exist \u2014 reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"974518506f19f34ca1008b1de57eeebc3ce7a13e922b28eddcbd834d1added46"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: CONTRIBUTING.md names \u0060docs/contributing-update\u0060, but no file or folder \u0060docs/contributing-update\u0060 exists. 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":"CONTRIBUTING.md"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe09df08deb1303dbbfb3a87897a46c166913935825a84c8d72a962d801d8cb"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 45656 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":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced \u2014 a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 1 versioned entry, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.ensure_future\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_background_task_manager.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb93e83c47348401615e90d4447be23498aaaab73d412860aa8cbd79bea34183"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_tool_offload_middleware.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24c12f4a649001f55e7688deaa49d95f81c9dd57dae72735340a2f4b176a3fd"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_mem0/_middleware.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14a748ee1acea79f8f09d5de3a8353e6791e569b8d3fdad0b7dc48a795e6fd2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block.type == block_type and block.id == block_id\u0060 appears character-identically in 2 files \u2014 src/agentscope/console/_renderer.py, src/agentscope/message/_base.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":"src/agentscope/console/_renderer.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3bbab6769bf0971494d2368714f5ed1b5e6bfb5a26e2f4e78b75fd5315f685"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.data.get(\u0022type\u0022) == cred_type and c.id != credential_data.id\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/storage/_redis_storage.py, src/agentscope/app/storage/_sql/_storage.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":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fe918fab508740f003a6549304820fbb62ad675aa37160a75cf37f55d09e70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060channel is not None and channel_origin is not None\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/_service/_chat.py, src/agentscope/app/_service/_realtime.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":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"723dd6fff8ecca7c02048827e2d765f7dcf183b451da521508a4f331b617582e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060channel_origin is not None and self._channel_clients is not None\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/_service/_chat.py, src/agentscope/app/_service/_realtime.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":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d9a2ea105ba81f4902458f2ecc9f8ea72af0931dbf9f7155299107307cc049"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content_blocks or tool_calls or reasoning_content_blocks\u0060 appears character-identically in 2 files \u2014 src/agentscope/formatter/_deepseek_formatter.py, src/agentscope/formatter/_volcengine_formatter.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":"src/agentscope/formatter/_deepseek_formatter.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"621a0047cf08b6ea310399168c92ef37d766a2cbf3a2a22089bce9a229180b9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decision.behavior == PermissionBehavior.ASK and decision.bypass_immune\u0060 appears character-identically in 2 files \u2014 src/agentscope/agent/_agent.py, src/agentscope/permission/_engine.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":"src/agentscope/agent/_agent.py"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"87beaad67333e5261241075ee0e9ef34e0f0466490e493c4bb937942bd5f57b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060full_text and not self._callback.has_audio_data()\u0060 appears character-identically in 2 files \u2014 src/agentscope/tts/_dashscope/_cosyvoice_model.py, src/agentscope/tts/_dashscope/_realtime_model.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":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1296585f1587417786a8cf263499037de4b90f9672cd306c9df766439ca2c19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(chunk, \u0022id\u0022, None) or response_id\u0060 appears character-identically in 5 files \u2014 src/agentscope/model/_dashscope/_model.py, src/agentscope/model/_deepseek/_model.py, src/agentscope/model/_moonshot/_model.py, src/agentscope/model/_openai_chat/_model.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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ae257116cc6cb89589055c82f5412d2e00c0e7050df0aa035f2e3bb5c8f16c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(delta_audio, \u0022transcript\u0022, \u0022\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 src/agentscope/model/_dashscope/_model.py, src/agentscope/model/_openai_chat/_model.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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae4428e3e316e37fc427ee416bdbfa4b068099b97e3719af12eb4385260eb1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060head_limit is not None and head_limit \u003C 0\u0060 appears character-identically in 2 files \u2014 src/agentscope/tool/_builtin/_glob.py, src/agentscope/tool/_builtin/_grep.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":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f49831cf8cb934a76965e2b7e4743b344c3132ad6bda9523a271d393aae8e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host_cache_dir is not None and not host_cache_dir.strip()\u0060 appears character-identically in 2 files \u2014 src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py, src/agentscope/workspace/_bubblewrap/_bubblewrap_workspace.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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"31dc1da6801a75bd5950fdb4e8402df14cbeed8d192f07f04143e40fa31905d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, DataBlock) and isinstance( block.source, Base64Source, )\u0060 appears character-identically in 3 files \u2014 scripts/model_examples/_utils.py, src/agentscope/app/channel/_feishu/_channel.py, src/agentscope/workspace/_base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/_utils.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bd05f8b93ac7b335b06cba37882e3612798430e6d1dacf3e3ab2392709f3ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, ToolResultBlock) and isinstance( block.output, list, )\u0060 appears character-identically in 2 files \u2014 src/agentscope/agent/_agent.py, src/agentscope/workspace/_base.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":"src/agentscope/agent/_agent.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe201236f0b05fe61d1098f2a78a360a49e40c7291a363920d6d8ab046455b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reasoning, str) and reasoning\u0060 appears character-identically in 4 files \u2014 src/agentscope/model/_dashscope/_model.py, src/agentscope/model/_deepseek/_model.py, src/agentscope/model/_openai_chat/_model.py, src/agentscope/model/_volcengine/_model.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":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"c405391ea607f2b670b4c0e402090441450fbdc0d8b155537c0dd1450427877d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(msgs) \u003E 0 and msgs[0].role == \u0022system\u0022\u0060 appears character-identically in 8 files \u2014 src/agentscope/formatter/_anthropic_formatter.py, src/agentscope/formatter/_dashscope_formatter.py, src/agentscope/formatter/_deepseek_formatter.py, src/agentscope/formatter/_gemini_formatter.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":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed9f2d67e7586188604478d43e6ec20f159a00e4106a7174a903ec8999f1b6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.role == \u0022assistant\u0022 and message.finished_at is None\u0060 appears character-identically in 2 files \u2014 src/agentscope/tui/_chat.py, src/agentscope/tui/_launcher.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":"src/agentscope/tui/_chat.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"360cc43691cb58d3535b946e5be6ddada95acba1db97308f88367cbb4a8a6acd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.id != agent.state.reply_id or msg.role != \u0022assistant\u0022 or msg.name != agent.name\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/middleware/_sop_step_middleware.py, src/agentscope/app/middleware/_team_member_middleware.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":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"20494b9dd686ce5cece39f026a30c93b15e642473ef4c3e47982924e24ae4abb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.role == \u0022assistant\u0022 and msg.finished_at is None\u0060 appears character-identically in 2 files \u2014 src/agentscope/tui/_chat.py, src/agentscope/tui/_launcher.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":"src/agentscope/tui/_chat.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5685ef9c96523c7cc0ca92c17ceac605cd510a08d323e9da9c67b3e75901e0f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not accumulated_text and not media_blocks\u0060 appears character-identically in 3 files \u2014 src/agentscope/formatter/_moonshot_formatter.py, src/agentscope/formatter/_openai_response_formatter.py, src/agentscope/formatter/_volcengine_formatter.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":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f3930a6c69568649238fffab08cf86d65480b053331f70eb3063eb83ab3e89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(m, Msg) or m.role != \u0022user\u0022\u0060 appears character-identically in 2 files \u2014 src/agentscope/middleware/_longterm_memory/_mem0/_utils.py, src/agentscope/middleware/_longterm_memory/_reme/_utils.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":"src/agentscope/middleware/_longterm_memory/_mem0/_utils.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ec87e14b538c1db68e262afb9ad5e0a89538ac27d11a326b0f2edd99dd7c76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.is_mounted or not self._pending\u0060 appears character-identically in 2 files \u2014 src/agentscope/tui/_ask_user.py, src/agentscope/tui/_chat.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":"src/agentscope/tui/_ask_user.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2320dac45a469266752869d179432ac0c02e0e4176d1d11b2bb40fcbb0889a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.path.islink(path) or not os.path.isdir(path)\u0060 appears character-identically in 2 files \u2014 src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py, src/agentscope/workspace/_bubblewrap/_bubblewrap_workspace.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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4b80f4274df806eb5e1e5f4e08132bf387577a32fd22463de1214d5dfacdfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pending_media and not isinstance(block, ToolResultBlock)\u0060 appears character-identically in 6 files \u2014 src/agentscope/formatter/_dashscope_formatter.py, src/agentscope/formatter/_deepseek_formatter.py, src/agentscope/formatter/_moonshot_formatter.py, src/agentscope/formatter/_ollama_formatter.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":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d8c37fe63075209c515158283a6254312331b77c354ed0308b81719c626a97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result is not None and result.state == ToolResultState.SUCCESS\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/middleware/_sop_step_middleware.py, src/agentscope/app/middleware/_team_member_middleware.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":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f663acc98d901cb9f2856ca3ab325e8bfc072ffbd19b349b75e22ca2836afa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.exit_code == -1 and result.stderr == b\u0022timed out\u0022\u0060 appears character-identically in 3 files \u2014 src/agentscope/tool/_builtin/_bash.py, src/agentscope/tool/_builtin/_grep.py, src/agentscope/tool/_builtin/_powershell.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":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af09f52d2cfa86d4ec32c9142f8536f4ed7ca6193e5cf55429cc16039154974"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060render_mcp\u0060 is public, takes a document from its caller (line 103) and hands it to \u0060_substitute\u0060, which calls itself at line 93 (\u0060_substitute\u0060) with a piece of \u0060node\u0060 (and at line 98) \u2014 and nowhere in \u0060_substitute\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_substitute\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_mcp_render.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"701cc0c774bd652a4ceeffa87d3dfdf69a7bb88cf79bb359a95f5d06ed34597c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 526 is called with an argument built by \u0060[ranked[i].chunk.source for i in ids]\u0060 (line 528), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_rag.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5123acfe2da94c1cff425cceaf715b7fc917689a86b66cec6ffd4b4c7072d"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 420 is called with an argument built by \u0060list(data)\u0060 (line 420), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_gemini/_model.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a66bf275739550b4665cdbf0cc4637b269166ab3b4166e42c0a67806868c314"}},{"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":"src/agentscope/agent/_agent.py"},"region":{"startLine":3043}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f6c444229dbb5200bf8899af8fe3a17d88336e1429237bb24774a9da98d93b"}},{"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":"src/agentscope/app/channel/_stream.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a426b9948e4655a6ccd647d017481a34cd0e87fab51ac8c74c03aea178cdd3"}},{"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":"src/agentscope/app/channel/_dispatcher.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb972a65cd5c4b05ea1dffe6415a2c160a1008d37693d9647e0aede109ed9691"}},{"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":"src/agentscope/app/message_bus/_redis_message_bus.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca74077ae72d69459ee4580a133d92c8bfe390384fce65cbe2e9a0879f7b7e99"}},{"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":"src/agentscope/app/storage/_model/_schedule.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5292eab7260a5660a96e2cc40a618fb280716f5103162b4bf41e2f0631e32082"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee28cb8d2ef135f3f45c344b026c3aec484ec69d46848618a5d8b25afd7fc4"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_k8s_workspace_manager.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2f1825f2cf506cf0a0bb679a6352370b66ee09b0b1099b412172753769a812"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_e2b_workspace_manager.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5b2ac8207cc29d04db33a8fee0d9fb3a767bad8a747163de356413d0411fac"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_docker_workspace_manager.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f8cb0c21c18b9800b3e793a36ad76fdd6318fb228088b9029167edab4d9c93"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_daytona_workspace_manager.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"659e81a4b8718929c3a65cea7e26d55e267492990f81eb48ab76198aa7631c94"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"960948ed912f7f00db8578c027b3ddb7e2bcbbfd2737877a22d55fa0bab2a580"}},{"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 \u0060__aexit__()\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":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c2748ab7492a567be3fc8996bc46998c317dd7fe3af498d80f81262f7e6943"}},{"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":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0334ce0e6d7e2fa8d630a7565ee6bdfd03f2c968edc8390a907414a50a4794"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except (asyncio.CancelledError, 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":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"579023d917707648e3dddc383d0ee3bcd1cfcfe9eec089ca3941bfb9319a2be5"}},{"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":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"455cb4f514ad50a953067a4ea12462129db91d4bd3b87e7b012e5d8c73ada784"}},{"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":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"837eaaaae70de9cb1f7774e304411de175f7192f95480bd1f52b573b35cb88a8"}},{"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":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03fb9859fb564a24d206c35e11d8d99302ac254ce11f822c0343ecc75c8d892"}},{"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":"src/agentscope/middleware/_longterm_memory/_reme/_middleware.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2095e3ea0f27ba9dff6cf171bb2dda8e8b95cb10d49503c67c18723c31c9e7e"}},{"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":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d13f2899f2bec6d3d67fa7914499cb6dca5acdb23f0a7e515fee2bf6bc668b"}},{"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":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f78dafb57a96b926e037c10ca7d1544c4bf5b1ed162b947b9a586028391476a"}},{"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":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c91c93c1592eb9a501c665b681eabacf1de433f6c664a12340c879d6e4304f0"}},{"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":"src/agentscope/state/_state.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed654ad82813894ec6109d75aeae83f352a3d2a1ec3394e4b88aa5981e21e78"}},{"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":"src/agentscope/tool/_utils.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee5a1031573bd36f90493e5df430bfc22562dc00da54f0798f7be0659641e2a"}},{"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":"src/agentscope/tool/_utils.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c082561fe4ed7383ffb49a504035d80340b384856768c4ff1ba76ca50e6f1ec"}},{"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":"src/agentscope/tool/_builtin/_bash_parser.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1786fa159a4311953165e0f66f2102e02fc36992063941aac06268fc05107445"}},{"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":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb08fa66cccaea7e1564a48a8bbef966fa312751bc6922eb7d1a48310952da1"}},{"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":"src/agentscope/tts/_dashscope/_realtime_model.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2dbbe5a754c366e3c15fca14c61b9ddc1e8f28317a0a9f46a6d79b4900f2e3"}},{"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":"src/agentscope/tts/_dashscope/_realtime_model.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"960dd2e786ea80a8e23c213f2e61374ad2a765c33a2a96544d7330e0322af73a"}},{"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":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e5cc4efef558e33c550d437b60113bb814f3a3034a3a313a5030214dea3a95"}},{"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":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"123535aca19ebf03140535b5cbabc7f6ec248baca8a45637594af63017747919"}},{"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":"src/agentscope/workspace/_sandboxed_base.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"371d5fe905768261387d1fcce1fe75df9110a824098dd091c7a7e3d42fbf04b0"}},{"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":"src/agentscope/workspace/_sandboxed_base.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"590d7ea1fb473c98851f112b1ca94bb6321affe8309403865b353a5be633dd46"}},{"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":"src/agentscope/workspace/_gateway_client.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5858adcfb759ceabacd32d444f33cf3d1292329e382aaeaf4307cf284b0304d9"}},{"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":"src/agentscope/workspace/_gateway_client.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a759ebfb39fab0f87f95d2527cd6da3bf5dbada812dd442d50b2d1971ec4b20"}},{"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":"src/agentscope/workspace/_gateway_client.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba86c192c2d241499f530ed8861c74ce19cb304eea1076ad029256f2df838ade"}},{"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":"src/agentscope/workspace/_bubblewrap/_bubblewrap_workspace.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2a0663213396b1bdcfde32c5591cc1636e2f92611000e6e6c618dfa0a12349"}},{"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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbb5b753d8f955abbadbf521a2d30c3dd9c3484c011cbf4316a6ebfa30369db"}},{"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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9344b2670eedd57a6d0b45e6783c4cbd24c5e7b78d61633af8b9c202944f74"}},{"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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c1381fc2eb6af10c95a2bcad070b9c03f613a2579d9c302ec599fa7126bde8"}},{"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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6183c73a31b02d70bab4cd2f2fbba726615b3003016d2d5a4418f48d04dcaba4"}},{"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":"src/agentscope/workspace/_docker/_docker_workspace.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"548191e01cae8eaee5d8656d76cd40425b432be757b10ea3963d8985ef365004"}},{"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":"src/agentscope/workspace/_k8s/_k8s_workspace.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcedd29a4ffcf6fa0fd6477492b92aa44659f9163fb7a14a082e2f7f15d1f00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_json_object\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_card.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ffbf243ffe484e5f534d3f221b02fc0500b108c91953aa9ce3ee692d982c5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_get_local_timezone\u0060 swallows every exception into \u0060return \u0027UTC\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":"src/agentscope/app/storage/_model/_schedule.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6da487c6f65a1b87f57c33fa609a05d7664b6dfcf0261d5d9369d0e80092b1d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_list_md_files\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c7a950ef716c0db671bef6804a10b38a221fe4ca6785f6111418104a8cb84f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_get_agent_messages\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_tracing/_extractor.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"57eb38de01302f3967771fc8cb981e966189f3fa78e82ed2b5270353138aa114"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_elapsed\u0060 returns \u0060\u0027\u0027\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_messages.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98737194a0ab04d22ee0c1620c81969c013c81871874ac4e6641019587c375d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadPanelLayout\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/frontend/src/pages/chat/ChatViewport.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19454a4c81eb76d41ca2d125077fddef0b16cf02dbd00e266711de16e254f23"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060notReadyComponents\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":"examples/web_ui/frontend/src/pages/setup/index.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc865902ef65ac1cd052cb338444c6806af9a05931d0daac9656c7eee7bc288"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"Use of Insufficiently Random Values","shortDescription":{"text":"Use of Insufficiently Random Values"},"helpUri":"https://cwe.mitre.org/data/definitions/330.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":58,"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."]}]}